gnulib-tool: fix filelist for AIX, HP-UX ksh.
[pspp] / ChangeLog
1 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2
3         gnulib-tool: fix filelist for AIX, HP-UX ksh.
4         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
5         variables in shell case patterns, for AIX and HP-UX ksh.
6
7         Split large sed scripts, for HP-UX sed.
8         * modules/stdio: Split sed scripts around 50 sed commands,
9         to avoid HP-UX limit of 99 commands, in the near future.
10         * modules/string: Likewise.
11         * modules/unistd: Likewise.
12
13         gnulib-tool: avoid writing in the current directory.
14         * gnulib-tool (func_emit_lib_Makefile_am)
15         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
16         not in the current directory, so concurrent gnulib-tool
17         instances do not interfere.
18
19 2010-01-16  Jim Meyering  <meyering@redhat.com>
20
21         doc: update users.txt
22         * users.txt: Add grep.
23         (diffutils, gzip): Update URLs.
24
25 2010-01-12  Bruno Haible  <bruno@clisp.org>
26
27         posix_spawn: Avoid test failure on Cygwin.
28         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
29         characters.
30         Reported by Simon Josefsson.
31
32 2010-01-12  Bruno Haible  <bruno@clisp.org>
33
34         * tests/test-cond.c (main): When skipping the test, show the reason.
35
36 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37
38         * lib/striconv.c (str_cd_iconv): Avoid if before free.
39
40 2010-01-12  Simon Josefsson  <simon@josefsson.org>
41
42         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
43         VC_LIST_ALWAYS_EXCLUDE_REGEX.
44
45 2010-01-12  Eric Blake  <ebb9@byu.net>
46
47         build: guarantee AS_VAR_IF
48         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
49         (gl_AS_VAR_IF): Move...
50         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
51         Reported by Simon Josefsson.
52
53 2010-01-12  Simon Josefsson  <simon@josefsson.org>
54
55         * lib/stdio.in.h: Fix typo.
56
57 2010-01-12  Simon Josefsson  <simon@josefsson.org>
58
59         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
60         libgpg-error.
61
62 2010-01-12  Simon Josefsson  <simon@josefsson.org>
63
64         * tests/test-xalloc-die.sh: Use $EXEEXT.
65
66 2010-01-12  Simon Josefsson  <simon@josefsson.org>
67             Bruno Haible  <bruno@clisp.org>
68
69         getlogin, getlogin_r: Avoid test failure.
70         * tests/test-getlogin.c: Include <stdio.h>.
71         (main): Skip the test when the function fails because stdin is not a
72         tty.
73         * tests/test-getlogin_r.c: Include <stdio.h>.
74         (main): Skip the test when the function fails because stdin is not a
75         tty.
76
77 2010-01-11  Eric Blake  <ebb9@byu.net>
78
79         tests: avoid more large file warnings
80         * tests/test-fflush.c: Avoid warning about ftell use.
81         * tests/test-fseek.c: Avoid warning about fseek use.
82
83 2010-01-10  Bruno Haible  <bruno@clisp.org>
84
85         nproc: Work better on Linux when /proc and /sys are not mounted.
86         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
87         as lower bound when, on glibc/Linux systems,
88         sysconf (_SC_NPROCESSORS_CONF) returns 1.
89         Suggested by Pádraig Brady <P@draigbrady.com>.
90         Reported by Dmitry V. Levin <ldv@altlinux.org>.
91
92         nproc: Refactor.
93         * lib/nproc.c (num_processors_via_affinity_mask): New function,
94         extracted from num_processors.
95         (num_processors): Call it.
96
97 2010-01-11  Jim Meyering  <meyering@redhat.com>
98
99         utimecmp: avoid new warning from upcoming gcc-4.5.0
100         * lib/utimecmp.c (BILLION): Define using #define rather than an
101         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
102
103 2010-01-11  Eric Blake  <ebb9@byu.net>
104
105         math: add portability warnings for classification macros
106         * modules/math (Depends-on): Add warn-on-use.
107         (Makefile.am): Provide new substitutions.
108         * m4/math_h.m4 (gl_MATH_H): Require inline.
109         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
110         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
111         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
112         implement warnings.
113
114         unistd: warn on use of environ without module
115         * modules/unistd (Depends-on): Add warn-on-use.
116         (Makefile.am): Provide new substitutions.
117         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
118         * lib/unistd.in.h (environ): Wrap with a warning helper function.
119
120         stdio: warn on suspicious uses
121         * modules/stdio (Depends-on): Add warn-on-use.
122         (Makefile.am): Provide new substitutions.
123         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
124         fseeko.
125         * lib/stdio.in.h (gets): Always warn on use.
126         (fseek, ftell): Adjust when warnings are issued, and honor
127         _GL_NO_LARGE_FILES as a way to silence the warning.
128         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
129         any warning about large file offsets.
130         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
131         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
132         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
133         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
134         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
135         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
136         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
137         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
138
139         warn-on-use: new module
140         * modules/warn-on-use: New file.
141         * build-aux/warn-on-use.h: Likewise.
142         * m4/warn-on-use.m4: Likewise.
143         * MODULES.html.sh (Support for building): Mention it.
144
145 2010-01-10  Bruno Haible  <bruno@clisp.org>
146
147         Tests for module 'unistr/u32-strdup'.
148         * modules/unistr/u32-strdup-tests: New file.
149         * tests/unistr/test-u32-strdup.c: New file.
150
151         Tests for module 'unistr/u16-strdup'.
152         * modules/unistr/u16-strdup-tests: New file.
153         * tests/unistr/test-u16-strdup.c: New file.
154
155         Tests for module 'unistr/u8-strdup'.
156         * modules/unistr/u8-strdup-tests: New file.
157         * tests/unistr/test-u8-strdup.c: New file.
158         * tests/unistr/test-strdup.h: New file.
159
160         Tests for module 'unistr/u32-strncmp'.
161         * modules/unistr/u32-strncmp-tests: New file.
162         * tests/unistr/test-u32-strncmp.c: New file.
163
164         Tests for module 'unistr/u16-strncmp'.
165         * modules/unistr/u16-strncmp-tests: New file.
166         * tests/unistr/test-u16-strncmp.c: New file.
167
168         Tests for module 'unistr/u8-strncmp'.
169         * modules/unistr/u8-strncmp-tests: New file.
170         * tests/unistr/test-u8-strncmp.c: New file.
171         * tests/unistr/test-strncmp.h: New file.
172
173         Tests for module 'unistr/u32-strcoll'.
174         * modules/unistr/u32-strcoll-tests: New file.
175         * tests/unistr/test-u32-strcoll.c: New file.
176
177         Tests for module 'unistr/u16-strcoll'.
178         * modules/unistr/u16-strcoll-tests: New file.
179         * tests/unistr/test-u16-strcoll.c: New file.
180
181         Tests for module 'unistr/u8-strcoll'.
182         * modules/unistr/u8-strcoll-tests: New file.
183         * tests/unistr/test-u8-strcoll.c: New file.
184
185         Tests for module 'unistr/u32-strcmp'.
186         * modules/unistr/u32-strcmp-tests: New file.
187         * tests/unistr/test-u32-strcmp.c: New file.
188         * tests/unistr/test-u32-strcmp.h: New file.
189
190         Tests for module 'unistr/u16-strcmp'.
191         * modules/unistr/u16-strcmp-tests: New file.
192         * tests/unistr/test-u16-strcmp.c: New file.
193         * tests/unistr/test-u16-strcmp.h: New file.
194
195         Tests for module 'unistr/u8-strcmp'.
196         * modules/unistr/u8-strcmp-tests: New file.
197         * tests/unistr/test-u8-strcmp.c: New file.
198         * tests/unistr/test-u8-strcmp.h: New file.
199         * tests/unistr/test-strcmp.h: New file.
200
201         Tests for module 'unistr/u32-strncat'.
202         * modules/unistr/u32-strncat-tests: New file.
203         * tests/unistr/test-u32-strncat.c: New file.
204
205         Tests for module 'unistr/u16-strncat'.
206         * modules/unistr/u16-strncat-tests: New file.
207         * tests/unistr/test-u16-strncat.c: New file.
208
209         Tests for module 'unistr/u8-strncat'.
210         * modules/unistr/u8-strncat-tests: New file.
211         * tests/unistr/test-u8-strncat.c: New file.
212         * tests/unistr/test-strncat.h: New file.
213
214         Tests for module 'unistr/u32-strcat'.
215         * modules/unistr/u32-strcat-tests: New file.
216         * tests/unistr/test-u32-strcat.c: New file.
217
218         Tests for module 'unistr/u16-strcat'.
219         * modules/unistr/u16-strcat-tests: New file.
220         * tests/unistr/test-u16-strcat.c: New file.
221
222         Tests for module 'unistr/u8-strcat'.
223         * modules/unistr/u8-strcat-tests: New file.
224         * tests/unistr/test-u8-strcat.c: New file.
225         * tests/unistr/test-strcat.h: New file.
226
227         Tests for module 'unistr/u32-stpncpy'.
228         * modules/unistr/u32-stpncpy-tests: New file.
229         * tests/unistr/test-u32-stpncpy.c: New file.
230
231         Tests for module 'unistr/u16-stpncpy'.
232         * modules/unistr/u16-stpncpy-tests: New file.
233         * tests/unistr/test-u16-stpncpy.c: New file.
234
235         Tests for module 'unistr/u8-stpncpy'.
236         * modules/unistr/u8-stpncpy-tests: New file.
237         * tests/unistr/test-u8-stpncpy.c: New file.
238         * tests/unistr/test-stpncpy.h: New file.
239
240         Tests for module 'unistr/u32-strncpy'.
241         * modules/unistr/u32-strncpy-tests: New file.
242         * tests/unistr/test-u32-strncpy.c: New file.
243
244         Tests for module 'unistr/u16-strncpy'.
245         * modules/unistr/u16-strncpy-tests: New file.
246         * tests/unistr/test-u16-strncpy.c: New file.
247
248         Tests for module 'unistr/u8-strncpy'.
249         * modules/unistr/u8-strncpy-tests: New file.
250         * tests/unistr/test-u8-strncpy.c: New file.
251         * tests/unistr/test-strncpy.h: New file.
252
253         Tests for module 'unistr/u32-stpcpy'.
254         * modules/unistr/u32-stpcpy-tests: New file.
255         * tests/unistr/test-u32-stpcpy.c: New file.
256
257         Tests for module 'unistr/u16-stpcpy'.
258         * modules/unistr/u16-stpcpy-tests: New file.
259         * tests/unistr/test-u16-stpcpy.c: New file.
260
261         Tests for module 'unistr/u8-stpcpy'.
262         * modules/unistr/u8-stpcpy-tests: New file.
263         * tests/unistr/test-u8-stpcpy.c: New file.
264         * tests/unistr/test-stpcpy.h: New file.
265
266         Tests for module 'unistr/u32-strcpy'.
267         * modules/unistr/u32-strcpy-tests: New file.
268         * tests/unistr/test-u32-strcpy.c: New file.
269
270         Tests for module 'unistr/u16-strcpy'.
271         * modules/unistr/u16-strcpy-tests: New file.
272         * tests/unistr/test-u16-strcpy.c: New file.
273
274         Tests for module 'unistr/u8-strcpy'.
275         * modules/unistr/u8-strcpy-tests: New file.
276         * tests/unistr/test-u8-strcpy.c: New file.
277         * tests/unistr/test-strcpy.h: New file.
278
279         Tests for module 'unistr/u32-strnlen'.
280         * modules/unistr/u32-strnlen-tests: New file.
281         * tests/unistr/test-u32-strnlen.c: New file.
282
283         Tests for module 'unistr/u16-strnlen'.
284         * modules/unistr/u16-strnlen-tests: New file.
285         * tests/unistr/test-u16-strnlen.c: New file.
286
287         Tests for module 'unistr/u8-strnlen'.
288         * modules/unistr/u8-strnlen-tests: New file.
289         * tests/unistr/test-u8-strnlen.c: New file.
290         * tests/unistr/test-strnlen.h: New file.
291
292         Tests for module 'unistr/u32-strlen'.
293         * modules/unistr/u32-strlen-tests: New file.
294         * tests/unistr/test-u32-strlen.c: New file.
295
296         Tests for module 'unistr/u16-strlen'.
297         * modules/unistr/u16-strlen-tests: New file.
298         * tests/unistr/test-u16-strlen.c: New file.
299
300         Tests for module 'unistr/u8-strlen'.
301         * modules/unistr/u8-strlen-tests: New file.
302         * tests/unistr/test-u8-strlen.c: New file.
303
304         Tests for module 'unistr/u32-prev'.
305         * modules/unistr/u32-prev-tests: New file.
306         * tests/unistr/test-u32-prev.c: New file.
307
308         Tests for module 'unistr/u16-prev'.
309         * modules/unistr/u16-prev-tests: New file.
310         * tests/unistr/test-u16-prev.c: New file.
311
312         Tests for module 'unistr/u8-prev'.
313         * modules/unistr/u8-prev-tests: New file.
314         * tests/unistr/test-u8-prev.c: New file.
315
316         Tests for module 'unistr/u32-next'.
317         * modules/unistr/u32-next-tests: New file.
318         * tests/unistr/test-u32-next.c: New file.
319
320         Tests for module 'unistr/u16-next'.
321         * modules/unistr/u16-next-tests: New file.
322         * tests/unistr/test-u16-next.c: New file.
323
324         Tests for module 'unistr/u8-next'.
325         * modules/unistr/u8-next-tests: New file.
326         * tests/unistr/test-u8-next.c: New file.
327
328         Tests for module 'unistr/u32-strmbtouc'.
329         * modules/unistr/u32-strmbtouc-tests: New file.
330         * tests/unistr/test-u32-strmbtouc.c: New file.
331
332         Tests for module 'unistr/u16-strmbtouc'.
333         * modules/unistr/u16-strmbtouc-tests: New file.
334         * tests/unistr/test-u16-strmbtouc.c: New file.
335
336         Tests for module 'unistr/u8-strmbtouc'.
337         * modules/unistr/u8-strmbtouc-tests: New file.
338         * tests/unistr/test-u8-strmbtouc.c: New file.
339
340         Tests for module 'unistr/u32-strmblen'.
341         * modules/unistr/u32-strmblen-tests: New file.
342         * tests/unistr/test-u32-strmblen.c: New file.
343
344         Tests for module 'unistr/u16-strmblen'.
345         * modules/unistr/u16-strmblen-tests: New file.
346         * tests/unistr/test-u16-strmblen.c: New file.
347
348         Tests for module 'unistr/u8-strmblen'.
349         * modules/unistr/u8-strmblen-tests: New file.
350         * tests/unistr/test-u8-strmblen.c: New file.
351
352         Tests for module 'unistr/u32-cpy-alloc'.
353         * modules/unistr/u32-cpy-alloc-tests: New file.
354         * tests/unistr/test-u32-cpy-alloc.c: New file.
355
356         Tests for module 'unistr/u16-cpy-alloc'.
357         * modules/unistr/u16-cpy-alloc-tests: New file.
358         * tests/unistr/test-u16-cpy-alloc.c: New file.
359
360         Tests for module 'unistr/u8-cpy-alloc'.
361         * modules/unistr/u8-cpy-alloc-tests: New file.
362         * tests/unistr/test-u8-cpy-alloc.c: New file.
363         * tests/unistr/test-cpy-alloc.h: New file.
364
365         Tests for module 'unistr/u32-mbsnlen'.
366         * modules/unistr/u32-mbsnlen-tests: New file.
367         * tests/unistr/test-u32-mbsnlen.c: New file.
368
369         Tests for module 'unistr/u16-mbsnlen'.
370         * modules/unistr/u16-mbsnlen-tests: New file.
371         * tests/unistr/test-u16-mbsnlen.c: New file.
372
373         Tests for module 'unistr/u8-mbsnlen'.
374         * modules/unistr/u8-mbsnlen-tests: New file.
375         * tests/unistr/test-u8-mbsnlen.c: New file.
376
377         Tests for module 'unistr/u32-chr'.
378         * modules/unistr/u32-chr-tests: New file.
379         * tests/unistr/test-u32-chr.c: New file.
380
381         Tests for module 'unistr/u16-chr'.
382         * modules/unistr/u16-chr-tests: New file.
383         * tests/unistr/test-u16-chr.c: New file.
384
385         Tests for module 'unistr/u8-chr'.
386         * modules/unistr/u8-chr-tests: New file.
387         * tests/unistr/test-u8-chr.c: New file.
388         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
389
390         Tests for module 'unistr/u32-cmp2'.
391         * modules/unistr/u32-cmp2-tests: New file.
392         * tests/unistr/test-u32-cmp2.c: New file.
393
394         Tests for module 'unistr/u16-cmp2'.
395         * modules/unistr/u16-cmp2-tests: New file.
396         * tests/unistr/test-u16-cmp2.c: New file.
397
398         Tests for module 'unistr/u8-cmp2'.
399         * modules/unistr/u8-cmp2-tests: New file.
400         * tests/unistr/test-u8-cmp2.c: New file.
401         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
402
403         Tests for module 'unistr/u32-cmp'.
404         * modules/unistr/u32-cmp-tests: New file.
405         * tests/unistr/test-u32-cmp.c: New file.
406
407         Tests for module 'unistr/u16-cmp'.
408         * modules/unistr/u16-cmp-tests: New file.
409         * tests/unistr/test-u16-cmp.c: New file.
410
411         Tests for module 'unistr/u8-cmp'.
412         * modules/unistr/u8-cmp-tests: New file.
413         * tests/unistr/test-u8-cmp.c: New file.
414         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
415
416         Tests for module 'unistr/u32-set'.
417         * modules/unistr/u32-set-tests: New file.
418         * tests/unistr/test-u32-set.c: New file.
419
420         Tests for module 'unistr/u16-set'.
421         * modules/unistr/u16-set-tests: New file.
422         * tests/unistr/test-u16-set.c: New file.
423
424         Tests for module 'unistr/u8-set'.
425         * modules/unistr/u8-set-tests: New file.
426         * tests/unistr/test-u8-set.c: New file.
427         * tests/unistr/test-set.h: New file.
428
429         Tests for module 'unistr/u32-move'.
430         * modules/unistr/u32-move-tests: New file.
431         * tests/unistr/test-u32-move.c: New file.
432
433         Tests for module 'unistr/u16-move'.
434         * modules/unistr/u16-move-tests: New file.
435         * tests/unistr/test-u16-move.c: New file.
436
437         Tests for module 'unistr/u8-move'.
438         * modules/unistr/u8-move-tests: New file.
439         * tests/unistr/test-u8-move.c: New file.
440         * tests/unistr/test-move.h: New file.
441
442         Tests for module 'unistr/u32-cpy'.
443         * modules/unistr/u32-cpy-tests: New file.
444         * tests/unistr/test-u32-cpy.c: New file.
445
446         Tests for module 'unistr/u16-cpy'.
447         * modules/unistr/u16-cpy-tests: New file.
448         * tests/unistr/test-u16-cpy.c: New file.
449
450         Tests for module 'unistr/u8-cpy'.
451         * modules/unistr/u8-cpy-tests: New file.
452         * tests/unistr/test-u8-cpy.c: New file.
453         * tests/unistr/test-cpy.h: New file.
454
455 2010-01-09  Bruno Haible  <bruno@clisp.org>
456
457         Tests for module 'unistr/u32-uctomb'.
458         * modules/unistr/u32-uctomb-tests: New file.
459         * tests/unistr/test-u32-uctomb.c: New file.
460
461         Tests for module 'unistr/u16-uctomb'.
462         * modules/unistr/u16-uctomb-tests: New file.
463         * tests/unistr/test-u16-uctomb.c: New file.
464
465         Tests for module 'unistr/u8-uctomb'.
466         * modules/unistr/u8-uctomb-tests: New file.
467         * tests/unistr/test-u8-uctomb.c: New file.
468
469         Tests for module 'unistr/u32-mbtoucr'.
470         * modules/unistr/u32-mbtoucr-tests: New file.
471         * tests/unistr/test-u32-mbtoucr.c: New file.
472
473         Tests for module 'unistr/u16-mbtoucr'.
474         * modules/unistr/u16-mbtoucr-tests: New file.
475         * tests/unistr/test-u16-mbtoucr.c: New file.
476
477         Tests for module 'unistr/u8-mbtoucr'.
478         * modules/unistr/u8-mbtoucr-tests: New file.
479         * tests/unistr/test-u8-mbtoucr.c: New file.
480
481         Tests for module 'unistr/u32-mbtouc'.
482         * modules/unistr/u32-mbtouc-tests: New file.
483         * tests/unistr/test-u32-mbtouc.c: New file.
484
485         Tests for module 'unistr/u16-mbtouc'.
486         * modules/unistr/u16-mbtouc-tests: New file.
487         * tests/unistr/test-u16-mbtouc.c: New file.
488
489         Tests for module 'unistr/u8-mbtouc'.
490         * modules/unistr/u8-mbtouc-tests: New file.
491         * tests/unistr/test-u8-mbtouc.c: New file.
492
493         Tests for module 'unistr/u32-mbtouc-unsafe'.
494         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
495         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
496         * tests/unistr/test-u32-mbtouc.h: New file.
497
498         Tests for module 'unistr/u16-mbtouc-unsafe'.
499         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
500         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
501         * tests/unistr/test-u16-mbtouc.h: New file.
502
503         Tests for module 'unistr/u8-mbtouc-unsafe'.
504         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
505         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
506         * tests/unistr/test-u8-mbtouc.h: New file.
507
508         Tests for module 'unistr/u32-mblen'.
509         * modules/unistr/u32-mblen-tests: New file.
510         * tests/unistr/test-u32-mblen.c: New file.
511
512         Tests for module 'unistr/u16-mblen'.
513         * modules/unistr/u16-mblen-tests: New file.
514         * tests/unistr/test-u16-mblen.c: New file.
515
516         Tests for module 'unistr/u8-mblen'.
517         * modules/unistr/u8-mblen-tests: New file.
518         * tests/unistr/test-u8-mblen.c: New file.
519
520         Tests for module 'unistr/u32-to-u16'.
521         * modules/unistr/u32-to-u16-tests: New file.
522         * tests/unistr/test-u32-to-u16.c: New file.
523
524         Tests for module 'unistr/u32-to-u8'.
525         * modules/unistr/u32-to-u8-tests: New file.
526         * tests/unistr/test-u32-to-u8.c: New file.
527
528         Tests for module 'unistr/u16-to-u32'.
529         * modules/unistr/u16-to-u32-tests: New file.
530         * tests/unistr/test-u16-to-u32.c: New file.
531
532         Tests for module 'unistr/u16-to-u8'.
533         * modules/unistr/u16-to-u8-tests: New file.
534         * tests/unistr/test-u16-to-u8.c: New file.
535
536         Tests for module 'unistr/u8-to-u32'.
537         * modules/unistr/u8-to-u32-tests: New file.
538         * tests/unistr/test-u8-to-u32.c: New file.
539
540         Tests for module 'unistr/u8-to-u16'.
541         * modules/unistr/u8-to-u16-tests: New file.
542         * tests/unistr/test-u8-to-u16.c: New file.
543
544         Tests for module 'unistr/u32-check'.
545         * modules/unistr/u32-check-tests: New file.
546         * tests/unistr/test-u32-check.c: New file.
547
548         Tests for module 'unistr/u16-check'.
549         * modules/unistr/u16-check-tests: New file.
550         * tests/unistr/test-u16-check.c: New file.
551
552         Tests for module 'unistr/u8-check'.
553         * modules/unistr/u8-check-tests: New file.
554         * tests/unistr/test-u8-check.c: New file.
555
556         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
557         (category_equals): New function.
558         (main): Add more tests.
559         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
560
561         * tests/unictype/test-bidi_byname.c (main): Add more tests.
562
563 2010-01-10  Bruno Haible  <bruno@clisp.org>
564
565         unistr/u*-strcoll: Try harder to distinguish different strings.
566         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
567         compare s1 and s2 to see if they are different.
568
569 2010-01-10  Bruno Haible  <bruno@clisp.org>
570
571         unistr/u*-stpncpy: Fix the return value.
572         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
573         description of the return value consistent with stpncpy in glibc.
574         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
575         written non-NUL unit.
576
577 2010-01-10  Bruno Haible  <bruno@clisp.org>
578
579         unistr/u*-next: Add missing dependencies.
580         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
581         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
582         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
583
584 2010-01-10  Bruno Haible  <bruno@clisp.org>
585
586         unistr/u8-mbsnlen: Fix return value for incomplete character.
587         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
588         u8_mblen.
589         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
590         Remove unistr/u8-mblen.
591         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
592         u16_mblen.
593         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
594         Remove unistr/u16-mblen.
595
596 2010-01-10  Bruno Haible  <bruno@clisp.org>
597
598         wchar: Fix compilation error when <wchar.h> is used from coreutils.
599         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
600         Reported by Brian Gough <bjg@gnu.org> and
601         Chris Clayton <chris2553@googlemail.com> via
602         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
603
604 2010-01-09  Bruno Haible  <bruno@clisp.org>
605
606         unistr/u16-to-u32: Reject invalid input.
607         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
608         u16_mbtouc.
609         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
610         Remove unistr/u16-mbtouc.
611
612         unistr/u16-to-u8: Reject invalid input.
613         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
614         u16_mbtouc.
615         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
616         Remove unistr/u16-mbtouc.
617
618         unistr/u8-to-u32: Reject invalid input.
619         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
620         u8_mbtouc.
621         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
622         Remove unistr/u8-mbtouc.
623
624         unistr/u8-to-u16: Reject invalid input.
625         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
626         u8_mbtouc.
627         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
628         Remove unistr/u8-mbtouc.
629
630 2010-01-09  Bruno Haible  <bruno@clisp.org>
631
632         Tests for module 'getlogin'.
633         * modules/getlogin-tests: New file.
634         * tests/test-getlogin.c: New file.
635
636         New module 'getlogin'.
637         * lib/unistd.in.h (getlogin): New declaration.
638         * lib/getlogin.c: New file.
639         * m4/getlogin.m4: New file.
640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
641         HAVE_GETLOGIN.
642         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
643         HAVE_GETLOGIN.
644         * modules/getlogin: New file.
645         * doc/posix-functions/getlogin.texi: Mention the new module.
646         Reported by John W. Eaton <jwe@gnu.org>.
647
648 2010-01-09  Bruno Haible  <bruno@clisp.org>
649
650         getlogin_r: Support for native Windows.
651         * lib/getlogin_r.c: Include <windows.h>
652         (getlogin_r): Implement for native Windows.
653         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
654         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
655         via John W. Eaton <jwe@gnu.org>.
656
657 2010-01-09  Bruno Haible  <bruno@clisp.org>
658
659         getlogin_r: Small fixes.
660         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
661         succeeds.
662         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
663         before testing whether getlogin_r is declared. No need to set
664         HAVE_DECL_GETLOGIN_R to 1.
665         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
666
667 2010-01-09  Bruno Haible  <bruno@clisp.org>
668
669         * lib/unistd.in.h (getlogin_r): Add comment.
670
671 2010-01-09  Bruno Haible  <bruno@clisp.org>
672
673         Tests for module 'getlogin_r'.
674         * modules/getlogin_r-tests: New file.
675         * tests/test-getlogin_r.c: New file.
676
677 2010-01-09  Jim Meyering  <meyering@redhat.com>
678
679         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
680         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
681         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
682
683 2010-01-08  Simon Josefsson  <simon@josefsson.org>
684
685         * lib/dup2.c (rpl_dup2): Improve comment.
686
687 2010-01-08  Eric Blake  <ebb9@byu.net>
688
689         maint.mk: allow packages to add makefile @@ exceptions
690         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
691         (sc_makefile_check): Rename...
692         (sc_makefile_at_at_check): ...to this, and use hook.
693
694         dup2: work around mingw bug
695         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
696         Reported by Simon Josefsson.
697
698 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
699
700         glob: Fix C++ compilation.
701         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
702         C++.
703
704 2010-01-07  Bruno Haible  <bruno@clisp.org>
705
706         Fix indentation of wctype.in.h, broken since 2007-01-06.
707         * lib/wctype.in.h: Fix indentation of preprocessor directives.
708
709 2010-01-07  Bruno Haible  <bruno@clisp.org>
710
711         mbslen: Avoid collision with system function.
712         * lib/string.in.h [MirBSD]: Include <wchar.h>.
713         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
714         * m4/mbslen.m4: New file.
715         * modules/mbslen (Files): Add it.
716         (configure.ac): Invoke gl_MBSLEN.
717         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
718         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
719         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
720         via Ian Beckwith <ianb@erislabs.net>.
721
722 2010-01-07  Bruno Haible  <bruno@clisp.org>
723
724         dirent: Document the last fix.
725         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
726
727 2010-01-07  Bruno Haible  <bruno@clisp.org>
728
729         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
730         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
731         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
732         va_list are defined.
733         * doc/posix-headers/stdio.texi: Document the bug of missing types.
734         Reported by Eric Blake.
735
736 2010-01-07  Bruno Haible  <bruno@clisp.org>
737
738         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
739         * modules/xlist (Depends-on): Add 'list',
740         * modules/xoset (Depends-on): Add 'oset'.
741         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
742
743 2010-01-07  Bruno Haible  <bruno@clisp.org>
744
745         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
746         * doc/posix-functions/strncasecmp.texi: Likewise.
747
748 2010-01-07  Bruno Haible  <bruno@clisp.org>
749
750         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
751
752 2010-01-07  John W. Eaton  <jwe@octave.org>
753
754         wctype: allow C++ use
755         * lib/wctype.in.h: Add extern "C" block for C++.
756
757 2010-01-06  Eric Blake  <ebb9@byu.net>
758
759         maint.mk: detect incorrect GFDL usage
760         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
761
762 2010-01-06  Jim Meyering  <meyering@redhat.com>
763         and Eric Blake  <ebb9@byu.net>
764
765         maint.mk: ignore multi-line copyright in NEWS
766         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
767
768 2010-01-06  Eric Blake  <ebb9@byu.net>
769
770         select: add missing dependency
771         * modules/select-tests (Depends-on): Move sockets dependency...
772         * modules/select (Depends-on): ...here.
773         Reported by Ian Beckwith.
774
775         doc: regenerate INSTALL
776         * doc/INSTALL: Reflect recent autoconf update.
777         * doc/INSTALL.ISO: Likewise.
778         * doc/INSTALL.UTF-8: Likewise.
779
780         pread: fix compilation on glibc
781         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
782         Reported by Ralf Wildenhues.
783
784         dirent: fix test failure
785         * lib/dirent.in.h (includes): Guarantee ino_t.
786         Reported by Ralf Wildenhues.
787
788 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
789
790         linkat, renameat: avoid bad free
791         * lib/at-func2.c (at_func2): Fix typo.
792         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
793
794 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
795
796         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
797         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
798         to avoid failure of symlink test later.
799
800 2010-01-06  Eric Blake  <ebb9@byu.net>
801
802         stdio, unistd: guarantee ssize_t
803         * lib/unistd.in.h (includes): Ensure that types required by POSIX
804         2008 are exposed when needed.
805         * lib/stdio.in.h (includes): Likewise.
806         Reported by Ralf Wildenhues.
807
808 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
809
810         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
811         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
812         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
813
814 2010-01-06  Jim Meyering  <meyering@redhat.com>
815
816         readtokens: this module *does* require xalloc.h
817         It uses only functions that were omitted by the old syntax-check rule.
818         * lib/readtokens.c: Include "xalloc.h" once again.
819         * modules/readtokens (Depends-on): Add xalloc.
820         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
821
822 2010-01-05  Eric Blake  <ebb9@byu.net>
823
824         maint: support 'make announcement' from a VPATH build
825         * top/maint.mk (announcement): Look for correct NEWS file.
826
827 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
828
829         utimens (fdutimens): ignore a negative FD, per contract
830         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
831         when we have a valid file descriptor.  Otherwise, using a brand
832         new glibc (with just-patched futimens that now fails with EBADF)
833         would cause this function to fail with ENOSYS.
834         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
835         See also http://bugzilla.redhat.com/552320.
836
837 2010-01-05  Eric Blake  <ebb9@byu.net>
838
839         strcase: document what it provides
840         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
841         gnulib module.
842         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
843         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
844
845 2010-01-05  Jim Meyering  <meyering@redhat.com>
846
847         maint: remove useless inclusions of "xalloc.h"
848         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
849         * lib/readtokens.c: Likewise.
850         * lib/same.c: Likewise.
851         * modules/getloadavg (Depends-on): Remove xalloc.
852         * modules/readtokens: Likewise.
853         * modules/same: Likewise.
854
855         maint.mk: include 4 more function names in alloca.h-checking regexp
856         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
857         regexp.  Before, we would give a false-positive (saying alloca.h
858         is included unnecessarily) when the only uses involved omitted symbols.
859
860         xalloc.h: use consistent formatting
861         * lib/xalloc.h: Move declarations to start in the first column.
862
863 2010-01-05  Eric Blake  <ebb9@byu.net>
864
865         mkdir: avoid xalloc
866         * lib/mkdir.c (includes): Drop unused header.
867         Reported by John W. Eaton.
868
869 2010-01-04  Jim Meyering  <meyering@redhat.com>
870
871         nl_langinfo: avoid configure-time syntax error
872         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
873         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
874         the empty string.  Don't let that provoke a shell syntax error.
875
876         regcomp, regexec, fnmatch: avoid array bounds read error
877         * lib/regcomp.c (build_equiv_class): From glibc:
878         Use only the low 24 bits of a findidx return value as an index
879         into the weights array.  Patch by Ulrich Drepper:
880         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
881         * lib/regexec.c (check_node_accept_bytes): Likewise.
882         * lib/fnmatch_loop.c (FCT): Likewise.
883
884         regcomp: skip collseq lookup when there are no rules
885         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
886         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
887
888         regcomp: recognize ill-formed { } expressions
889         * lib/regcomp.c (parse_dup_op): From glibc:
890         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
891
892         regcomp: fix typo in comment
893         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
894         s/satisfy/satisfies/.
895
896         regcomp: sync from glibc: remove dead store
897         * lib/regcomp.c (duplicate_node_closure): Remove useless
898         search_duplicated_node call and dead store.
899
900         regcomp: sync from glibc; always use nl_langinfo
901         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
902         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
903         * modules/regex (Depends-on): Add nl_langinfo.
904
905 2010-01-04  Eric Blake  <ebb9@byu.net>
906
907         fdopendir: fix configure test
908         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
909
910 2010-01-01  Bruno Haible  <bruno@clisp.org>
911
912         wchar: Remove unused configure check.
913         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
914
915 2010-01-01  Eric Blake  <ebb9@byu.net>
916
917         headers: make check of system header explicit
918         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
919         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
920         ourselves.
921         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
922         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
923         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
924         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
925         internals.
926         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
927         missing.
928         Suggested by Bruno Haible.
929
930 2010-01-01  Jim Meyering  <meyering@redhat.com>
931
932         ChangeLog: tweak to eliminate unnecessary copyright line
933         * ChangeLog: Remove a copyright line that was mistakenly updated
934         by today's update-copyright run.  Reported by Eric Blake.
935
936         test-update-copyright: don't let envvar setting cause test failure
937         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
938
939 2010-01-01  Bruno Haible  <bruno@clisp.org>
940
941         localename: Avoid gcc warning.
942         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
943         function if it is not used.
944
945 2010-01-01  Jim Meyering  <meyering@redhat.com>
946
947         update nearly all FSF copyright year lists to include 2010
948         Use the same procedure as for 2009, outlined in
949         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
950
951         version-etc: set COPYRIGHT_YEAR to 2010
952         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
953
954 2009-12-31  Eric Blake  <ebb9@byu.net>
955
956         doc: correct availability of cygwin 1.5.x getopt
957         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
958         variables.
959         * doc/posix-functions/opterr.texi (opterr): Likewise.
960         * doc/posix-functions/optind.texi (optind): Likewise.
961         * doc/posix-functions/optopt.texi (optopt): Likewise.
962         * doc/posix-functions/tzname.texi (tzname): Likewise.
963
964         openat: update maintainer
965         * modules/openat (Maintainer): Add myself.
966
967         utimens: avoid shadowing warning
968         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
969         buffers into one, to avoid shadowing, as well as avoiding a
970         redundant stat.
971         Reported by Jim Meyering.
972
973         test-dup2: avoid compiler warning
974         * tests/test-dup2.c (is_inheritable): Only define if used.
975
976 2010-01-01  Bruno Haible  <bruno@clisp.org>
977
978         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
979         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
980         defined, use wctomb instead of wcrtomb.
981
982 2010-01-01  Bruno Haible  <bruno@clisp.org>
983
984         iconv: Reject native Solaris iconv.
985         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
986         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
987
988 2009-12-31  Bruno Haible  <bruno@clisp.org>
989
990         * tests/test-signal.c (main): Remove test of 'SIG'.
991
992 2009-12-31  Bruno Haible  <bruno@clisp.org>
993
994         spawn: Fix incomplete fix.
995         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
996         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
997         warnings for GNULIB_POSIXCHECK again.
998         Reported by Eric Blake.
999
1000 2009-12-31  Bruno Haible  <bruno@clisp.org>
1001
1002         Avoid namespace pollution on glibc systems.
1003         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
1004         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
1005         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
1006         glibc systems.
1007
1008 2009-12-31  Bruno Haible  <bruno@clisp.org>
1009
1010         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
1011         (gl_REPLACE_WCHAR_H): Turn into a no-op.
1012         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
1013         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
1014         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
1015         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
1016         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
1017
1018 2009-12-31  Bruno Haible  <bruno@clisp.org>
1019
1020         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
1021         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
1022         afterwards.
1023
1024 2009-12-31  Bruno Haible  <bruno@clisp.org>
1025
1026         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
1027         SYS_UTSNAME_H.
1028
1029 2009-12-31  Bruno Haible  <bruno@clisp.org>
1030
1031         spawn: Fix misapplied patch.
1032         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
1033         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
1034         warnings for GNULIB_POSIXCHECK.
1035
1036 2009-12-31  Bruno Haible  <bruno@clisp.org>
1037
1038         times: Update after sys_times changed.
1039         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
1040         * modules/times (Files): Add it.
1041         (configure.ac): Invoke gl_FUNC_TIMES.
1042
1043 2009-12-31  Bruno Haible  <bruno@clisp.org>
1044
1045         Use AC_C_INLINE where necessary.
1046         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
1047         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
1048         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
1049         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
1050         * m4/mbfile.m4 (gl_MBFILE): Likewise.
1051         * m4/mbiter.m4 (gl_MBITER): Likewise.
1052         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
1053         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
1054         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
1055         * modules/u64 (configure.ac): Likewise.
1056
1057 2009-12-31  Bruno Haible  <bruno@clisp.org>
1058
1059         Use AC_C_INLINE instead of module 'inline' where possible.
1060         * modules/inline (Description): Clarify purpose.
1061         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
1062         * modules/count-one-bits (Depends-on): Remove inline.
1063         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
1064         * modules/openat (Depends-on): Remove inline.
1065         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
1066         instead of depending on module 'inline'.
1067         * modules/filevercmp (Depends-on, configure.ac): Likewise.
1068         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
1069         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
1070         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
1071         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
1072         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
1073         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
1074         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
1075         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
1076         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
1077         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
1078         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
1079         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
1080         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
1081         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
1082         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
1083         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
1084         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
1085         Likewise.
1086         * modules/unictype/property-ascii-hex-digit (Depends-on,
1087         configure.ac): Likewise.
1088         * modules/unictype/property-bidi-arabic-digit (Depends-on,
1089         configure.ac): Likewise.
1090         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
1091         configure.ac): Likewise.
1092         * modules/unictype/property-bidi-block-separator (Depends-on,
1093         configure.ac): Likewise.
1094         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
1095         configure.ac): Likewise.
1096         * modules/unictype/property-bidi-common-separator (Depends-on,
1097         configure.ac): Likewise.
1098         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
1099         Likewise.
1100         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
1101         configure.ac): Likewise.
1102         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
1103         configure.ac): Likewise.
1104         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
1105         configure.ac): Likewise.
1106         * modules/unictype/property-bidi-european-digit (Depends-on,
1107         configure.ac): Likewise.
1108         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
1109         configure.ac): Likewise.
1110         * modules/unictype/property-bidi-left-to-right (Depends-on,
1111         configure.ac): Likewise.
1112         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
1113         configure.ac): Likewise.
1114         * modules/unictype/property-bidi-other-neutral (Depends-on,
1115         configure.ac): Likewise.
1116         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
1117         Likewise.
1118         * modules/unictype/property-bidi-segment-separator (Depends-on,
1119         configure.ac): Likewise.
1120         * modules/unictype/property-bidi-whitespace (Depends-on,
1121         configure.ac): Likewise.
1122         * modules/unictype/property-combining (Depends-on, configure.ac):
1123         Likewise.
1124         * modules/unictype/property-composite (Depends-on, configure.ac):
1125         Likewise.
1126         * modules/unictype/property-currency-symbol (Depends-on,
1127         configure.ac): Likewise.
1128         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
1129         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
1130         Likewise.
1131         * modules/unictype/property-default-ignorable-code-point (Depends-on,
1132         configure.ac): Likewise.
1133         * modules/unictype/property-deprecated (Depends-on, configure.ac):
1134         Likewise.
1135         * modules/unictype/property-diacritic (Depends-on, configure.ac):
1136         Likewise.
1137         * modules/unictype/property-extender (Depends-on, configure.ac):
1138         Likewise.
1139         * modules/unictype/property-format-control (Depends-on, configure.ac):
1140         Likewise.
1141         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
1142         Likewise.
1143         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
1144         Likewise.
1145         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
1146         Likewise.
1147         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
1148         Likewise.
1149         * modules/unictype/property-hyphen (Depends-on, configure.ac):
1150         Likewise.
1151         * modules/unictype/property-id-continue (Depends-on, configure.ac):
1152         Likewise.
1153         * modules/unictype/property-id-start (Depends-on, configure.ac):
1154         Likewise.
1155         * modules/unictype/property-ideographic (Depends-on, configure.ac):
1156         Likewise.
1157         * modules/unictype/property-ids-binary-operator (Depends-on,
1158         configure.ac): Likewise.
1159         * modules/unictype/property-ids-trinary-operator (Depends-on,
1160         configure.ac): Likewise.
1161         * modules/unictype/property-ignorable-control (Depends-on,
1162         configure.ac): Likewise.
1163         * modules/unictype/property-iso-control (Depends-on, configure.ac):
1164         Likewise.
1165         * modules/unictype/property-join-control (Depends-on, configure.ac):
1166         Likewise.
1167         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
1168         Likewise.
1169         * modules/unictype/property-line-separator (Depends-on, configure.ac):
1170         Likewise.
1171         * modules/unictype/property-logical-order-exception (Depends-on,
1172         configure.ac): Likewise.
1173         * modules/unictype/property-lowercase (Depends-on, configure.ac):
1174         Likewise.
1175         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
1176         * modules/unictype/property-non-break (Depends-on, configure.ac):
1177         Likewise.
1178         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
1179         Likewise.
1180         * modules/unictype/property-numeric (Depends-on, configure.ac):
1181         Likewise.
1182         * modules/unictype/property-other-alphabetic (Depends-on,
1183         configure.ac): Likewise.
1184         * modules/unictype/property-other-default-ignorable-code-point
1185         (Depends-on, configure.ac): Likewise.
1186         * modules/unictype/property-other-grapheme-extend (Depends-on,
1187         configure.ac): Likewise.
1188         * modules/unictype/property-other-id-continue (Depends-on,
1189         configure.ac): Likewise.
1190         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
1191         Likewise.
1192         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
1193         Likewise.
1194         * modules/unictype/property-other-math (Depends-on, configure.ac):
1195         Likewise.
1196         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
1197         Likewise.
1198         * modules/unictype/property-paired-punctuation (Depends-on,
1199         configure.ac): Likewise.
1200         * modules/unictype/property-paragraph-separator (Depends-on,
1201         configure.ac): Likewise.
1202         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
1203         Likewise.
1204         * modules/unictype/property-pattern-white-space (Depends-on,
1205         configure.ac): Likewise.
1206         * modules/unictype/property-private-use (Depends-on, configure.ac):
1207         Likewise.
1208         * modules/unictype/property-punctuation (Depends-on, configure.ac):
1209         Likewise.
1210         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
1211         Likewise.
1212         * modules/unictype/property-radical (Depends-on, configure.ac):
1213         Likewise.
1214         * modules/unictype/property-sentence-terminal (Depends-on,
1215         configure.ac): Likewise.
1216         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
1217         Likewise.
1218         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
1219         * modules/unictype/property-terminal-punctuation (Depends-on,
1220         configure.ac): Likewise.
1221         * modules/unictype/property-titlecase (Depends-on, configure.ac):
1222         Likewise.
1223         * modules/unictype/property-unassigned-code-value (Depends-on,
1224         configure.ac): Likewise.
1225         * modules/unictype/property-unified-ideograph (Depends-on,
1226         configure.ac): Likewise.
1227         * modules/unictype/property-uppercase (Depends-on, configure.ac):
1228         Likewise.
1229         * modules/unictype/property-variation-selector (Depends-on,
1230         configure.ac): Likewise.
1231         * modules/unictype/property-white-space (Depends-on, configure.ac):
1232         Likewise.
1233         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
1234         Likewise.
1235         * modules/unictype/property-xid-start (Depends-on, configure.ac):
1236         Likewise.
1237         * modules/unictype/property-zero-width (Depends-on, configure.ac):
1238         Likewise.
1239         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
1240         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
1241         Likewise.
1242
1243 2009-12-31  Bruno Haible  <bruno@clisp.org>
1244
1245         Remove unnecessary AC_C_INLINE invocation.
1246         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
1247         since 2009-08-21.
1248
1249 2009-12-31  Jim Meyering  <meyering@redhat.com>
1250
1251         maint.mk: don't require explicit gpg_key_ID in cfg.mk
1252         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
1253         With this change, we can all remove the gpg_key_ID = ... definition
1254         from our respective cfg.mk files.
1255
1256         maint.mk: create announcement template in ~/, not in /tmp
1257         * top/maint.mk (emit_upload_commands): Adjust.
1258         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
1259         Remove temporary file, .ci-msg.
1260
1261 2009-12-31  Eric Blake  <ebb9@byu.net>
1262
1263         link-warning: always build headers with link warnings
1264         * modules/arpa_inet (Makefile.am): Always build replacement
1265         header.
1266         * modules/ctype (Makefile.am): Likewise.
1267         * modules/dirent (Makefile.am): Likewise.
1268         * modules/inttypes (Makefile.am): Likewise.
1269         * modules/langinfo (Makefile.am): Likewise.
1270         * modules/locale (Makefile.am): Likewise.
1271         * modules/spawn (Makefile.am): Likewise.
1272         * modules/sys_file (Makefile.am): Likewise.
1273         * modules/sys_ioctl (Makefile.am): Likewise.
1274         * modules/sys_select (Makefile.am): Likewise.
1275         * modules/sys_socket (Makefile.am): Likewise.
1276         * modules/sys_times (Makefile.am): Likewise.
1277         * modules/sys_utsname (Makefile.am): Likewise.
1278         * modules/sys_wait (Makefile.am): Likewise.
1279         * modules/wchar (Makefile.am): Likewise.
1280         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
1281         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
1282         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
1283         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
1284         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
1285         Likewise.
1286         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1287         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1288         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
1289         Likewise.
1290         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
1291         Likewise.
1292         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
1293         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
1294         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
1295         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1296         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1297         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
1298         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
1299         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
1300         (gl_WCHAR_H_DEFAULTS): Likewise.
1301
1302 2009-12-31  Eric Blake  <ebb9@byu.net>
1303
1304         signal, spawn: use link warnings
1305         * lib/signal.in.h (sigset_t): Make unconditional.
1306         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
1307         (sigpending, sigprocmask, sigaction): Add link warnings.
1308         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
1309         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
1310         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
1311         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
1312         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
1313         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
1314         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
1315         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
1316         (posix_spawn_file_actions_destroy)
1317         (posix_spawn_file_actions_addopen)
1318         (posix_spawn_file_actions_addclose)
1319         (posix_spawwn_file_actions_adddup2): Likewise.
1320         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
1321         * tests/test-signal.c (main): Enhance test.
1322
1323         spawn: improve wrapper support
1324         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
1325         (gl_SPAWN_H_DEFAULTS): New defaults.
1326         * modules/spawn (Makefile.am): Substitute them.
1327         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
1328         Only declare if missing or broken.
1329
1330         sys_times, sys_utsname: use include_next
1331         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
1332         header.
1333         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
1334         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
1335         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
1336         * modules/sys_times (Depends-on): Add include_next.
1337         (Makefile.am): Substitute additional values.
1338         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
1339         * lib/sys_times.in.h (includes): Include native header, if
1340         available.
1341         * lib/sys_utsname.in.h (includes): Likewise.
1342         * tests/test-sys_times.c (main): Enhance test.
1343
1344         fdutimensat: revert prior patch
1345         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
1346         utimens.h.
1347         Reported by Bruno Haible.
1348
1349 2009-12-30  Eric Blake  <ebb9@byu.net>
1350
1351         sys_wait: drop link-warning dependency
1352         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
1353         link-warning efforts.
1354         * lib/sys_wait.in.h: Likewise.
1355
1356         fdutimensat: remove bogus dependency
1357         * modules/fdutimensat (Depends-on): Drop inline.
1358
1359         unistd: fix typo
1360         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
1361
1362 2009-12-30  Bruno Haible  <bruno@clisp.org>
1363
1364         Fix compilation error with Solaris cc.
1365         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
1366         * lib/unicase/u16-is-invariant.c: Likewise.
1367         * lib/unicase/u32-is-invariant.c: Likewise.
1368         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
1369
1370 2009-12-30  Bruno Haible  <bruno@clisp.org>
1371
1372         Fix test crash.
1373         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
1374         locales.
1375         Reported by Simon Josefsson <simon@josefsson.org>.
1376
1377 2009-12-30  Bruno Haible  <bruno@clisp.org>
1378
1379         Fix compilation error on most platforms.
1380         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
1381         Reported by Simon Josefsson <simon@josefsson.org>
1382         and Nelson H. F. Beebe <beebe@math.utah.edu>.
1383
1384 2009-12-30  Eric Blake  <ebb9@byu.net>
1385
1386         futimens, utimensat: work around ntfs-3g bug
1387         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
1388         a ctime bug is present, and expand workaround to cover ntfs-3g.
1389         * lib/utimens.c (fdutimens, lutimens): Likewise.
1390         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
1391         (validate_timespec): Adjust return value.
1392         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
1393         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
1394         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
1395
1396 2009-12-29  Eric Blake  <ebb9@byu.net>
1397
1398         link-warning: make usage consistent
1399         * modules/ctype (Depends-on): Add link-warning.
1400         (Makefile.am): Update rules accordingly.
1401         * modules/langinfo (Depends-on, Makefile.am): Likewise.
1402         * modules/locale (Depends-on, Makefile.am): Likewise.
1403         * modules/sys_file (Makefile.am): Likewise.
1404         * modules/getopt-posix (Makefile.am): Delete unused link warning
1405         efforts.
1406         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
1407         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
1408         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
1409         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
1410
1411         stdio: remove unused variables
1412         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
1413         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
1414         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
1415
1416         tests: test more substitute headers
1417         * modules/ctype-tests: New file.
1418         * modules/dirent-tests: Likewise.
1419         * modules/spawn-tests: Likewise.
1420         * modules/sys_file-tests: Likewise.
1421         * modules/sys_ioctl-tests: Likewise.
1422         * modules/sys_wait-tests: Likewise.
1423         * tests/test-ctype.c: Likewise.
1424         * tests/test-dirent.c: Likewise.
1425         * tests/test-spawn.c: Likewise.
1426         * tests/test-sys_file.c: Likewise.
1427         * tests/test-sys_ioctl.c: Likewise.
1428         * tests/test-sys_wait.c: Likewise.
1429         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
1430         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
1431         whether or not flock is in use.
1432
1433         tests: remove License section from module
1434         * modules/arpa_inet-tests: Remove unneeded section.
1435         * modules/byteswap-tests: Likewise.
1436         * modules/ceilf-tests: Likewise.
1437         * modules/ceill-tests: Likewise.
1438         * modules/crypto/des-tests: Likewise.
1439         * modules/crypto/gc-arcfour-tests: Likewise.
1440         * modules/crypto/gc-arctwo-tests: Likewise.
1441         * modules/crypto/gc-des-tests: Likewise.
1442         * modules/crypto/gc-hmac-md5-tests: Likewise.
1443         * modules/crypto/gc-hmac-sha1-tests: Likewise.
1444         * modules/crypto/gc-md2-tests: Likewise.
1445         * modules/crypto/gc-md4-tests: Likewise.
1446         * modules/crypto/gc-md5-tests: Likewise.
1447         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
1448         * modules/crypto/gc-rijndael-tests: Likewise.
1449         * modules/crypto/gc-sha1-tests: Likewise.
1450         * modules/crypto/gc-tests: Likewise.
1451         * modules/crypto/md2-tests: Likewise.
1452         * modules/crypto/md4-tests: Likewise.
1453         * modules/fcntl-h-tests: Likewise.
1454         * modules/floorf-tests: Likewise.
1455         * modules/floorl-tests: Likewise.
1456         * modules/frexp-nolibm-tests: Likewise.
1457         * modules/frexp-tests: Likewise.
1458         * modules/frexpl-nolibm-tests: Likewise.
1459         * modules/frexpl-tests: Likewise.
1460         * modules/getaddrinfo-tests: Likewise.
1461         * modules/inttypes-tests: Likewise.
1462         * modules/isfinite-tests: Likewise.
1463         * modules/isinf-tests: Likewise.
1464         * modules/ldexpl-tests: Likewise.
1465         * modules/locale-tests: Likewise.
1466         * modules/math-tests: Likewise.
1467         * modules/netdb-tests: Likewise.
1468         * modules/netinet_in-tests: Likewise.
1469         * modules/printf-frexp-tests: Likewise.
1470         * modules/printf-frexpl-tests: Likewise.
1471         * modules/priv-set-tests: Likewise.
1472         * modules/random_r-tests: Likewise.
1473         * modules/round-tests: Likewise.
1474         * modules/roundf-tests: Likewise.
1475         * modules/roundl-tests: Likewise.
1476         * modules/search-tests: Likewise.
1477         * modules/select-tests: Likewise.
1478         * modules/signal-tests: Likewise.
1479         * modules/stdbool-tests: Likewise.
1480         * modules/stddef-tests: Likewise.
1481         * modules/stdint-tests: Likewise.
1482         * modules/stdio-tests: Likewise.
1483         * modules/stdlib-tests: Likewise.
1484         * modules/string-tests: Likewise.
1485         * modules/strings-tests: Likewise.
1486         * modules/sys_select-tests: Likewise.
1487         * modules/sys_socket-tests: Likewise.
1488         * modules/sys_stat-tests: Likewise.
1489         * modules/sys_time-tests: Likewise.
1490         * modules/sys_utsname-tests: Likewise.
1491         * modules/sysexits-tests: Likewise.
1492         * modules/time-tests: Likewise.
1493         * modules/trunc-tests: Likewise.
1494         * modules/truncf-tests: Likewise.
1495         * modules/truncl-tests: Likewise.
1496         * modules/tsearch-tests: Likewise.
1497         * modules/unistd-tests: Likewise.
1498         * modules/wchar-tests: Likewise.
1499         * modules/wctype-tests: Likewise.
1500
1501         tests: fix license on several tests
1502         * tests/test-des.c: Update to GPLv3+.
1503         * tests/test-flock.c: Likewise.
1504         * tests/test-fsync.c: Likewise.
1505         * tests/test-futimens.h: Likewise.
1506         * tests/test-gc-arcfour.c: Likewise.
1507         * tests/test-gc-arctwo.c: Likewise.
1508         * tests/test-gc-des.c: Likewise.
1509         * tests/test-gc-hmac-md5.c: Likewise.
1510         * tests/test-gc-hmac-sha1.c: Likewise.
1511         * tests/test-gc-md2.c: Likewise.
1512         * tests/test-gc-md4.c: Likewise.
1513         * tests/test-gc-md5.c: Likewise.
1514         * tests/test-gc-pbkdf2-sha1.c: Likewise.
1515         * tests/test-gc-rijndael.c: Likewise.
1516         * tests/test-gc-sha1.c: Likewise.
1517         * tests/test-gc.c: Likewise.
1518         * tests/test-getcwd.c: Likewise.
1519         * tests/test-link.c: Likewise.
1520         * tests/test-link.h: Likewise.
1521         * tests/test-lutimens.h: Likewise.
1522         * tests/test-md2.c: Likewise.
1523         * tests/test-md4.c: Likewise.
1524         * tests/test-mkdir.h: Likewise.
1525         * tests/test-rename.c: Likewise.
1526         * tests/test-rename.h: Likewise.
1527         * tests/test-safe-alloc.c: Likewise.
1528         * tests/test-utimens-common.h: Likewise.
1529         * tests/test-utimens.h: Likewise.
1530
1531         maint: sync license texts
1532         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
1533         * doc/gpl-3.0.texi: Revert copyright year update.
1534         * doc/lgpl-3.0.texi: Likewise.
1535
1536 2009-12-29  Jim Meyering  <meyering@redhat.com>
1537
1538         update nearly all FSF copyright year lists to include 2009
1539         The files named by the following are exempted:
1540             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
1541               test -f "$dst" && { echo "$dst"; continue; }
1542               test -d "$dst" || continue
1543               echo "$dst"/$(basename "$src")
1544             done > exempt
1545             git ls-files tests/unictype >> exempt
1546         In the remaining files, convert to all-interval notation if
1547         - there is already at least one year interval like 2000-2003
1548         - the file is maintained by me
1549         - the file is in lib/uni*/, where that style already prevails
1550         Otherwise, use update-copyright's default.
1551
1552 2009-12-29  Simon Josefsson  <simon@josefsson.org>
1553         and Eric Blake  <ebb9@byu.net>
1554
1555         tests: don't require debug system() to pass
1556         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
1557         * tests/test-rmdir.h (test_rmdir_func): Likewise.
1558         * tests/test-unlink.h (test_unlink_func): Likewise.
1559         * tests/test-fstatat.c (main): ...into callers.
1560         * tests/test-lstat.c (main): Likewise.
1561         * tests/test-rmdir.c (main): Likewise.
1562         * tests/test-unlink.c (main): Likewise.
1563         * tests/test-unlinkat.c (main): Likewise.
1564         * tests/test-areadlink-with-size.c (main): Don't require a
1565         debug-only system call to pass, aiding cross-testing to mingw.
1566         * tests/test-areadlink.c (main): Likewise.
1567         * tests/test-areadlinkat-with-size.c (main): Likewise.
1568         * tests/test-areadlinkat.c (main): Likewise.
1569         * tests/test-canonicalize-lgpl.c (main): Likewise.
1570         * tests/test-canonicalize.c (main): Likewise.
1571         * tests/test-chown.c (main): Likewise.
1572         * tests/test-fchownat.c (main): Likewise.
1573         * tests/test-lchown.c (main): Likewise.
1574         * tests/test-fdutimensat.c (main): Likewise.
1575         * tests/test-futimens.c (main): Likewise.
1576         * tests/test-link.c (main): Likewise.
1577         * tests/test-linkat.c (main): Likewise.
1578         * tests/test-mkdir.c (main): Likewise.
1579         * tests/test-mkdirat.c (main): Likewise.
1580         * tests/test-mkfifo.c (main): Likewise.
1581         * tests/test-mkfifoat.c (main): Likewise.
1582         * tests/test-mknod.c (main): Likewise.
1583         * tests/test-readlink.c (main): Likewise.
1584         * tests/test-remove.c (main): Likewise.
1585         * tests/test-rename.c (main): Likewise.
1586         * tests/test-renameat.c (main): Likewise.
1587         * tests/test-symlink.c (main): Likewise.
1588         * tests/test-symlinkat.c (main): Likewise.
1589         * tests/test-utimens.c (main): Likewise.
1590         * tests/test-utimensat.c (main): Likewise.
1591
1592 2009-12-29  Simon Josefsson  <simon@josefsson.org>
1593
1594         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
1595         on $(UNUSED_PARAMETER_H) to avoid build failure.
1596
1597 2009-12-28  Jim Meyering  <meyering@redhat.com>
1598
1599         update-copyright: you may specify a max. line length other than 72
1600         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
1601
1602         maint: use consistent FSF copyright line syntax
1603         * lib/posixtm.c: Add missing comma in FSF copyright line.
1604         * lib/posixtm.h: Likewise.
1605         * lib/getugroups.c: Add missing ", Inc.".
1606
1607         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
1608         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
1609         FSF copyright line.  Remove trailing blanks.
1610
1611 2009-12-28  Eric Blake  <ebb9@byu.net>
1612
1613         test-dup2: reduce dependencies
1614         * modules/cloexec (Configure.ac): Set witness.
1615         * modules/dup2-tests (Depends-on): Drop cloexec.
1616         * tests/test-dup2.c (main): Skip portion of test if cloexec module
1617         not present.
1618         Suggested by Bruno Haible.
1619
1620 2009-12-26  Bruno Haible  <bruno@clisp.org>
1621
1622         Remove an unneeded dependency.
1623         * modules/fseterr (Depends-on): Remove dup2.
1624
1625 2009-12-26  Eric Blake  <ebb9@byu.net>
1626
1627         tests: use macros.h in more places
1628         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
1629         (ASSERT_STREAM): Provide default of stderr.
1630         * tests/test-dirent-safer.c: Include macros.h, using alternate
1631         stream for assertions.
1632         * tests/test-dup-safer.c: Likewise.
1633         * tests/test-freopen-safer.c: Likewise.
1634         * tests/test-getopt.c: Likewise.
1635         * tests/test-openat-safer.c: Likewise.
1636         * tests/test-pipe.c: Likewise.
1637         * tests/test-popen-safer.c: Likewise.
1638         * modules/dirent-safer-tests (Files): Include macros.h.
1639         * modules/unistd-safer-tests (Files): Likewise.
1640         * modules/freopen-safer-tests (Files): Likewise.
1641         * modules/getopt-posix-tests (Files): Likewise.
1642         * modules/openat-safer-tests (Files): Likewise.
1643         * modules/pipe-tests (Files): Likewise.
1644
1645 2009-12-26  Bruno Haible  <bruno@clisp.org>
1646
1647         javacomp: Portability fix.
1648         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
1649         that it also works on Solaris.
1650
1651 2009-12-26  Bruno Haible  <bruno@clisp.org>
1652
1653         localename: Fix storage allocation of gl_locale_name_thread's result.
1654         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
1655         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
1656         all platforms that have 'uselocale'.
1657         (gl_locale_name_thread_unsafe): New function, extracted from
1658         gl_locale_name_thread.
1659         (gl_locale_name_thread): Call struniq on all platforms that have
1660         'uselocale'.
1661         * tests/test-localename.c (test_locale_name_thread): Check that the
1662         resulting strings are permanently allocated.
1663         * modules/localename-tests (Depends-on): Add strdup.
1664
1665 2009-12-26  Bruno Haible  <bruno@clisp.org>
1666
1667         * tests/test-localename.c (categories): Fill in the strings.
1668
1669 2009-12-26  Jim Meyering  <meyering@redhat.com>
1670
1671         isdir: complete the removal of m4/isdir.m4
1672         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
1673
1674         isdir: clean up, since at least grep still uses it
1675         * lib/isdir.c: Include "isdir.h".
1676         (S_ISDIR): Remove now-unneeded definition.
1677         * modules/isdir (Files): Add lib/isdir.h.
1678         * lib/isdir.h: New file, with declaration.
1679         * m4/isdir.m4: Remove file -- unneeded.
1680
1681 2009-12-25  Bruno Haible  <bruno@clisp.org>
1682
1683         selinux-h: Make generated .h files standalone.
1684         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
1685         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
1686         * lib/se-selinux.in.h: Likewise.
1687         * modules/selinux-h (Depends-on): Add unused-parameter.
1688         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
1689         selinux/selinux.h and selinux/context.h.
1690         Suggested by Eric Blake.
1691
1692 2009-12-25  Bruno Haible  <bruno@clisp.org>
1693
1694         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
1695         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
1696         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
1697         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
1698         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
1699
1700 2009-12-24  Bruno Haible  <bruno@clisp.org>
1701
1702         openat: Fix warning.
1703         * lib/openat-proc.c: Include <unistd.h>.
1704
1705 2009-12-24  Bruno Haible  <bruno@clisp.org>
1706
1707         New module 'unused-parameter'.
1708         * build-aux/unused-parameter.h: New file, extracted from earlier
1709         gnulib-common.m4.
1710         * modules/unused-parameter: New file.
1711         * lib/unistr.h: Include unused-parameter.h.
1712         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
1713         _GL_UNUSED.
1714         * modules/unistr/base (Depends-on): Add unused-parameter.
1715
1716 2009-12-24  Bruno Haible  <bruno@clisp.org>
1717
1718         Add missing dependencies to 'extensions' module.
1719         * m4/extensions.m4: Add comment.
1720         * modules/accept4 (Depends-on): Add extensions.
1721         * modules/dup3 (Depends-on): Likewise.
1722         * modules/fcntl (Depends-on): Likewise.
1723         * modules/futimens (Depends-on): Likewise.
1724         * modules/mknod (Depends-on): Likewise.
1725         * modules/pipe2 (Depends-on): Likewise.
1726         * modules/stat-time (Depends-on): Likewise.
1727         * modules/strcasestr-simple (Depends-on): Likewise.
1728         * modules/strsignal (Depends-on): Likewise.
1729         * modules/utimensat (Depends-on): Likewise.
1730         * modules/localcharset (Depends-on): Likewise. Needed because of
1731         gl_FCNTL_O_FLAGS.
1732         * modules/wcrtomb (Depends-on): Likewise. Needed because of
1733         AC_TYPE_MBSTATE_T.
1734         * modules/wcsnrtombs (Depends-on): Likewise.
1735         * modules/wcsrtombs (Depends-on): Likewise.
1736
1737 2009-12-24  Bruno Haible  <bruno@clisp.org>
1738
1739         binary-io: Avoid gcc warning due to SET_BINARY.
1740         * lib/binary-io.h (SET_BINARY): Cast the result to void.
1741         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
1742
1743 2009-12-24  Bruno Haible  <bruno@clisp.org>
1744
1745         Avoid future namespace pollution on glibc systems.
1746         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
1747         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
1748         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
1749         glibc systems.
1750
1751 2009-12-24  Bruno Haible  <bruno@clisp.org>
1752
1753         Refactor common macros used in tests.
1754         * tests/macros.h: New file.
1755         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
1756         and/or <stdlib.h>, if appropriate.
1757         (ASSERT, SIZEOF): Remove macros.
1758         * tests/test-areadlink-with-size.c: Likewise.
1759         * tests/test-areadlinkat.c: Likewise.
1760         * tests/test-areadlinkat-with-size.c: Likewise.
1761         * tests/test-argmatch.c: Likewise.
1762         * tests/test-argv-iter.c: Likewise.
1763         * tests/test-array-mergesort.c: Likewise.
1764         * tests/test-array_list.c: Likewise.
1765         * tests/test-array_oset.c: Likewise.
1766         * tests/test-avltree_list.c: Likewise.
1767         * tests/test-avltree_oset.c: Likewise.
1768         * tests/test-avltreehash_list.c: Likewise.
1769         * tests/test-base64.c: Likewise.
1770         * tests/test-binary-io.c: Likewise.
1771         * tests/test-bitrotate.c: Likewise.
1772         * tests/test-btowc.c: Likewise.
1773         * tests/test-byteswap.c: Likewise.
1774         * tests/test-c-ctype.c: Likewise.
1775         * tests/test-c-stack.c: Likewise.
1776         * tests/test-c-strcasecmp.c: Likewise.
1777         * tests/test-c-strcasestr.c: Likewise.
1778         * tests/test-c-strncasecmp.c: Likewise.
1779         * tests/test-c-strstr.c: Likewise.
1780         * tests/test-canonicalize-lgpl.c: Likewise.
1781         * tests/test-canonicalize.c: Likewise.
1782         * tests/test-carray_list.c: Likewise.
1783         * tests/test-ceilf1.c: Likewise.
1784         * tests/test-ceilf2.c: Likewise.
1785         * tests/test-ceill.c: Likewise.
1786         * tests/test-chown.c: Likewise.
1787         * tests/test-cloexec.c: Likewise.
1788         * tests/test-copy-acl.c: Likewise.
1789         * tests/test-copy-file.c: Likewise.
1790         * tests/test-count-one-bits.c: Likewise.
1791         * tests/test-dprintf-posix.c: Likewise.
1792         * tests/test-dup2.c: Likewise.
1793         * tests/test-dup3.c: Likewise.
1794         * tests/test-duplocale.c: Likewise.
1795         * tests/test-fbufmode.c: Likewise.
1796         * tests/test-fchdir.c: Likewise.
1797         * tests/test-fchownat.c: Likewise.
1798         * tests/test-fcntl-safer.c: Likewise.
1799         * tests/test-fcntl.c: Likewise.
1800         * tests/test-fdopendir.c: Likewise.
1801         * tests/test-fdutimensat.c: Likewise.
1802         * tests/test-fflush2.c: Likewise.
1803         * tests/test-file-has-acl.c: Likewise.
1804         * tests/test-filevercmp.c: Likewise.
1805         * tests/test-flock.c: Likewise.
1806         * tests/test-floorf1.c: Likewise.
1807         * tests/test-floorf2.c: Likewise.
1808         * tests/test-floorl.c: Likewise.
1809         * tests/test-fnmatch.c: Likewise.
1810         * tests/test-fopen.h: Likewise.
1811         * tests/test-fpending.c: Likewise.
1812         * tests/test-fprintf-posix.c: Likewise.
1813         * tests/test-fpurge.c: Likewise.
1814         * tests/test-freadable.c: Likewise.
1815         * tests/test-freadahead.c: Likewise.
1816         * tests/test-freading.c: Likewise.
1817         * tests/test-freadptr.c: Likewise.
1818         * tests/test-freadptr2.c: Likewise.
1819         * tests/test-freadseek.c: Likewise.
1820         * tests/test-freopen.c: Likewise.
1821         * tests/test-frexp.c: Likewise.
1822         * tests/test-frexpl.c: Likewise.
1823         * tests/test-fseek.c: Likewise.
1824         * tests/test-fseeko.c: Likewise.
1825         * tests/test-fstatat.c: Likewise.
1826         * tests/test-fstrcmp.c: Likewise.
1827         * tests/test-fsync.c: Likewise.
1828         * tests/test-ftell.c: Likewise.
1829         * tests/test-ftello.c: Likewise.
1830         * tests/test-func.c: Likewise.
1831         * tests/test-futimens.c: Likewise.
1832         * tests/test-fwritable.c: Likewise.
1833         * tests/test-fwriting.c: Likewise.
1834         * tests/test-getcwd.c: Likewise.
1835         * tests/test-getdate.c: Likewise.
1836         * tests/test-getdelim.c: Likewise.
1837         * tests/test-getdtablesize.c: Likewise.
1838         * tests/test-getgroups.c: Likewise.
1839         * tests/test-getline.c: Likewise.
1840         * tests/test-getndelim2.c: Likewise.
1841         * tests/test-glob.c: Likewise.
1842         * tests/test-hash.c: Likewise.
1843         * tests/test-i-ring.c: Likewise.
1844         * tests/test-iconv-utf.c: Likewise.
1845         * tests/test-iconv.c: Likewise.
1846         * tests/test-idpriv-drop.c: Likewise.
1847         * tests/test-idpriv-droptemp.c: Likewise.
1848         * tests/test-inet_ntop.c: Likewise.
1849         * tests/test-inet_pton.c: Likewise.
1850         * tests/test-isblank.c: Likewise.
1851         * tests/test-isfinite.c: Likewise.
1852         * tests/test-isinf.c: Likewise.
1853         * tests/test-isnan.c: Likewise.
1854         * tests/test-isnand.h: Likewise.
1855         * tests/test-isnanf.h: Likewise.
1856         * tests/test-isnanl.h: Likewise.
1857         * tests/test-lchown.c: Likewise.
1858         * tests/test-ldexpl.c: Likewise.
1859         * tests/test-link.c: Likewise.
1860         * tests/test-linkat.c: Likewise.
1861         * tests/test-linked_list.c: Likewise.
1862         * tests/test-linkedhash_list.c: Likewise.
1863         * tests/test-localename.c: Likewise.
1864         * tests/test-lseek.c: Likewise.
1865         * tests/test-lstat.c: Likewise.
1866         * tests/test-mbmemcasecmp.c: Likewise.
1867         * tests/test-mbmemcasecoll.c: Likewise.
1868         * tests/test-mbrtowc.c: Likewise.
1869         * tests/test-mbscasecmp.c: Likewise.
1870         * tests/test-mbscasestr1.c: Likewise.
1871         * tests/test-mbscasestr2.c: Likewise.
1872         * tests/test-mbscasestr3.c: Likewise.
1873         * tests/test-mbscasestr4.c: Likewise.
1874         * tests/test-mbschr.c: Likewise.
1875         * tests/test-mbscspn.c: Likewise.
1876         * tests/test-mbsinit.c: Likewise.
1877         * tests/test-mbsncasecmp.c: Likewise.
1878         * tests/test-mbsnrtowcs.c: Likewise.
1879         * tests/test-mbspbrk.c: Likewise.
1880         * tests/test-mbspcasecmp.c: Likewise.
1881         * tests/test-mbsrchr.c: Likewise.
1882         * tests/test-mbsrtowcs.c: Likewise.
1883         * tests/test-mbsspn.c: Likewise.
1884         * tests/test-mbsstr1.c: Likewise.
1885         * tests/test-mbsstr2.c: Likewise.
1886         * tests/test-mbsstr3.c: Likewise.
1887         * tests/test-memchr.c: Likewise.
1888         * tests/test-memchr2.c: Likewise.
1889         * tests/test-memcmp.c: Likewise.
1890         * tests/test-memmem.c: Likewise.
1891         * tests/test-memrchr.c: Likewise.
1892         * tests/test-mkdir.c: Likewise.
1893         * tests/test-mkdirat.c: Likewise.
1894         * tests/test-mkfifo.c: Likewise.
1895         * tests/test-mkfifoat.c: Likewise.
1896         * tests/test-mknod.c: Likewise.
1897         * tests/test-nanosleep.c: Likewise.
1898         * tests/test-nl_langinfo.c: Likewise.
1899         * tests/test-obstack-printf.c: Likewise.
1900         * tests/test-open.c: Likewise.
1901         * tests/test-openat.c: Likewise.
1902         * tests/test-pipe-filter-gi1.c: Likewise.
1903         * tests/test-pipe-filter-gi2-main.c: Likewise.
1904         * tests/test-pipe-filter-ii1.c: Likewise.
1905         * tests/test-pipe-filter-ii2-main.c: Likewise.
1906         * tests/test-pipe2.c: Likewise.
1907         * tests/test-popen.h: Likewise.
1908         * tests/test-posixtm.c: Likewise.
1909         * tests/test-pread.c: Likewise.
1910         * tests/test-printf-frexp.c: Likewise.
1911         * tests/test-printf-frexpl.c: Likewise.
1912         * tests/test-printf-posix.c: Likewise.
1913         * tests/test-priv-set.c: Likewise.
1914         * tests/test-quotearg.c: Likewise.
1915         * tests/test-random_r.c: Likewise.
1916         * tests/test-rawmemchr.c: Likewise.
1917         * tests/test-rbtree_list.c: Likewise.
1918         * tests/test-rbtree_oset.c: Likewise.
1919         * tests/test-rbtreehash_list.c: Likewise.
1920         * tests/test-readlink.c: Likewise.
1921         * tests/test-remove.c: Likewise.
1922         * tests/test-rename.c: Likewise.
1923         * tests/test-renameat.c: Likewise.
1924         * tests/test-rmdir.c: Likewise.
1925         * tests/test-round1.c: Likewise.
1926         * tests/test-roundf1.c: Likewise.
1927         * tests/test-roundl.c: Likewise.
1928         * tests/test-safe-alloc.c: Likewise.
1929         * tests/test-sameacls.c: Likewise.
1930         * tests/test-set-mode-acl.c: Likewise.
1931         * tests/test-setenv.c: Likewise.
1932         * tests/test-sigaction.c: Likewise.
1933         * tests/test-signbit.c: Likewise.
1934         * tests/test-sleep.c: Likewise.
1935         * tests/test-snprintf-posix.c: Likewise.
1936         * tests/test-snprintf.c: Likewise.
1937         * tests/test-sprintf-posix.c: Likewise.
1938         * tests/test-stat-time.c: Likewise.
1939         * tests/test-stat.c: Likewise.
1940         * tests/test-strcasestr.c: Likewise.
1941         * tests/test-strchrnul.c: Likewise.
1942         * tests/test-strerror.c: Likewise.
1943         * tests/test-striconv.c: Likewise.
1944         * tests/test-striconveh.c: Likewise.
1945         * tests/test-striconveha.c: Likewise.
1946         * tests/test-strsignal.c: Likewise.
1947         * tests/test-strstr.c: Likewise.
1948         * tests/test-strtod.c: Likewise.
1949         * tests/test-strverscmp.c: Likewise.
1950         * tests/test-symlink.c: Likewise.
1951         * tests/test-symlinkat.c: Likewise.
1952         * tests/test-trunc1.c: Likewise.
1953         * tests/test-trunc2.c: Likewise.
1954         * tests/test-truncf1.c: Likewise.
1955         * tests/test-truncf2.c: Likewise.
1956         * tests/test-truncl.c: Likewise.
1957         * tests/test-uname.c: Likewise.
1958         * tests/test-unlink.c: Likewise.
1959         * tests/test-unlinkat.c: Likewise.
1960         * tests/test-unsetenv.c: Likewise.
1961         * tests/test-usleep.c: Likewise.
1962         * tests/test-utimens.c: Likewise.
1963         * tests/test-utimensat.c: Likewise.
1964         * tests/test-vasnprintf-posix.c: Likewise.
1965         * tests/test-vasnprintf-posix2.c: Likewise.
1966         * tests/test-vasnprintf.c: Likewise.
1967         * tests/test-vasprintf-posix.c: Likewise.
1968         * tests/test-vasprintf.c: Likewise.
1969         * tests/test-vdprintf-posix.c: Likewise.
1970         * tests/test-vfprintf-posix.c: Likewise.
1971         * tests/test-vprintf-posix.c: Likewise.
1972         * tests/test-vsnprintf-posix.c: Likewise.
1973         * tests/test-vsnprintf.c: Likewise.
1974         * tests/test-vsprintf-posix.c: Likewise.
1975         * tests/test-wcrtomb.c: Likewise.
1976         * tests/test-wcsnrtombs.c: Likewise.
1977         * tests/test-wcsrtombs.c: Likewise.
1978         * tests/test-wctype.c: Likewise.
1979         * tests/test-wcwidth.c: Likewise.
1980         * tests/test-xfprintf-posix.c: Likewise.
1981         * tests/test-xmemdup0.c: Likewise.
1982         * tests/test-xprintf-posix.c: Likewise.
1983         * tests/test-xvasprintf.c: Likewise.
1984         * tests/unicase/test-locale-language.c: Likewise.
1985         * tests/unicase/test-mapping-part1.h: Likewise.
1986         * tests/unicase/test-predicate-part1.h: Likewise.
1987         * tests/unicase/test-u8-casecmp.c: Likewise.
1988         * tests/unicase/test-u8-casecoll.c: Likewise.
1989         * tests/unicase/test-u8-casefold.c: Likewise.
1990         * tests/unicase/test-u8-is-cased.c: Likewise.
1991         * tests/unicase/test-u8-is-casefolded.c: Likewise.
1992         * tests/unicase/test-u8-is-lowercase.c: Likewise.
1993         * tests/unicase/test-u8-is-titlecase.c: Likewise.
1994         * tests/unicase/test-u8-is-uppercase.c: Likewise.
1995         * tests/unicase/test-u8-tolower.c: Likewise.
1996         * tests/unicase/test-u8-totitle.c: Likewise.
1997         * tests/unicase/test-u8-toupper.c: Likewise.
1998         * tests/unicase/test-u16-casecmp.c: Likewise.
1999         * tests/unicase/test-u16-casecoll.c: Likewise.
2000         * tests/unicase/test-u16-casefold.c: Likewise.
2001         * tests/unicase/test-u16-is-cased.c: Likewise.
2002         * tests/unicase/test-u16-is-casefolded.c: Likewise.
2003         * tests/unicase/test-u16-is-lowercase.c: Likewise.
2004         * tests/unicase/test-u16-is-titlecase.c: Likewise.
2005         * tests/unicase/test-u16-is-uppercase.c: Likewise.
2006         * tests/unicase/test-u16-tolower.c: Likewise.
2007         * tests/unicase/test-u16-totitle.c: Likewise.
2008         * tests/unicase/test-u16-toupper.c: Likewise.
2009         * tests/unicase/test-u32-casecmp.c: Likewise.
2010         * tests/unicase/test-u32-casecoll.c: Likewise.
2011         * tests/unicase/test-u32-casefold.c: Likewise.
2012         * tests/unicase/test-u32-is-cased.c: Likewise.
2013         * tests/unicase/test-u32-is-casefolded.c: Likewise.
2014         * tests/unicase/test-u32-is-lowercase.c: Likewise.
2015         * tests/unicase/test-u32-is-titlecase.c: Likewise.
2016         * tests/unicase/test-u32-is-uppercase.c: Likewise.
2017         * tests/unicase/test-u32-tolower.c: Likewise.
2018         * tests/unicase/test-u32-totitle.c: Likewise.
2019         * tests/unicase/test-u32-toupper.c: Likewise.
2020         * tests/unicase/test-ulc-casecmp.c: Likewise.
2021         * tests/unicase/test-ulc-casecoll.c: Likewise.
2022         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
2023         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
2024         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
2025         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
2026         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
2027         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
2028         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
2029         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
2030         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
2031         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
2032         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
2033         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
2034         * tests/unictype/test-bidi_byname.c: Likewise.
2035         * tests/unictype/test-bidi_name.c: Likewise.
2036         * tests/unictype/test-bidi_of.c: Likewise.
2037         * tests/unictype/test-bidi_test.c: Likewise.
2038         * tests/unictype/test-block_list.c: Likewise.
2039         * tests/unictype/test-block_of.c: Likewise.
2040         * tests/unictype/test-block_test.c: Likewise.
2041         * tests/unictype/test-categ_and.c: Likewise.
2042         * tests/unictype/test-categ_and_not.c: Likewise.
2043         * tests/unictype/test-categ_byname.c: Likewise.
2044         * tests/unictype/test-categ_name.c: Likewise.
2045         * tests/unictype/test-categ_none.c: Likewise.
2046         * tests/unictype/test-categ_of.c: Likewise.
2047         * tests/unictype/test-categ_or.c: Likewise.
2048         * tests/unictype/test-categ_test_withtable.c: Likewise.
2049         * tests/unictype/test-combining.c: Likewise.
2050         * tests/unictype/test-decdigit.c: Likewise.
2051         * tests/unictype/test-digit.c: Likewise.
2052         * tests/unictype/test-mirror.c: Likewise.
2053         * tests/unictype/test-numeric.c: Likewise.
2054         * tests/unictype/test-pr_byname.c: Likewise.
2055         * tests/unictype/test-pr_test.c: Likewise.
2056         * tests/unictype/test-predicate-part1.h: Likewise.
2057         * tests/unictype/test-scripts.c: Likewise.
2058         * tests/unictype/test-sy_c_ident.c: Likewise.
2059         * tests/unictype/test-sy_java_ident.c: Likewise.
2060         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
2061         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
2062         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
2063         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
2064         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
2065         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
2066         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
2067         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
2068         * tests/uninorm/test-canonical-decomposition.c: Likewise.
2069         * tests/uninorm/test-compat-decomposition.c: Likewise.
2070         * tests/uninorm/test-composition.c: Likewise.
2071         * tests/uninorm/test-decomposing-form.c: Likewise.
2072         * tests/uninorm/test-decomposition.c: Likewise.
2073         * tests/uninorm/test-u8-nfc.c: Likewise.
2074         * tests/uninorm/test-u8-nfd.c: Likewise.
2075         * tests/uninorm/test-u8-nfkc.c: Likewise.
2076         * tests/uninorm/test-u8-nfkd.c: Likewise.
2077         * tests/uninorm/test-u8-normcmp.c: Likewise.
2078         * tests/uninorm/test-u8-normcoll.c: Likewise.
2079         * tests/uninorm/test-u16-nfc.c: Likewise.
2080         * tests/uninorm/test-u16-nfd.c: Likewise.
2081         * tests/uninorm/test-u16-nfkc.c: Likewise.
2082         * tests/uninorm/test-u16-nfkd.c: Likewise.
2083         * tests/uninorm/test-u16-normcmp.c: Likewise.
2084         * tests/uninorm/test-u16-normcoll.c: Likewise.
2085         * tests/uninorm/test-u32-nfc.c: Likewise.
2086         * tests/uninorm/test-u32-nfd.c: Likewise.
2087         * tests/uninorm/test-u32-nfkc.c: Likewise.
2088         * tests/uninorm/test-u32-nfkd.c: Likewise.
2089         * tests/uninorm/test-u32-normalize-big.c: Likewise.
2090         * tests/uninorm/test-u32-normcmp.c: Likewise.
2091         * tests/uninorm/test-u32-normcoll.c: Likewise.
2092         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
2093         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
2094         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
2095         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
2096         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
2097         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
2098         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
2099         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
2100         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
2101         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
2102         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
2103         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
2104         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
2105         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
2106         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
2107         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
2108         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
2109         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
2110         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
2111         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
2112         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
2113         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
2114         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
2115         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
2116         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
2117         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
2118         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
2119         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
2120         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
2121         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
2122         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
2123         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
2124         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
2125         * tests/uniwidth/test-u8-strwidth.c: Likewise.
2126         * tests/uniwidth/test-u8-width.c: Likewise.
2127         * tests/uniwidth/test-u16-strwidth.c: Likewise.
2128         * tests/uniwidth/test-u16-width.c: Likewise.
2129         * tests/uniwidth/test-u32-strwidth.c: Likewise.
2130         * tests/uniwidth/test-u32-width.c: Likewise.
2131         * tests/uniwidth/test-uc_width.c: Likewise.
2132         * tests/uniwidth/test-uc_width2.c: Likewise.
2133         * modules/acl-tests (Files): Add tests/macros.h.
2134         * modules/areadlink-tests (Files): Likewise.
2135         * modules/areadlink-with-size-tests (Files): Likewise.
2136         * modules/areadlinkat-tests (Files): Likewise.
2137         * modules/areadlinkat-with-size-tests (Files): Likewise.
2138         * modules/argmatch-tests (Files): Likewise.
2139         * modules/argv-iter-tests (Files): Likewise.
2140         * modules/array-list-tests (Files): Likewise.
2141         * modules/array-mergesort-tests (Files): Likewise.
2142         * modules/array-oset-tests (Files): Likewise.
2143         * modules/avltree-list-tests (Files): Likewise.
2144         * modules/avltree-oset-tests (Files): Likewise.
2145         * modules/avltreehash-list-tests (Files): Likewise.
2146         * modules/base64-tests (Files): Likewise.
2147         * modules/binary-io-tests (Files): Likewise.
2148         * modules/bitrotate-tests (Files): Likewise.
2149         * modules/btowc-tests (Files): Likewise.
2150         * modules/byteswap-tests (Files): Likewise.
2151         * modules/c-ctype-tests (Files): Likewise.
2152         * modules/c-stack-tests (Files): Likewise.
2153         * modules/c-strcase-tests (Files): Likewise.
2154         * modules/c-strcasestr-tests (Files): Likewise.
2155         * modules/c-strstr-tests (Files): Likewise.
2156         * modules/canonicalize-lgpl-tests (Files): Likewise.
2157         * modules/canonicalize-tests (Files): Likewise.
2158         * modules/carray-list-tests (Files): Likewise.
2159         * modules/ceilf-tests (Files): Likewise.
2160         * modules/ceill-tests (Files): Likewise.
2161         * modules/chown-tests (Files): Likewise.
2162         * modules/cloexec-tests (Files): Likewise.
2163         * modules/copy-file-tests (Files): Likewise.
2164         * modules/count-one-bits-tests (Files): Likewise.
2165         * modules/dprintf-posix-tests (Files): Likewise.
2166         * modules/dup2-tests (Files): Likewise.
2167         * modules/dup3-tests (Files): Likewise.
2168         * modules/duplocale-tests (Files): Likewise.
2169         * modules/fbufmode-tests (Files): Likewise.
2170         * modules/fchdir-tests (Files): Likewise.
2171         * modules/fcntl-safer-tests (Files): Likewise.
2172         * modules/fcntl-tests (Files): Likewise.
2173         * modules/fdopendir-tests (Files): Likewise.
2174         * modules/fdutimensat-tests (Files): Likewise.
2175         * modules/fflush-tests (Files): Likewise.
2176         * modules/filevercmp-tests (Files): Likewise.
2177         * modules/flock-tests (Files): Likewise.
2178         * modules/floorf-tests (Files): Likewise.
2179         * modules/floorl-tests (Files): Likewise.
2180         * modules/fnmatch-tests (Files): Likewise.
2181         * modules/fopen-safer-tests (Files): Likewise.
2182         * modules/fopen-tests (Files): Likewise.
2183         * modules/fpending-tests (Files): Likewise.
2184         * modules/fprintf-posix-tests (Files): Likewise.
2185         * modules/fpurge-tests (Files): Likewise.
2186         * modules/freadable-tests (Files): Likewise.
2187         * modules/freadahead-tests (Files): Likewise.
2188         * modules/freading-tests (Files): Likewise.
2189         * modules/freadptr-tests (Files): Likewise.
2190         * modules/freadseek-tests (Files): Likewise.
2191         * modules/freopen-tests (Files): Likewise.
2192         * modules/frexp-nolibm-tests (Files): Likewise.
2193         * modules/frexp-tests (Files): Likewise.
2194         * modules/frexpl-nolibm-tests (Files): Likewise.
2195         * modules/frexpl-tests (Files): Likewise.
2196         * modules/fseek-tests (Files): Likewise.
2197         * modules/fseeko-tests (Files): Likewise.
2198         * modules/fstrcmp-tests (Files): Likewise.
2199         * modules/fsync-tests (Files): Likewise.
2200         * modules/ftell-tests (Files): Likewise.
2201         * modules/ftello-tests (Files): Likewise.
2202         * modules/func-tests (Files): Likewise.
2203         * modules/futimens-tests (Files): Likewise.
2204         * modules/fwritable-tests (Files): Likewise.
2205         * modules/fwriting-tests (Files): Likewise.
2206         * modules/getcwd-tests (Files): Likewise.
2207         * modules/getdate-tests (Files): Likewise.
2208         * modules/getdelim-tests (Files): Likewise.
2209         * modules/getdtablesize-tests (Files): Likewise.
2210         * modules/getgroups-tests (Files): Likewise.
2211         * modules/getline-tests (Files): Likewise.
2212         * modules/getndelim2-tests (Files): Likewise.
2213         * modules/glob-tests (Files): Likewise.
2214         * modules/hash-tests (Files): Likewise.
2215         * modules/i-ring-tests (Files): Likewise.
2216         * modules/iconv-tests (Files): Likewise.
2217         * modules/iconv_open-utf-tests (Files): Likewise.
2218         * modules/idpriv-drop-tests (Files): Likewise.
2219         * modules/idpriv-droptemp-tests (Files): Likewise.
2220         * modules/inet_ntop-tests (Files): Likewise.
2221         * modules/inet_pton-tests (Files): Likewise.
2222         * modules/isblank-tests (Files): Likewise.
2223         * modules/isfinite-tests (Files): Likewise.
2224         * modules/isinf-tests (Files): Likewise.
2225         * modules/isnan-tests (Files): Likewise.
2226         * modules/isnand-nolibm-tests (Files): Likewise.
2227         * modules/isnand-tests (Files): Likewise.
2228         * modules/isnanf-nolibm-tests (Files): Likewise.
2229         * modules/isnanf-tests (Files): Likewise.
2230         * modules/isnanl-nolibm-tests (Files): Likewise.
2231         * modules/isnanl-tests (Files): Likewise.
2232         * modules/lchown-tests (Files): Likewise.
2233         * modules/ldexpl-tests (Files): Likewise.
2234         * modules/link-tests (Files): Likewise.
2235         * modules/linkat-tests (Files): Likewise.
2236         * modules/linked-list-tests (Files): Likewise.
2237         * modules/linkedhash-list-tests (Files): Likewise.
2238         * modules/localename-tests (Files): Likewise.
2239         * modules/lseek-tests (Files): Likewise.
2240         * modules/lstat-tests (Files): Likewise.
2241         * modules/mbmemcasecmp-tests (Files): Likewise.
2242         * modules/mbmemcasecoll-tests (Files): Likewise.
2243         * modules/mbrtowc-tests (Files): Likewise.
2244         * modules/mbscasecmp-tests (Files): Likewise.
2245         * modules/mbscasestr-tests (Files): Likewise.
2246         * modules/mbschr-tests (Files): Likewise.
2247         * modules/mbscspn-tests (Files): Likewise.
2248         * modules/mbsinit-tests (Files): Likewise.
2249         * modules/mbsncasecmp-tests (Files): Likewise.
2250         * modules/mbsnrtowcs-tests (Files): Likewise.
2251         * modules/mbspbrk-tests (Files): Likewise.
2252         * modules/mbspcasecmp-tests (Files): Likewise.
2253         * modules/mbsrchr-tests (Files): Likewise.
2254         * modules/mbsrtowcs-tests (Files): Likewise.
2255         * modules/mbsspn-tests (Files): Likewise.
2256         * modules/mbsstr-tests (Files): Likewise.
2257         * modules/memchr-tests (Files): Likewise.
2258         * modules/memchr2-tests (Files): Likewise.
2259         * modules/memcmp-tests (Files): Likewise.
2260         * modules/memmem-tests (Files): Likewise.
2261         * modules/memrchr-tests (Files): Likewise.
2262         * modules/mkdir-tests (Files): Likewise.
2263         * modules/mkfifo-tests (Files): Likewise.
2264         * modules/mkfifoat-tests (Files): Likewise.
2265         * modules/mknod-tests (Files): Likewise.
2266         * modules/nanosleep-tests (Files): Likewise.
2267         * modules/nl_langinfo-tests (Files): Likewise.
2268         * modules/obstack-printf-tests (Files): Likewise.
2269         * modules/open-tests (Files): Likewise.
2270         * modules/openat-tests (Files): Likewise.
2271         * modules/pipe-filter-gi-tests (Files): Likewise.
2272         * modules/pipe-filter-ii-tests (Files): Likewise.
2273         * modules/pipe2-tests (Files): Likewise.
2274         * modules/popen-safer-tests (Files): Likewise.
2275         * modules/popen-tests (Files): Likewise.
2276         * modules/posixtm-tests (Files): Likewise.
2277         * modules/pread-tests (Files): Likewise.
2278         * modules/printf-frexp-tests (Files): Likewise.
2279         * modules/printf-frexpl-tests (Files): Likewise.
2280         * modules/printf-posix-tests (Files): Likewise.
2281         * modules/priv-set-tests (Files): Likewise.
2282         * modules/quotearg-tests (Files): Likewise.
2283         * modules/random_r-tests (Files): Likewise.
2284         * modules/rawmemchr-tests (Files): Likewise.
2285         * modules/rbtree-list-tests (Files): Likewise.
2286         * modules/rbtree-oset-tests (Files): Likewise.
2287         * modules/rbtreehash-list-tests (Files): Likewise.
2288         * modules/readlink-tests (Files): Likewise.
2289         * modules/remove-tests (Files): Likewise.
2290         * modules/rename-tests (Files): Likewise.
2291         * modules/renameat-tests (Files): Likewise.
2292         * modules/rmdir-tests (Files): Likewise.
2293         * modules/round-tests (Files): Likewise.
2294         * modules/roundf-tests (Files): Likewise.
2295         * modules/roundl-tests (Files): Likewise.
2296         * modules/safe-alloc-tests (Files): Likewise.
2297         * modules/setenv-tests (Files): Likewise.
2298         * modules/sigaction-tests (Files): Likewise.
2299         * modules/signbit-tests (Files): Likewise.
2300         * modules/sleep-tests (Files): Likewise.
2301         * modules/snprintf-posix-tests (Files): Likewise.
2302         * modules/snprintf-tests (Files): Likewise.
2303         * modules/sprintf-posix-tests (Files): Likewise.
2304         * modules/stat-tests (Files): Likewise.
2305         * modules/stat-time-tests (Files): Likewise.
2306         * modules/strcasestr-tests (Files): Likewise.
2307         * modules/strchrnul-tests (Files): Likewise.
2308         * modules/strerror-tests (Files): Likewise.
2309         * modules/striconv-tests (Files): Likewise.
2310         * modules/striconveh-tests (Files): Likewise.
2311         * modules/striconveha-tests (Files): Likewise.
2312         * modules/strsignal-tests (Files): Likewise.
2313         * modules/strstr-tests (Files): Likewise.
2314         * modules/strtod-tests (Files): Likewise.
2315         * modules/strverscmp-tests (Files): Likewise.
2316         * modules/symlink-tests (Files): Likewise.
2317         * modules/symlinkat-tests (Files): Likewise.
2318         * modules/trunc-tests (Files): Likewise.
2319         * modules/truncf-tests (Files): Likewise.
2320         * modules/truncl-tests (Files): Likewise.
2321         * modules/uname-tests (Files): Likewise.
2322         * modules/unicase/cased-tests (Files): Likewise.
2323         * modules/unicase/ignorable-tests (Files): Likewise.
2324         * modules/unicase/locale-language-tests (Files): Likewise.
2325         * modules/unicase/tolower-tests (Files): Likewise.
2326         * modules/unicase/totitle-tests (Files): Likewise.
2327         * modules/unicase/toupper-tests (Files): Likewise.
2328         * modules/unicase/u8-casecmp-tests (Files): Likewise.
2329         * modules/unicase/u8-casecoll-tests (Files): Likewise.
2330         * modules/unicase/u8-casefold-tests (Files): Likewise.
2331         * modules/unicase/u8-is-cased-tests (Files): Likewise.
2332         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
2333         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
2334         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
2335         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
2336         * modules/unicase/u8-tolower-tests (Files): Likewise.
2337         * modules/unicase/u8-totitle-tests (Files): Likewise.
2338         * modules/unicase/u8-toupper-tests (Files): Likewise.
2339         * modules/unicase/u16-casecmp-tests (Files): Likewise.
2340         * modules/unicase/u16-casecoll-tests (Files): Likewise.
2341         * modules/unicase/u16-casefold-tests (Files): Likewise.
2342         * modules/unicase/u16-is-cased-tests (Files): Likewise.
2343         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
2344         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
2345         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
2346         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
2347         * modules/unicase/u16-tolower-tests (Files): Likewise.
2348         * modules/unicase/u16-totitle-tests (Files): Likewise.
2349         * modules/unicase/u16-toupper-tests (Files): Likewise.
2350         * modules/unicase/u32-casecmp-tests (Files): Likewise.
2351         * modules/unicase/u32-casecoll-tests (Files): Likewise.
2352         * modules/unicase/u32-casefold-tests (Files): Likewise.
2353         * modules/unicase/u32-is-cased-tests (Files): Likewise.
2354         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
2355         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
2356         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
2357         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
2358         * modules/unicase/u32-tolower-tests (Files): Likewise.
2359         * modules/unicase/u32-totitle-tests (Files): Likewise.
2360         * modules/unicase/u32-toupper-tests (Files): Likewise.
2361         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
2362         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
2363         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
2364         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
2365         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
2366         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
2367         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
2368         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
2369         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
2370         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
2371         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
2372         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
2373         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
2374         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
2375         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
2376         * modules/unictype/bidicategory-name-tests (Files): Likewise.
2377         * modules/unictype/bidicategory-of-tests (Files): Likewise.
2378         * modules/unictype/bidicategory-test-tests (Files): Likewise.
2379         * modules/unictype/block-list-tests (Files): Likewise.
2380         * modules/unictype/block-of-tests (Files): Likewise.
2381         * modules/unictype/block-test-tests (Files): Likewise.
2382         * modules/unictype/category-C-tests (Files): Likewise.
2383         * modules/unictype/category-Cc-tests (Files): Likewise.
2384         * modules/unictype/category-Cf-tests (Files): Likewise.
2385         * modules/unictype/category-Cn-tests (Files): Likewise.
2386         * modules/unictype/category-Co-tests (Files): Likewise.
2387         * modules/unictype/category-Cs-tests (Files): Likewise.
2388         * modules/unictype/category-L-tests (Files): Likewise.
2389         * modules/unictype/category-Ll-tests (Files): Likewise.
2390         * modules/unictype/category-Lm-tests (Files): Likewise.
2391         * modules/unictype/category-Lo-tests (Files): Likewise.
2392         * modules/unictype/category-Lt-tests (Files): Likewise.
2393         * modules/unictype/category-Lu-tests (Files): Likewise.
2394         * modules/unictype/category-M-tests (Files): Likewise.
2395         * modules/unictype/category-Mc-tests (Files): Likewise.
2396         * modules/unictype/category-Me-tests (Files): Likewise.
2397         * modules/unictype/category-Mn-tests (Files): Likewise.
2398         * modules/unictype/category-N-tests (Files): Likewise.
2399         * modules/unictype/category-Nd-tests (Files): Likewise.
2400         * modules/unictype/category-Nl-tests (Files): Likewise.
2401         * modules/unictype/category-No-tests (Files): Likewise.
2402         * modules/unictype/category-P-tests (Files): Likewise.
2403         * modules/unictype/category-Pc-tests (Files): Likewise.
2404         * modules/unictype/category-Pd-tests (Files): Likewise.
2405         * modules/unictype/category-Pe-tests (Files): Likewise.
2406         * modules/unictype/category-Pf-tests (Files): Likewise.
2407         * modules/unictype/category-Pi-tests (Files): Likewise.
2408         * modules/unictype/category-Po-tests (Files): Likewise.
2409         * modules/unictype/category-Ps-tests (Files): Likewise.
2410         * modules/unictype/category-S-tests (Files): Likewise.
2411         * modules/unictype/category-Sc-tests (Files): Likewise.
2412         * modules/unictype/category-Sk-tests (Files): Likewise.
2413         * modules/unictype/category-Sm-tests (Files): Likewise.
2414         * modules/unictype/category-So-tests (Files): Likewise.
2415         * modules/unictype/category-Z-tests (Files): Likewise.
2416         * modules/unictype/category-Zl-tests (Files): Likewise.
2417         * modules/unictype/category-Zp-tests (Files): Likewise.
2418         * modules/unictype/category-Zs-tests (Files): Likewise.
2419         * modules/unictype/category-and-not-tests (Files): Likewise.
2420         * modules/unictype/category-and-tests (Files): Likewise.
2421         * modules/unictype/category-byname-tests (Files): Likewise.
2422         * modules/unictype/category-name-tests (Files): Likewise.
2423         * modules/unictype/category-none-tests (Files): Likewise.
2424         * modules/unictype/category-of-tests (Files): Likewise.
2425         * modules/unictype/category-or-tests (Files): Likewise.
2426         * modules/unictype/category-test-withtable-tests (Files): Likewise.
2427         * modules/unictype/combining-class-tests (Files): Likewise.
2428         * modules/unictype/ctype-alnum-tests (Files): Likewise.
2429         * modules/unictype/ctype-alpha-tests (Files): Likewise.
2430         * modules/unictype/ctype-blank-tests (Files): Likewise.
2431         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
2432         * modules/unictype/ctype-digit-tests (Files): Likewise.
2433         * modules/unictype/ctype-graph-tests (Files): Likewise.
2434         * modules/unictype/ctype-lower-tests (Files): Likewise.
2435         * modules/unictype/ctype-print-tests (Files): Likewise.
2436         * modules/unictype/ctype-punct-tests (Files): Likewise.
2437         * modules/unictype/ctype-space-tests (Files): Likewise.
2438         * modules/unictype/ctype-upper-tests (Files): Likewise.
2439         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
2440         * modules/unictype/decimal-digit-tests (Files): Likewise.
2441         * modules/unictype/digit-tests (Files): Likewise.
2442         * modules/unictype/mirror-tests (Files): Likewise.
2443         * modules/unictype/numeric-tests (Files): Likewise.
2444         * modules/unictype/property-alphabetic-tests (Files): Likewise.
2445         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
2446         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
2447         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
2448         Likewise.
2449         * modules/unictype/property-bidi-block-separator-tests (Files):
2450         Likewise.
2451         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
2452         Likewise.
2453         * modules/unictype/property-bidi-common-separator-tests (Files):
2454         Likewise.
2455         * modules/unictype/property-bidi-control-tests (Files): Likewise.
2456         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
2457         Likewise.
2458         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
2459         Likewise.
2460         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
2461         Likewise.
2462         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
2463         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
2464         Likewise.
2465         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
2466         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
2467         Likewise.
2468         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
2469         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
2470         * modules/unictype/property-bidi-segment-separator-tests (Files):
2471         Likewise.
2472         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
2473         * modules/unictype/property-byname-tests (Files): Likewise.
2474         * modules/unictype/property-combining-tests (Files): Likewise.
2475         * modules/unictype/property-composite-tests (Files): Likewise.
2476         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
2477         * modules/unictype/property-dash-tests (Files): Likewise.
2478         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
2479         * modules/unictype/property-default-ignorable-code-point-tests (Files):
2480         Likewise.
2481         * modules/unictype/property-deprecated-tests (Files): Likewise.
2482         * modules/unictype/property-diacritic-tests (Files): Likewise.
2483         * modules/unictype/property-extender-tests (Files): Likewise.
2484         * modules/unictype/property-format-control-tests (Files): Likewise.
2485         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
2486         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
2487         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
2488         * modules/unictype/property-hex-digit-tests (Files): Likewise.
2489         * modules/unictype/property-hyphen-tests (Files): Likewise.
2490         * modules/unictype/property-id-continue-tests (Files): Likewise.
2491         * modules/unictype/property-id-start-tests (Files): Likewise.
2492         * modules/unictype/property-ideographic-tests (Files): Likewise.
2493         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
2494         * modules/unictype/property-ids-trinary-operator-tests (Files):
2495         Likewise.
2496         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
2497         * modules/unictype/property-iso-control-tests (Files): Likewise.
2498         * modules/unictype/property-join-control-tests (Files): Likewise.
2499         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
2500         * modules/unictype/property-line-separator-tests (Files): Likewise.
2501         * modules/unictype/property-logical-order-exception-tests (Files):
2502         Likewise.
2503         * modules/unictype/property-lowercase-tests (Files): Likewise.
2504         * modules/unictype/property-math-tests (Files): Likewise.
2505         * modules/unictype/property-non-break-tests (Files): Likewise.
2506         * modules/unictype/property-not-a-character-tests (Files): Likewise.
2507         * modules/unictype/property-numeric-tests (Files): Likewise.
2508         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
2509         * modules/unictype/property-other-default-ignorable-code-point-tests
2510         (Files): Likewise.
2511         * modules/unictype/property-other-grapheme-extend-tests (Files):
2512         Likewise.
2513         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
2514         * modules/unictype/property-other-id-start-tests (Files): Likewise.
2515         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
2516         * modules/unictype/property-other-math-tests (Files): Likewise.
2517         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
2518         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
2519         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
2520         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
2521         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
2522         * modules/unictype/property-private-use-tests (Files): Likewise.
2523         * modules/unictype/property-punctuation-tests (Files): Likewise.
2524         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
2525         * modules/unictype/property-radical-tests (Files): Likewise.
2526         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
2527         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
2528         * modules/unictype/property-space-tests (Files): Likewise.
2529         * modules/unictype/property-terminal-punctuation-tests (Files):
2530         Likewise.
2531         * modules/unictype/property-test-tests (Files): Likewise.
2532         * modules/unictype/property-titlecase-tests (Files): Likewise.
2533         * modules/unictype/property-unassigned-code-value-tests (Files):
2534         Likewise.
2535         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
2536         * modules/unictype/property-uppercase-tests (Files): Likewise.
2537         * modules/unictype/property-variation-selector-tests (Files): Likewise.
2538         * modules/unictype/property-white-space-tests (Files): Likewise.
2539         * modules/unictype/property-xid-continue-tests (Files): Likewise.
2540         * modules/unictype/property-xid-start-tests (Files): Likewise.
2541         * modules/unictype/property-zero-width-tests (Files): Likewise.
2542         * modules/unictype/scripts-tests (Files): Likewise.
2543         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
2544         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
2545         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
2546         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
2547         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
2548         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
2549         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
2550         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
2551         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
2552         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
2553         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
2554         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
2555         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
2556         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
2557         * modules/uninorm/composition-tests (Files): Likewise.
2558         * modules/uninorm/decomposing-form-tests (Files): Likewise.
2559         * modules/uninorm/decomposition-tests (Files): Likewise.
2560         * modules/uninorm/filter-tests (Files): Likewise.
2561         * modules/uninorm/nfc-tests (Files): Likewise.
2562         * modules/uninorm/nfd-tests (Files): Likewise.
2563         * modules/uninorm/nfkc-tests (Files): Likewise.
2564         * modules/uninorm/nfkd-tests (Files): Likewise.
2565         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
2566         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
2567         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
2568         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
2569         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
2570         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
2571         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
2572         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
2573         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
2574         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
2575         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
2576         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
2577         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
2578         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
2579         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
2580         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
2581         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
2582         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
2583         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
2584         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
2585         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
2586         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
2587         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
2588         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
2589         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
2590         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
2591         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
2592         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
2593         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
2594         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
2595         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
2596         * modules/uniwidth/u8-width-tests (Files): Likewise.
2597         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
2598         * modules/uniwidth/u16-width-tests (Files): Likewise.
2599         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
2600         * modules/uniwidth/u32-width-tests (Files): Likewise.
2601         * modules/uniwidth/width-tests (Files): Likewise.
2602         * modules/unlink-tests (Files): Likewise.
2603         * modules/unsetenv-tests (Files): Likewise.
2604         * modules/usleep-tests (Files): Likewise.
2605         * modules/utimens-tests (Files): Likewise.
2606         * modules/utimensat-tests (Files): Likewise.
2607         * modules/vasnprintf-posix-tests (Files): Likewise.
2608         * modules/vasnprintf-tests (Files): Likewise.
2609         * modules/vasprintf-posix-tests (Files): Likewise.
2610         * modules/vasprintf-tests (Files): Likewise.
2611         * modules/vdprintf-posix-tests (Files): Likewise.
2612         * modules/vfprintf-posix-tests (Files): Likewise.
2613         * modules/vprintf-posix-tests (Files): Likewise.
2614         * modules/vsnprintf-posix-tests (Files): Likewise.
2615         * modules/vsnprintf-tests (Files): Likewise.
2616         * modules/vsprintf-posix-tests (Files): Likewise.
2617         * modules/wcrtomb-tests (Files): Likewise.
2618         * modules/wcsnrtombs-tests (Files): Likewise.
2619         * modules/wcsrtombs-tests (Files): Likewise.
2620         * modules/wctype-tests (Files): Likewise.
2621         * modules/wcwidth-tests (Files): Likewise.
2622         * modules/xmemdup0-tests (Files): Likewise.
2623         * modules/xprintf-posix-tests (Files): Likewise.
2624         * modules/xvasprintf-tests (Files): Likewise.
2625
2626 2009-12-24  Eric Blake  <ebb9@byu.net>
2627
2628         test-nanosleep: fix typo
2629         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
2630         patch.
2631         Reported by Bruno Haible.
2632
2633 2009-12-24  Bruno Haible  <bruno@clisp.org>
2634
2635         Reduce namespace pollution on glibc systems.
2636         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
2637         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
2638         systems.
2639         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
2640         <getopt.h> on glibc systems.
2641         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
2642         systems.
2643         * lib/fcntl.c: Include <unistd.h> here instead.
2644
2645 2009-12-24  Bruno Haible  <bruno@clisp.org>
2646
2647         * lib/stdlib.in.h (includes): Fix typo in today's commit.
2648
2649 2009-12-24  Eric Blake  <ebb9@byu.net>
2650
2651         tests: add signature checks
2652         * tests/signature.h (SIGNATURE_CHECK): New file.
2653         * modules/atexit-tests (Files): Use it.
2654         * modules/btowc-tests (Files): Likewise.
2655         * modules/canonicalize-lgpl-tests (Files): Likewise.
2656         * modules/ceilf-tests (Files): Likewise.
2657         * modules/ceill-tests (Files): Likewise.
2658         * modules/chown-tests (Files): Likewise.
2659         * modules/dprintf-posix-tests (Files): Likewise.
2660         * modules/dup2-tests (Files): Likewise.
2661         * modules/dup3-tests (Files): Likewise.
2662         * modules/duplocale-tests (Files): Likewise.
2663         * modules/fchdir-tests (Files): Likewise.
2664         * modules/fcntl-tests (Files): Likewise.
2665         * modules/fdopendir-tests (Files): Likewise.
2666         * modules/fflush-tests (Files): Likewise.
2667         * modules/flock-tests (Files): Likewise.
2668         * modules/floorf-tests (Files): Likewise.
2669         * modules/floorl-tests (Files): Likewise.
2670         * modules/fnmatch-tests (Files): Likewise.
2671         * modules/fopen-tests (Files): Likewise.
2672         * modules/fprintf-posix-tests (Files): Likewise.
2673         * modules/freopen-tests (Files): Likewise.
2674         * modules/frexp-nolibm-tests (Files): Likewise.
2675         * modules/frexp-tests (Files): Likewise.
2676         * modules/frexpl-nolibm-tests (Files): Likewise.
2677         * modules/frexpl-tests (Files): Likewise.
2678         * modules/fseek-tests (Files): Likewise.
2679         * modules/fseeko-tests (Files): Likewise.
2680         * modules/fsync-tests (Files): Likewise.
2681         * modules/ftell-tests (Files): Likewise.
2682         * modules/ftello-tests (Files): Likewise.
2683         * modules/futimens-tests (Files): Likewise.
2684         * modules/getaddrinfo-tests (Files): Likewise.
2685         * modules/getcwd-tests (Files): Likewise.
2686         * modules/getdelim-tests (Files): Likewise.
2687         * modules/getdtablesize-tests (Files): Likewise.
2688         * modules/getgroups-tests (Files): Likewise.
2689         * modules/gethostname-tests (Files): Likewise.
2690         * modules/getline-tests (Files): Likewise.
2691         * modules/getopt-posix-tests (Files): Likewise.
2692         * modules/gettimeofday-tests (Files): Likewise.
2693         * modules/glob-tests (Files): Likewise.
2694         * modules/iconv-tests (Files): Likewise.
2695         * modules/inet_ntop-tests (Files): Likewise.
2696         * modules/inet_pton-tests (Files): Likewise.
2697         * modules/isblank-tests (Files): Likewise.
2698         * modules/lchown-tests (Files): Likewise.
2699         * modules/ldexpl-tests (Files): Likewise.
2700         * modules/link-tests (Files): Likewise.
2701         * modules/linkat-tests (Files): Likewise.
2702         * modules/lseek-tests (Files): Likewise.
2703         * modules/lstat-tests (Files): Likewise.
2704         * modules/mbrtowc-tests (Files): Likewise.
2705         * modules/mbsinit-tests (Files): Likewise.
2706         * modules/mbsnrtowcs-tests (Files): Likewise.
2707         * modules/mbsrtowcs-tests (Files): Likewise.
2708         * modules/memchr-tests (Files): Likewise.
2709         * modules/memcmp-tests (Files): Likewise.
2710         * modules/memmem-tests (Files): Likewise.
2711         * modules/memrchr-tests (Files): Likewise.
2712         * modules/mkdir-tests (Files): Likewise.
2713         * modules/mkfifo-tests (Files): Likewise.
2714         * modules/mkfifoat-tests (Files): Likewise.
2715         * modules/mknod-tests (Files): Likewise.
2716         * modules/nanosleep-tests (Files): Likewise.
2717         * modules/nl_langinfo-tests (Files): Likewise.
2718         * modules/obstack-printf-tests (Files): Likewise.
2719         * modules/open-tests (Files): Likewise.
2720         * modules/openat-tests (Files): Likewise.
2721         * modules/perror-tests (Files): Likewise.
2722         * modules/pipe2-tests (Files): Likewise.
2723         * modules/poll-tests (Files): Likewise.
2724         * modules/popen-tests (Files): Likewise.
2725         * modules/posix_spawn-tests (Files): Likewise.
2726         * modules/posix_spawnp-tests (Files): Likewise.
2727         * modules/pread-tests (Files): Likewise.
2728         * modules/printf-posix-tests (Files): Likewise.
2729         * modules/pty-tests (Files): Likewise.
2730         * modules/random_r-tests (Files): Likewise.
2731         * modules/rawmemchr-tests (Files): Likewise.
2732         * modules/readlink-tests (Files): Likewise.
2733         * modules/remove-tests (Files): Likewise.
2734         * modules/rename-tests (Files): Likewise.
2735         * modules/renameat-tests (Files): Likewise.
2736         * modules/rmdir-tests (Files): Likewise.
2737         * modules/round-tests (Files): Likewise.
2738         * modules/roundf-tests (Files): Likewise.
2739         * modules/roundl-tests (Files): Likewise.
2740         * modules/select-tests (Files): Likewise.
2741         * modules/setenv-tests (Files): Likewise.
2742         * modules/sigaction-tests (Files): Likewise.
2743         * modules/sleep-tests (Files): Likewise.
2744         * modules/snprintf-posix-tests (Files): Likewise.
2745         * modules/snprintf-tests (Files): Likewise.
2746         * modules/sprintf-posix-tests (Files): Likewise.
2747         * modules/stat-tests (Files): Likewise.
2748         * modules/strcasestr-tests (Files): Likewise.
2749         * modules/strchrnul-tests (Files): Likewise.
2750         * modules/strerror-tests (Files): Likewise.
2751         * modules/strsignal-tests (Files): Likewise.
2752         * modules/strstr-tests (Files): Likewise.
2753         * modules/strtod-tests (Files): Likewise.
2754         * modules/strverscmp-tests (Files): Likewise.
2755         * modules/symlink-tests (Files): Likewise.
2756         * modules/symlinkat-tests (Files): Likewise.
2757         * modules/times-tests (Files): Likewise.
2758         * modules/trunc-tests (Files): Likewise.
2759         * modules/truncf-tests (Files): Likewise.
2760         * modules/truncl-tests (Files): Likewise.
2761         * modules/tsearch-tests (Files): Likewise.
2762         * modules/uname-tests (Files): Likewise.
2763         * modules/unlink-tests (Files): Likewise.
2764         * modules/unsetenv-tests (Files): Likewise.
2765         * modules/usleep-tests (Files): Likewise.
2766         * modules/utimensat-tests (Files): Likewise.
2767         * modules/vasprintf-tests (Files): Likewise.
2768         * modules/vdprintf-posix-tests (Files): Likewise.
2769         * modules/vfprintf-posix-tests (Files): Likewise.
2770         * modules/vprintf-posix-tests (Files): Likewise.
2771         * modules/vsnprintf-posix-tests (Files): Likewise.
2772         * modules/vsnprintf-tests (Files): Likewise.
2773         * modules/vsprintf-posix-tests (Files): Likewise.
2774         * modules/wcrtomb-tests (Files): Likewise.
2775         * modules/wcsnrtombs-tests (Files): Likewise.
2776         * modules/wcsrtombs-tests (Files): Likewise.
2777         * modules/wcwidth-tests (Files): Likewise.
2778         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
2779         * tests/test-isinf.c (isinf): Likewise.
2780         * tests/test-isnan.c (isnan): Likewise.
2781         * tests/test-signbit.c (signbit): Likewise.
2782         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
2783         declaration, either as macro or with correct signature.
2784         (select): Ensure function under test is declared with correct
2785         signature in correct header.
2786         * tests/test-atexit.c (atexit): Likewise.
2787         * tests/test-btowc.c (btowc): Likewise.
2788         * tests/test-canonicalize-lgpl.c (realpath)
2789         (canonicalize_file_name): Likewise.
2790         * tests/test-ceilf1.c (ceilf): Likewise.
2791         * tests/test-ceill.c (ceill): Likewise.
2792         * tests/test-chown.c (chown): Likewise.
2793         * tests/test-dprintf-posix.c (dprintf): Likewise.
2794         * tests/test-dup2.c (dup2): Likewise.
2795         * tests/test-dup3.c (dup3): Likewise.
2796         * tests/test-duplocale.c (duplocale): Likewise.
2797         * tests/test-fchdir.c (fchdir): Likewise.
2798         * tests/test-fchownat.c (fchownat): Likewise.
2799         * tests/test-fcntl.c (fcntl): Likewise.
2800         * tests/test-fdopendir.c (fdopendir): Likewise.
2801         * tests/test-fflush.c (fflush): Likewise.
2802         * tests/test-flock.c (flock): Likewise.
2803         * tests/test-floorf1.c (floorf): Likewise.
2804         * tests/test-floorl.c (floorl): Likewise.
2805         * tests/test-fnmatch.c (fnmatch): Likewise.
2806         * tests/test-fopen.c (fopen): Likewise.
2807         * tests/test-fprintf-posix.c (fprintf): Likewise.
2808         * tests/test-freopen.c (freopen): Likewise.
2809         * tests/test-frexp.c (frexp): Likewise.
2810         * tests/test-frexpl.c (frexpl): Likewise.
2811         * tests/test-fseek.c (fseek): Likewise.
2812         * tests/test-fseeko.c (fseeko): Likewise.
2813         * tests/test-fstatat.c (fstatat): Likewise.
2814         * tests/test-fsync.c (fsync): Likewise.
2815         * tests/test-ftell.c (ftell): Likewise.
2816         * tests/test-ftello.c (ftello): Likewise.
2817         * tests/test-futimens.c (futimens): Likewise.
2818         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
2819         (gai_strerror): Likewise.
2820         * tests/test-getcwd.c (getcwd): Likewise.
2821         * tests/test-getdelim.c (getdelim): Likewise.
2822         * tests/test-getdtablesize.c (getdtablesize): Likewise.
2823         * tests/test-getgroups.c (getgroups): Likewise.
2824         * tests/test-gethostname.c (gethostname): Likewise.
2825         * tests/test-getline.c (getline): Likewise.
2826         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
2827         Likewise.
2828         * tests/test-gettimeofday.c (gettimeofday): Likewise.
2829         * tests/test-glob.c (glob, globfree): Likewise.
2830         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
2831         * tests/test-inet_ntop.c (inet_ntop): Likewise.
2832         * tests/test-inet_pton.c (inet_pton): Likewise.
2833         * tests/test-isblank.c (isblank): Likewise.
2834         * tests/test-lchown.c (lchown): Likewise.
2835         * tests/test-ldexpl.c (ldexpl): Likewise.
2836         * tests/test-link.c (link): Likewise.
2837         * tests/test-linkat.c (linkat): Likewise.
2838         * tests/test-lseek.c (lseek): Likewise.
2839         * tests/test-lstat.c (lstat): Likewise.
2840         * tests/test-mbrtowc.c (mbrtowc): Likewise.
2841         * tests/test-mbsinit.c (mbsinit): Likewise.
2842         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
2843         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
2844         * tests/test-memchr.c (memchr): Likewise.
2845         * tests/test-memcmp.c (memcmp): Likewise.
2846         * tests/test-memmem.c (memmem): Likewise.
2847         * tests/test-memrchr.c (memrchr): Likewise.
2848         * tests/test-mkdir.c (mkdir): Likewise.
2849         * tests/test-mkdirat.c (mkdirat): Likewise.
2850         * tests/test-mkfifo.c (mkfifo): Likewise.
2851         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
2852         * tests/test-mknod.c (mknod): Likewise.
2853         * tests/test-nanosleep.c (nanosleep): Likewise.
2854         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
2855         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
2856         Likewise.
2857         * tests/test-open.c (open): Likewise.
2858         * tests/test-openat.c (openat): Likewise.
2859         * tests/test-perror.c (perror): Likewise.
2860         * tests/test-pipe2.c (pipe2): Likewise.
2861         * tests/test-poll.c (poll): Likewise.
2862         * tests/test-popen.c (popen, pclose): Likewise.
2863         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
2864         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
2865         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
2866         (posix_spawn_file_actions_destroy)
2867         (posix_spawn_file_actions_addclose)
2868         (posix_spawn_file_actions_addopen)
2869         (posix_spawn_file_actions_adddup2): Likewise.
2870         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
2871         * tests/test-pread.c (pread): Likewise.
2872         * tests/test-printf-posix.c (printf): Likewise.
2873         * tests/test-pty.c (openpty, forkpty): Likewise.
2874         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
2875         (random_r): Likewise.
2876         * tests/test-rawmemchr.c (rawmemchr): Likewise.
2877         * tests/test-readlink.c (readlink): Likewise.
2878         * tests/test-remove.c (remove): Likewise.
2879         * tests/test-rename.c (rename): Likewise.
2880         * tests/test-renameat.c (renameat): Likewise.
2881         * tests/test-rmdir.c (rmdir): Likewise.
2882         * tests/test-round1.c (round): Likewise.
2883         * tests/test-roundf1.c (roundf): Likewise.
2884         * tests/test-roundl.c (roundl): Likewise.
2885         * tests/test-setenv.c (setenv): Likewise.
2886         * tests/test-sigaction.c (sigaction): Likewise.
2887         * tests/test-sleep.c (sleep): Likewise.
2888         * tests/test-snprintf.c (snprintf): Likewise.
2889         * tests/test-sprintf-posix.c (sprintf): Likewise.
2890         * tests/test-stat.c (stat): Likewise.
2891         * tests/test-stpncpy.c (stpncpy): Likewise.
2892         * tests/test-strcasestr.c (strcasestr): Likewise.
2893         * tests/test-strchrnul.c (strchrnul): Likewise.
2894         * tests/test-strerror.c (strerror): Likewise.
2895         * tests/test-strsignal.c (strsignal): Likewise.
2896         * tests/test-strstr.c (strstr): Likewise.
2897         * tests/test-strtod.c (strtod): Likewise.
2898         * tests/test-strverscmp.c (strverscmp): Likewise.
2899         * tests/test-symlink.c (symlink): Likewise.
2900         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
2901         * tests/test-times.c (times): Likewise.
2902         * tests/test-trunc1.c (trunc): Likewise.
2903         * tests/test-truncf1.c (truncf): Likewise.
2904         * tests/test-truncl.c (truncl): Likewise.
2905         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
2906         Likewise.
2907         * tests/test-uname.c (uname): Likewise.
2908         * tests/test-unlink.c (unlink): Likewise.
2909         * tests/test-unlinkat.c (unlinkat): Likewise.
2910         * tests/test-unsetenv.c (unsetenv): Likewise.
2911         * tests/test-usleep.c (usleep): Likewise.
2912         * tests/test-utimensat.c (utimensat): Likewise.
2913         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
2914         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
2915         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
2916         * tests/test-vprintf-posix.c (vprintf): Likewise.
2917         * tests/test-vsnprintf.c (vsnprintf): Likewise.
2918         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
2919         * tests/test-wcrtomb.c (wcrtomb): Likewise.
2920         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
2921         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
2922         * tests/test-wcwidth.c (wcwidth): Likewise.
2923
2924         build: pull in conditional headers during GNULIB_POSIXCHECK
2925         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
2926         definitions from any conditionally-included headers.
2927         * lib/stdlib.in.h (includes): Likewise.
2928         * lib/unistd.in.h (includes): Likewise.
2929
2930 2009-12-24  Bruno Haible  <bruno@clisp.org>
2931
2932         * tests/test-argv-iter.c: Include header file being tested immediately
2933         after config.h.
2934         * tests/test-base64.c: Likewise.
2935         * tests/test-flock.c: Likewise.
2936         * tests/test-fsync.c: Likewise.
2937         * tests/test-getdate.c: Likewise.
2938         * tests/test-getndelim2.c: Likewise.
2939         * tests/test-isfinite.c: Likewise.
2940         * tests/test-isinf.c: Likewise.
2941         * tests/test-strerror.c: Likewise.
2942         * tests/test-strsignal.c: Likewise.
2943
2944 2009-12-23  Eric Blake  <ebb9@byu.net>
2945
2946         unistd: work around cygwin bug
2947         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
2948         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
2949         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
2950
2951 2009-12-23  Bruno Haible  <bruno@clisp.org>
2952
2953         localename: More tests.
2954         * tests/test-localename.c (SIZEOF): New macro.
2955         (categories): New variable.
2956         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
2957         test_locale_name_default): Add test w.r.t. thread locale.
2958         (test_locale_name_thread): New function.
2959         (main): Invoke it.
2960
2961         localename: Make aware of thread locale.
2962         * lib/localename.h (gl_locale_name_thread): New declaration.
2963         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
2964         behaviour with respect to thread locale.
2965         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
2966         <langinfo.h>, glthread/lock.h.
2967         (SIZE_BITS): New macro.
2968         (string_hash): New function.
2969         (struct hash_node): New type.
2970         (HASH_TABLE_SIZE): New macro.
2971         (struniq_hash_table, struniq_lock): New variables.
2972         (struniq): New function.
2973         (gl_locale_name_thread): New function.
2974         (gl_locale_name): Invoke it.
2975         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
2976         * modules/localename (Depends-on): Add lock.
2977         Reported by Mike Gran <spk121@yahoo.com>.
2978
2979 2009-12-23  Eric Blake  <ebb9@byu.net>
2980
2981         va-args: new module
2982         * modules/va-args: New file.
2983         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
2984         * MODULES.html.sh (Core language properties): Mention it.
2985
2986         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
2987         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
2988         named alias for __attribute__((__unused__)).
2989         * lib/chown.c: Update client.
2990         * lib/fchmodat.c: Likewise.
2991         * lib/fts.c: Likewise.
2992         * lib/getdate.y: Likewise.
2993         * lib/getgroups.c: Likewise.
2994         * lib/getopt.c: Likewise.
2995         * lib/getugroups.c: Likewise.
2996         * lib/mkdir.c: Likewise.
2997         * lib/mkfifo.c: Likewise.
2998         * lib/mkfifoat.c: Likewise.
2999         * lib/mknod.c: Likewise.
3000         * lib/mknodat.c: Likewise.
3001         * lib/readlink.c: Likewise.
3002         * lib/se-context.in.h: Likewise.
3003         * lib/se-selinux.in.h: Likewise.
3004         * lib/sockets.c: Likewise.
3005         * lib/symlink.c: Likewise.
3006         * lib/symlinkat.c: Likewise.
3007         * lib/unicodeio.c: Likewise.
3008         * lib/unistr.h: Likewise.
3009         * tests/test-areadlink.c: Likewise.
3010         * tests/test-areadlinkat.c: Likewise.
3011         * tests/test-filenamecat.c: Likewise.
3012         * tests/test-fseeko.c: Likewise.
3013         * tests/test-ftello.c: Likewise.
3014         * tests/test-getdate.c: Likewise.
3015         * tests/test-getgroups.c: Likewise.
3016         * tests/test-gethostname.c: Likewise.
3017         * tests/test-quotearg.c: Likewise.
3018         * tests/test-version-etc.c: Likewise.
3019         * tests/test-xalloc-die.c: Likewise.
3020         * tests/test-xfprintf-posix.c: Likewise.
3021         * tests/test-xprintf-posix.c: Likewise.
3022         * tests/test-xvasprintf.c: Likewise.
3023
3024         tests: avoid compiler warnings
3025         * tests/test-fcntl.c (main): Delete unused parameters.
3026         * tests/test-freopen-safer.c (main): Likewise.
3027         * tests/test-xalloc-die.c (main): Mark unused parameters.
3028         * tests/test-fseeko.c (main): Likewise.
3029         * tests/test-ftello.c (main): Likewise.
3030         * tests/test-nanosleep.c (main): Avoid declaration warning.
3031         * tests/test-sleep.c (main): Likewise.
3032         * tests/test-unsetenv.c (main): Silence warning about string
3033         literal.
3034         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
3035
3036 2009-12-23  Bruno Haible  <bruno@clisp.org>
3037
3038         * tests/test-localename.c (test_locale_name): New function, extracted
3039         from main. Also test mixed situations.
3040         (test_locale_name_posix, test_locale_name_environ,
3041         test_locale_name_default): New functions.
3042         (main): Invoke them all.
3043         * modules/localename-tests (configure.ac): Test for newlocale.
3044
3045 2009-12-23  Bruno Haible  <bruno@clisp.org>
3046
3047         unistd: Ensure getcwd gets declared before being overridden.
3048         * lib/unistd.in.h: Conditionally include <io.h>.
3049
3050 2009-12-22  Bruno Haible  <bruno@clisp.org>
3051
3052         wchar: Diagnose broken combination of glibc and gcc versions and flags.
3053         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
3054         (gl_WCHAR_H): Invoke it.
3055         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
3056         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
3057         Reported by Karl Berry <karl@freefriends.org>.
3058
3059 2009-12-22  Eric Blake  <ebb9@byu.net>
3060
3061         math, unistd: avoid redundant includes
3062         * lib/math.in.h (isnan): No need to re-include <math.h>.
3063         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
3064
3065         getsubopt: work around cygwin bug
3066         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
3067         avoid conflicting with system getsubopt.
3068         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
3069         bug.
3070
3071         getopt: synchronize from glibc
3072         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
3073         parameter order.  Adjust all callers.
3074         (_getopt_internal_r, main): Adjust quoting in error messages.
3075         Drop considerations for outdated POSIX 1003.2 error message.
3076         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
3077         callers.
3078         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
3079
3080         test-getopt: test stderr behavior
3081         * modules/getopt-posix-tests (Depends-on): Add dup2.
3082         * tests/test-getopt.c (ASSERT): Avoid stderr.
3083         (main): Move stderr to a temporary file.
3084         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
3085         Instead, add parameter to inform caller if output occurred.
3086         (test_getopt): Adjust all existing tests to expect silence, and
3087         add new tests of leading ":".
3088         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
3089         glibc shortcomings with leading "-:" or "+:" in optstring.
3090         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3091         Likewise.
3092         * doc/posix-functions/getopt.texi (getopt): Likewise.
3093
3094         test-getopt: enhance test
3095         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
3096         supports optind=0.
3097         * tests/test-getopt.c (OPTIND_MIN): Move...
3098         * tests/test-getopt.h (OPTIND_MIN): ...here.
3099         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
3100         Require that optind=0 works, since modern BSD supports it in
3101         addition to optreset, and since coreutils expects it.
3102         (test_getopt_long_only): New test.
3103         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
3104         glibc shortcomings with 'W;', and enforcement of optind=0.
3105         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3106         Likewise.
3107
3108 2009-12-21  Bruno Haible  <bruno@clisp.org>
3109
3110         localename: Improvements for MacOS X and Cygwin.
3111         * lib/localename.h (gl_locale_name_environ): New declaration.
3112         * lib/localename.c (gl_locale_name_environ): New function, extracted from
3113         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
3114         (gl_locale_name_posix): Invoke it.
3115         (gl_locale_name_default): Add comments. Use Windows native API also on
3116         Cygwin.
3117
3118 2009-12-21  Bruno Haible  <bruno@clisp.org>
3119
3120         Update list of Win32 locale ids.
3121         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
3122         (LANG_SAMI): Renamed from LANG_SAAMI.
3123         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
3124         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
3125         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
3126         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
3127         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
3128         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
3129         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
3130         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
3131         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
3132         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
3133         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
3134         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
3135         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
3136         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
3137         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
3138         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
3139         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
3140         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
3141         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
3142         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
3143         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
3144         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
3145         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
3146         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
3147         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
3148         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
3149         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
3150         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
3151         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
3152         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
3153         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
3154         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
3155         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
3156         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
3157         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
3158         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
3159         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
3160         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
3161         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
3162         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
3163         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
3164         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
3165         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
3166         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
3167         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
3168         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
3169         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
3170         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
3171         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
3172         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
3173         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
3174         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
3175         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
3176         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
3177         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
3178         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
3179         Add more languages and countries for Sami, Sorbian. Add more countries
3180         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
3181         for Pashto. Change country for Syriac, Tswana.
3182
3183 2009-12-21  Eric Blake  <ebb9@byu.net>
3184
3185         test-utimens: avoid spurious failure
3186         * tests/test-chown.h (nap): Factor...
3187         * tests/nap.h: ...into new file.
3188         * tests/test-lchown.h (nap): Avoid duplication.
3189         * tests/test-utimens-common.h (nap): Use shared implementation,
3190         necessary on file systems with 1-second resolution.
3191         * modules/chown-tests (Files): Include new file.
3192         * modules/fdutimensat-tests (Files): Likewise.
3193         * modules/futimens-tests (Files): Likewise.
3194         * modules/lchown-tests (Files): Likewise.
3195         * modules/openat-tests (Files): Likewise.
3196         * modules/utimens-tests (Files): Likewise.
3197         * modules/utimensat-tests (Files): Likewise.
3198
3199 2009-12-19  Eric Blake  <ebb9@byu.net>
3200
3201         futimens, utimensat: work around Linux bug
3202         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
3203         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3204         * lib/utimensat.c (rpl_utimensat): Work around it.
3205         * lib/futimens.c (rpl_futimens): Adjust comment.
3206
3207         utimens: work around Linux ctime bug
3208         * lib/utimens.c (detect_ctime_bug): New helper function.
3209         (update_timespec): Differentiate between workaround needed for
3210         this bug vs. what is needed for systems that lack utimensat.
3211         (fdutimens, lutimens): Work around bug.
3212
3213         utimens: check for ctime update
3214         * tests/test-utimens-common.h (check_ctime): Define.
3215         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
3216         * tests/test-futimens.h (test_futimens): Likewise.
3217         * tests/test-lutimens.h (test_lutimens): Likewise.
3218         * doc/posix-functions/futimens.texi (futimens): Document the bug.
3219         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
3220
3221 2009-12-19  Bruno Haible  <bruno@clisp.org>
3222
3223         dprintf-posix: Check against memory leak fixed on 2009-12-15.
3224         * tests/test-dprintf-posix2.sh: New file.
3225         * tests/test-dprintf-posix2.c: New file.
3226         * modules/dprintf-posix-tests (Files): Add them.
3227         (configure.ac): Check for getrlimit and setrlimit.
3228         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
3229
3230 2009-12-19  Bruno Haible  <bruno@clisp.org>
3231
3232         fprintf-posix: Check against memory leak fixed on 2009-12-15.
3233         * tests/test-fprintf-posix3.sh: New file.
3234         * tests/test-fprintf-posix3.c: New file.
3235         * modules/fprintf-posix-tests (Files): Add them.
3236         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
3237
3238 2009-12-19  Eric Blake  <ebb9@byu.net>
3239
3240         dirfd: fix prototype
3241         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
3242         * lib/dirfd.c (dirfd): Likewise.
3243
3244         canonicalize: reduce memory usage
3245         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
3246         allocation to size.
3247         Reported by Solar Designer <solar@openwall.com>.
3248
3249 2009-12-19  Bruno Haible  <bruno@clisp.org>
3250
3251         New module attribute 'Applicability'.
3252         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
3253         * gnulib-tool: New option --extract-applicability.
3254         (func_usage): Document it.
3255         (sed_extract_prog): Recognize it.
3256         (func_get_applicability): New function.
3257         (func_import): Generalize handling of 'link-warning' module.
3258         * modules/link-warning (Applicability): New section.
3259         * modules/arg-nonnull (Applicability): New section.
3260         Repoted by Simon Josefsson <simon@josefsson.org>.
3261
3262 2009-12-19  Bruno Haible  <bruno@clisp.org>
3263
3264         fflush: tweak
3265         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
3266         * lib/fseeko.c (rpl_fseeko): Likewise.
3267
3268 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
3269
3270         * lib/gl_list.h: Fix typo in comment.
3271
3272 2009-12-16  Eric Blake  <ebb9@byu.net>
3273
3274         fcntl: use to simplify other modules
3275         * modules/cloexec (Depends-on): Add fcntl.
3276         * modules/fchdir (Depends-on): Likewise.
3277         * modules/fd-safer-flag (Depends-on): Likewise.
3278         * modules/unistd-safer (Depends-on): Likewise.
3279         * modules/dup3 (configure.ac): Set module indicator.
3280         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
3281         missing.
3282         * lib/fchdir.c (_gl_register_dup): Fix comment.
3283         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
3284         * lib/dup-safer.c (dup_safer): Likewise.
3285         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
3286         * lib/dup3.c (dup3): Likewise.
3287         * tests/test-fchdir.c (main): Enhance test.
3288         Fixes a dup_cloexec bug reported by Ondřej Vašík.
3289
3290         fcntl: port portions of fcntl to mingw
3291         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
3292         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
3293         replacement for mingw.
3294         * modules/fcntl (Description): Update.
3295         (Depends-on): Add dup2.
3296         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
3297         * modules/fcntl-h (Makefile.am): Substitute it.
3298         * lib/fcntl.in.h (fcntl): Update declaration.
3299         (F_DUPFD, F_GETFD): New macros, when needed.
3300         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
3301         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
3302         * tests/test-fcntl.c (check_flags, main): Enhance test for items
3303         we now guarantee.
3304
3305         fcntl: work around cygwin bug in F_DUPFD
3306         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
3307         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
3308         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
3309         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
3310         * doc/posix-functions/fcntl.texi (fcntl): Document it.
3311
3312         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
3313         * modules/fcntl (Files): List new files.
3314         (configure.ac): Run a test.
3315         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
3316         * lib/fcntl.c (rpl_fcntl): Likewise.
3317         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
3318         (gl_FCNTL_H): Always replace fcntl.h.
3319         * modules/fcntl-h (Makefile.am): Substitute witnesses.
3320         * lib/fcntl.in.h (fcntl): Declare replacement.
3321         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
3322         needed, plus a witness.
3323         * doc/posix-functions/fcntl.texi (fcntl): Document this.
3324         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
3325         * tests/test-fcntl.c: New file.
3326         * modules/fcntl-tests: Likewise.
3327
3328         binary-io: avoid potential compilation warning
3329         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
3330         directives.
3331
3332         fflush: avoid compilation error on NetBSD
3333         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
3334         between off_t and fpos_t, since the latter is sometimes a struct.
3335         * lib/fseeko.c (rpl_fseeko): Likewise.
3336         Reported by Alexander Nasonov <alnsn@yandex.ru>.
3337
3338 2009-12-15  Eric Blake  <ebb9@byu.net>
3339
3340         fcntl-h, stdio, sys_ioctl: fix declarations
3341         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
3342         function must not take arguments.
3343         * lib/sys_ioctl.in.h (ioctl): Likewise.
3344         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
3345         (open): Add a link warning.
3346
3347 2009-12-15  Jim Meyering  <meyering@redhat.com>
3348
3349         areadlink, areadlink-with-size: relax license to LGPLv2+
3350         * modules/areadlink (License): Relax to LGPLv2+.
3351         * modules/areadlink-with-size (License): Likewise.
3352
3353 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
3354             Bruno Haible  <bruno@clisp.org>
3355
3356         *printf: Fix memory leak.
3357         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
3358         * lib/vfprintf.c (vfprintf): Likewise.
3359         * lib/dprintf.c (dprintf): Likewise.
3360         * lib/vdprintf.c (vdprintf): Likewise.
3361
3362 2009-12-14  Eric Blake  <ebb9@byu.net>
3363
3364         accept4: adjust module dependencies
3365         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
3366
3367         utimens: one more try at avoiding compiler warning
3368         * lib/utimens.c (lutimens): Lower scope of result.
3369
3370 2009-12-13  Bruno Haible  <bruno@clisp.org>
3371
3372         Move the malloc checking from module 'list' to new module 'xlist'.
3373         * modules/xlist: New file.
3374         * lib/gl_xlist.h: New file.
3375         * lib/gl_xlist.c: New file.
3376         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
3377         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
3378         gl_list_add_last, gl_list_add_before, gl_list_add_after,
3379         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
3380         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
3381         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
3382         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
3383         gl_sortedlist_nx_add): New declarations.
3384         (struct gl_list_implementation): Rename and change methods accordingly.
3385         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
3386         (gl_list_nx_create): Renamed from gl_list_create.
3387         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
3388         (gl_list_nx_set_at): Renamed from gl_list_set_at.
3389         (gl_list_nx_add_first): Renamed from gl_list_add_first.
3390         (gl_list_nx_add_last): Renamed from gl_list_add_last.
3391         (gl_list_nx_add_before): Renamed from gl_list_add_before.
3392         (gl_list_nx_add_after): Renamed from gl_list_add_after.
3393         (gl_list_nx_add_at): Renamed from gl_list_add_at.
3394         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
3395         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
3396         gl_list_create_empty.
3397         (gl_list_nx_create): Renamed from gl_list_create.
3398         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
3399         (gl_list_nx_set_at): Renamed from gl_list_set_at.
3400         (gl_list_nx_add_first): Renamed from gl_list_add_first.
3401         (gl_list_nx_add_last): Renamed from gl_list_add_last.
3402         (gl_list_nx_add_before): Renamed from gl_list_add_before.
3403         (gl_list_nx_add_after): Renamed from gl_list_add_after.
3404         (gl_list_nx_add_at): Renamed from gl_list_add_at.
3405         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
3406         * lib/gl_array_list.c: Don't include xalloc.h.
3407         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
3408         NULL upon out-of-memory.
3409         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
3410         out-of-memory.
3411         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
3412         Change return type to 'int'.
3413         (gl_array_nx_set_at): Renamed from gl_array_set_at.
3414         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
3415         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
3416         upon out-of-memory.
3417         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
3418         upon out-of-memory.
3419         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
3420         upon out-of-memory.
3421         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
3422         upon out-of-memory.
3423         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
3424         out-of-memory.
3425         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
3426         Update.
3427         (gl_array_list_implementation): Update.
3428         * lib/gl_carray_list.c: Don't include xalloc.h.
3429         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
3430         Return NULL upon out-of-memory.
3431         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
3432         out-of-memory.
3433         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
3434         Change return type to 'int'.
3435         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
3436         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
3437         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
3438         upon out-of-memory.
3439         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
3440         upon out-of-memory.
3441         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
3442         out-of-memory.
3443         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
3444         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
3445         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
3446         Update.
3447         (gl_carray_list_implementation): Update.
3448         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
3449         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
3450         gl_linked_create_empty. Return NULL upon out-of-memory.
3451         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
3452         out-of-memory.
3453         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
3454         Change return type to 'int'. Return -1 upon out-of-memory.
3455         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
3456         out-of-memory.
3457         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
3458         upon out-of-memory.
3459         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
3460         upon out-of-memory.
3461         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
3462         NULL upon out-of-memory.
3463         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
3464         upon out-of-memory.
3465         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
3466         out-of-memory.
3467         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
3468         Update.
3469         * lib/gl_linked_list.c: Don't include xalloc.h.
3470         (gl_linked_list_implementation): Update.
3471         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
3472         (add_to_bucket): Change return type to 'int'.
3473         (gl_linkedhash_list_implementation): Update.
3474         * lib/gl_anytree_list1.h (free_subtree): New function.
3475         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
3476         gl_tree_create_empty. Return NULL upon out-of-memory.
3477         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
3478         Change return type to 'int'. Return -1 upon out-of-memory.
3479         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
3480         out-of-memory.
3481         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
3482         (gl_tree_remove_node): New function, moved here from
3483         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
3484         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
3485         Update.
3486         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
3487         malloc, not xmalloc. Return NULL upon out-of-memory.
3488         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
3489         out-of-memory.
3490         (gl_tree_remove_node_from_tree): New function, extracted from
3491         gl_tree_remove_node.
3492         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
3493         upon out-of-memory.
3494         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
3495         out-of-memory.
3496         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
3497         upon out-of-memory.
3498         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
3499         upon out-of-memory.
3500         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
3501         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
3502         not xmalloc. Return NULL upon out-of-memory.
3503         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
3504         out-of-memory.
3505         (gl_tree_remove_node_from_tree): New function, extracted from
3506         gl_tree_remove_node.
3507         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
3508         upon out-of-memory.
3509         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
3510         out-of-memory.
3511         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
3512         upon out-of-memory.
3513         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
3514         upon out-of-memory.
3515         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
3516         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
3517         gl_anytree_list1.h before gl_anyavltree_list2.h.
3518         (gl_avltree_list_implementation): Update.
3519         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
3520         gl_anytree_list1.h before gl_anyavltree_list2.h.
3521         (gl_rbtree_list_implementation): Update.
3522         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
3523         Change return type to 'int'. Return -1 upon out-of-memory. Use
3524         __builtin_expect.
3525         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
3526         (gl_avltreehash_list_implementation): Update.
3527         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
3528         (gl_rbtreehash_list_implementation): Update.
3529         * modules/array-list (Depends-on): Remove xalloc.
3530         * modules/carray-list (Depends-on): Likewise.
3531         * modules/linked-list (Depends-on): Likewise.
3532         * modules/linkedhash-list (Depends-on): Likewise.
3533         * modules/avltree-list (Depends-on): Likewise.
3534         * modules/rbtree-list (Depends-on): Likewise.
3535         * modules/avltreehash-list (Depends-on): Likewise.
3536         * modules/rbtreehash-list (Depends-on): Likewise.
3537
3538         * modules/xsublist: New file.
3539         * lib/gl_xsublist.h: New file.
3540         * lib/gl_xsublist.c: New file.
3541         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
3542         (gl_sublist_nx_create): New declaration.
3543         * lib/gl_sublist.c: Don't include xalloc.h.
3544         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
3545         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
3546         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
3547         Change return type to 'int'. Return -1 upon out-of-memory.
3548         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
3549         upon out-of-memory.
3550         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
3551         NULL upon out-of-memory.
3552         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
3553         upon out-of-memory.
3554         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
3555         NULL upon out-of-memory.
3556         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
3557         NULL upon out-of-memory.
3558         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
3559         upon out-of-memory.
3560         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
3561         (gl_sublist_list_implementation): Update.
3562         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
3563         upon out-of-memory.
3564         * modules/sublist (Depends-on): Remove xalloc.
3565
3566         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
3567         * tests/test-carray_list.c: Likewise.
3568         * tests/test-linked_list.c: Likewise.
3569         * tests/test-linkedhash_list.c: Likewise.
3570         * tests/test-avltree_list.c: Likewise.
3571         * tests/test-rbtree_list.c: Likewise.
3572         * tests/test-avltreehash_list.c: Likewise.
3573         * tests/test-rbtreehash_list.c: Likewise.
3574         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
3575         * modules/carray-list-tests (Makefile.am): Likewise.
3576         * modules/linked-list-tests (Makefile.am): Likewise.
3577         * modules/linkedhash-list-tests (Makefile.am): Likewise.
3578         * modules/avltree-list-tests (Makefile.am): Likewise.
3579         * modules/rbtree-list-tests (Makefile.am): Likewise.
3580         * modules/avltreehash-list-tests (Makefile.am): Likewise.
3581         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
3582
3583         * NEWS: Mention the changes.
3584
3585         * lib/clean-temp.c: Include gl_xlist.h.
3586         * modules/clean-temp (Depends-on): Add xlist.
3587
3588         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
3589         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
3590
3591         * tests/test-array_oset.c: Include gl_xlist.h.
3592         * modules/array-oset-tests (Depends-on): Add xlist.
3593
3594         Reported by José E. Marchesi <jemarch@gnu.org>.
3595
3596 2009-12-13  Bruno Haible  <bruno@clisp.org>
3597
3598         Move the malloc checking from module 'oset' to new module 'xoset'.
3599         * modules/xoset: New file.
3600         * lib/gl_xoset.h: New file.
3601         * lib/gl_xoset.c: New file.
3602         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
3603         declarations.
3604         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
3605         (struct gl_oset_implementation): Rename and change methods accordingly.
3606         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
3607         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
3608         'int'. Mark as __warn_unused_result__.
3609         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
3610         gl_oset_create_empty.
3611         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
3612         'int'.
3613         * lib/gl_array_oset.c: Don't include xalloc.h.
3614         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
3615         malloc, not xmalloc.
3616         (grow): Change return type to 'int'. Don't call xalloc_die.
3617         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
3618         to 'int'.
3619         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
3620         'int'.
3621         (gl_array_oset_implementation): Update.
3622         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
3623         gl_tree_create_empty.
3624         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
3625         'int'.
3626         * lib/gl_avltree_oset.c: Don't include xalloc.h.
3627         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
3628         xmalloc.
3629         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
3630         not xmalloc.
3631         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
3632         xmalloc.
3633         (gl_avltree_oset_implementation): Update.
3634         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
3635         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
3636         xmalloc.
3637         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
3638         not xmalloc.
3639         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
3640         xmalloc.
3641         (gl_rbtree_oset_implementation): Update.
3642         * modules/array-oset (Depends-on): Remove xalloc.
3643         * modules/avltree-oset (Depends-on): Likewise.
3644         * modules/rbtree-oset (Depends-on): Likewise.
3645         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
3646         * tests/test-avltree_oset.c: Likewise.
3647         * tests/test-rbtree_oset.c: Likewise.
3648         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
3649         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
3650         * modules/rbtree-oset-tests (Makefile.am): Likewise.
3651         * NEWS: Mention the change.
3652
3653 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
3654
3655         maint.mk: allow a project to override release-prep commands
3656         * top/maint.mk (alpha, beta, stable): Move release-preparatory
3657         commands into a new rule.
3658         (release-prep): New rule.
3659         (release-prep-hook): New overridable variable.
3660
3661 2009-12-13  Bruno Haible  <bruno@clisp.org>
3662
3663         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
3664
3665 2009-12-13  Jim Meyering  <meyering@redhat.com>
3666
3667         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
3668         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
3669
3670 2009-12-12  Bruno Haible  <bruno@clisp.org>
3671
3672         duplocale: Tweak.
3673         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
3674
3675 2009-12-12  Karl Berry  <karl@gnu.org>
3676
3677         * config/srclist.txt (strtoll.c): tab changes, no more sync.
3678
3679 2009-12-12  Bruno Haible  <bruno@clisp.org>
3680
3681         * m4/po.m4: Undo incorrect untabification.
3682
3683 2009-12-12  Bruno Haible  <bruno@clisp.org>
3684
3685         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
3686         * modules/c-strtod (Depends-on): Add locale.
3687         * modules/c-strtold (Depends-on): Likewise.
3688
3689 2009-12-12  Bruno Haible  <bruno@clisp.org>
3690
3691         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
3692
3693 2009-12-11  Eric Blake  <ebb9@byu.net>
3694
3695         setenv: relax requirement in light of POSIX ruling
3696         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
3697         not NULL.
3698         * tests/test-setenv.c (main): Relax test.
3699         * tests/test-unsetenv.c (main): Likewise.
3700         * doc/posix-functions/setenv.texi (setenv): Document this.
3701         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
3702
3703 2009-12-11  Bruno Haible  <bruno@clisp.org>
3704
3705         New module 'fd-safer-flag'.
3706         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
3707         * lib/dup-safer.c (dup_safer_flag): Remove function.
3708         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
3709         * lib/fd-safer.c (fd_safer_flag): Remove function.
3710         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
3711         * modules/cloexec (configure.ac): Drop indicator macro.
3712         * modules/fd-safer-flag: New file.
3713         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
3714         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
3715         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
3716
3717 2009-12-11  Bruno Haible  <bruno@clisp.org>
3718
3719         Tests for module 'nl_langinfo'.
3720         * modules/nl_langinfo-tests: New file.
3721         * tests/test-nl_langinfo.sh: New file.
3722         * tests/test-nl_langinfo.c: New file.
3723
3724         New module 'nl_langinfo'.
3725         * lib/nl_langinfo.c: New file.
3726         * m4/nl_langinfo.m4: New file.
3727         * modules/nl_langinfo: New file.
3728         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
3729
3730 2009-12-11  Bruno Haible  <bruno@clisp.org>
3731
3732         Tests for module 'langinfo'.
3733         * modules/langinfo-tests: New file.
3734         * tests/test-langinfo.c: New file.
3735
3736         New module 'langinfo'.
3737         * lib/langinfo.in.h: New file.
3738         * m4/langinfo_h.m4: New file.
3739         * modules/langinfo: New file.
3740         * doc/posix-headers/langinfo.texi: Mention the new module.
3741
3742 2009-12-11  Bruno Haible  <bruno@clisp.org>
3743
3744         * lib/config.charset: Untabify.
3745
3746 2009-12-11  Bruno Haible  <bruno@clisp.org>
3747
3748         * modules/unistd-safer (configure.ac): Drop indicator macro.
3749
3750 2009-12-11  Bruno Haible  <bruno@clisp.org>
3751
3752         Move pipe2-safer code to its own file.
3753         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
3754         * lib/pipe-safer.c (pipe2_safer): Remove function.
3755         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
3756         (Makefile.am): Add it to lib_SOURCES.
3757
3758 2009-12-10  Bruno Haible  <bruno@clisp.org>
3759
3760         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
3761
3762 2009-12-10  Bruno Haible  <bruno@clisp.org>
3763
3764         Declare which arguments expect non-NULL values, for GCC and clang.
3765         * build-aux/arg-nonnull.h: New file.
3766         * modules/arg-nonnull: New file.
3767         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
3768         (inet_ntop, inet_pton): Use it.
3769         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
3770         (closedir, dirfd, opendir, scandir, alphasort): Use it.
3771         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
3772         (open, openat): Use it.
3773         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
3774         (fnmatch): Use it.
3775         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
3776         (getopt, getopt_long, getopt_long_only): Use it.
3777         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
3778         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
3779         Use it.
3780         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
3781         (iconv_open): Use it.
3782         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
3783         (strtoimax, strtoumax): Use it.
3784         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
3785         (duplocale): Use it.
3786         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
3787         (frexp, frexpl): Use it.
3788         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
3789         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
3790         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
3791         (tsearch, tfind, tdelete, twalk): Use it.
3792         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
3793         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
3794         sigpending): Use it.
3795         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
3796         (posix_spawn, posix_spawnp, posix_spawnattr_init,
3797         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
3798         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
3799         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
3800         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
3801         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
3802         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
3803         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
3804         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
3805         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
3806         Use it.
3807         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
3808         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
3809         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
3810         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
3811         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
3812         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
3813         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
3814         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
3815         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
3816         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
3817         strtoull, unsetenv): Use it.
3818         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
3819         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
3820         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
3821         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
3822         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
3823         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
3824         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
3825         (strcasecmp, strncasecmp): Use it.
3826         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
3827         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
3828         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
3829         rpl_setsockopt): Use it.
3830         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
3831         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
3832         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
3833         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
3834         (gettimeofday): Use it.
3835         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
3836         (times): Use it.
3837         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
3838         (uname): Use it.
3839         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
3840         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
3841         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
3842         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
3843         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
3844         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
3845         unlinkat, write): Use it.
3846         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
3847         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
3848         * lib/argv-iter.h: Include arg-nonnull.h.
3849         (_ATTRIBUTE_NONNULL_): Remove macro.
3850         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
3851         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
3852         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
3853         optimization.
3854         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
3855         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
3856         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
3857         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
3858         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
3859         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
3860         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
3861         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
3862         * modules/arpa_inet (Depends-on): Add arg-nonnull.
3863         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
3864         * modules/dirent (Depends-on): Add arg-nonnull.
3865         (Makefile.am): Insert arg-nonnull.h into dirent.h.
3866         * modules/fcntl-h (Depends-on): Add arg-nonnull.
3867         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
3868         * modules/fnmatch (Depends-on): Add arg-nonnull.
3869         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
3870         * modules/getopt-posix (Depends-on): Add arg-nonnull.
3871         (Makefile.am): Insert arg-nonnull.h into getopt.h.
3872         * modules/glob (Depends-on): Add arg-nonnull.
3873         (Makefile.am): Insert arg-nonnull.h into glob.h.
3874         * modules/iconv_open (Depends-on): Add arg-nonnull.
3875         (Makefile.am): Insert arg-nonnull.h into iconv.h.
3876         * modules/inttypes (Depends-on): Add arg-nonnull.
3877         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
3878         * modules/locale (Depends-on): Add arg-nonnull.
3879         (Makefile.am): Insert arg-nonnull.h into locale.h.
3880         * modules/math (Depends-on): Add arg-nonnull.
3881         (Makefile.am): Insert arg-nonnull.h into math.h.
3882         * modules/netdb (Depends-on): Add arg-nonnull.
3883         (Makefile.am): Insert arg-nonnull.h into netdb.h.
3884         * modules/search (Depends-on): Add arg-nonnull.
3885         (Makefile.am): Insert arg-nonnull.h into search.h.
3886         * modules/signal (Depends-on): Add arg-nonnull.
3887         (Makefile.am): Insert arg-nonnull.h into signal.h.
3888         * modules/spawn (Depends-on): Add arg-nonnull.
3889         (Makefile.am): Insert arg-nonnull.h into spawn.h.
3890         * modules/stdio (Depends-on): Add arg-nonnull.
3891         (Makefile.am): Insert arg-nonnull.h into stdio.h.
3892         * modules/stdlib (Depends-on): Add arg-nonnull.
3893         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
3894         * modules/string (Depends-on): Add arg-nonnull.
3895         (Makefile.am): Insert arg-nonnull.h into string.h.
3896         * modules/strings (Depends-on): Add arg-nonnull.
3897         (Makefile.am): Insert arg-nonnull.h into strings.h.
3898         * modules/sys_socket (Depends-on): Add arg-nonnull.
3899         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
3900         * modules/sys_stat (Depends-on): Add arg-nonnull.
3901         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
3902         * modules/sys_time (Depends-on): Add arg-nonnull.
3903         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
3904         * modules/sys_times (Depends-on): Add arg-nonnull.
3905         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
3906         * modules/sys_utsname (Depends-on): Add arg-nonnull.
3907         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
3908         * modules/time (Depends-on): Add arg-nonnull.
3909         (Makefile.am): Insert arg-nonnull.h into time.h.
3910         * modules/unistd (Depends-on): Add arg-nonnull.
3911         (Makefile.am): Insert arg-nonnull.h into unistd.h.
3912         * modules/wchar (Depends-on): Add arg-nonnull.
3913         (Makefile.am): Insert arg-nonnull.h into wchar.h.
3914         * modules/argv-iter (Depends-on): Add arg-nonnull.
3915         * tests/test-canonicalize.c (null_ptr): New function.
3916         (main): Use it.
3917         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
3918         (main): Use it.
3919         * tests/test-memmem.c (null_ptr): New function.
3920         (main): Use it.
3921         Reported by Jim Meyering.
3922
3923 2009-12-10  Bruno Haible  <bruno@clisp.org>
3924
3925         Use spaces for indentation, not tabs.
3926         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
3927         * m4/*.m4: Untabify.
3928         * build-aux/*.h: Untabify.
3929         * tests/**/*.[hc]: Untabify.
3930         * README: New section "Indent with spaces, not TABs", based on
3931         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
3932         * NEWS: Mention the change.
3933
3934 2009-12-10  Bruno Haible  <bruno@clisp.org>
3935
3936         pty test: Fix link error.
3937         * modules/pty-tests (Makefile.am): Add the default LDADD value to
3938         test_pty_LDADD.
3939
3940 2009-12-07  Simon Josefsson  <simon@josefsson.org>
3941
3942         * modules/pty: New file.
3943         * modules/pty-tests: New file.
3944         * m4/pty.m4: New file.
3945         * tests/test-pty.c: New file.
3946         * doc/glibc-headers/pty.texi: Modified.
3947         * doc/glibc-functions/forkpty.texi: Modified.
3948         * doc/glibc-functions/openpty.texi: Modified.
3949
3950 2009-12-10  Bruno Haible  <bruno@clisp.org>
3951
3952         Avoid syntax error in C++ mode.
3953         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
3954
3955 2009-12-10  Bruno Haible  <bruno@clisp.org>
3956
3957         Use sed with option -e.
3958         * gnulib-tool (func_version, func_emit_copyright_notice,
3959         func_emit_initmacro_end, func_import, func_create_testdir): Pass
3960         option -e to sed.
3961         * modules/link-warning (Makefile.am): Likewise.
3962
3963 2009-12-10  Jim Meyering  <meyering@redhat.com>
3964
3965         mgetgroups: do not write bytes beyond end of malloc'd buffer
3966         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
3967         username, we call getgroups with a one-element-shorter buffer,
3968         but still told it the length was original, max_n_groups.
3969
3970 2009-12-09  Eric Blake  <ebb9@byu.net>
3971
3972         cloexec: relax license
3973         * modules/cloexec (Maintainer): Add myself.
3974         (License): Use LGPL, not GPL.
3975
3976         link-warning: optimize generation
3977         * modules/link-warning (Makefile.am): Reduce process usage.
3978
3979 2009-12-09  Bruno Haible  <bruno@clisp.org>
3980
3981         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
3982         workaround was added on 2009-11-17.
3983
3984 2009-12-09  Jim Meyering  <meyering@redhat.com>
3985             Bruno Haible  <bruno@clisp.org>
3986
3987         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
3988         * modules/link-warning (Makefile.am): Make the comment-removing sed
3989         command more robust in the face of bootstrap-prepended comment lines.
3990
3991 2009-12-09  Bruno Haible  <bruno@clisp.org>
3992
3993         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
3994         most one group.
3995
3996 2009-12-09  Simon Josefsson <simon@josefsson.org>
3997             Bruno Haible  <bruno@clisp.org>
3998
3999         * build-aux/link-warning.h: Add copyright notice.
4000         * modules/link-warning (Makefile.am): Generate link-warning.h from
4001         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
4002         * NEWS: Mention change in link-warning module.
4003         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
4004         * modules/dirent (Makefile.am): Add dependency to dirent.h.
4005         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
4006         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
4007         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
4008         * modules/math (Makefile.am): Add dependency to math.h.
4009         * modules/search (Makefile.am): Add dependency to search.h.
4010         * modules/signal (Makefile.am): Add dependency to signal.h.
4011         * modules/spawn (Makefile.am): Add dependency to spawn.h.
4012         * modules/stdio (Makefile.am): Add dependency to stdio.h.
4013         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
4014         * modules/string (Makefile.am): Add dependency to string.h.
4015         * modules/strings (Makefile.am): Add dependency to strings.h.
4016         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
4017         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
4018         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
4019         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
4020         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
4021         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
4022         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
4023         * modules/unistd (Makefile.am): Add dependency to unistd.h.
4024         * modules/wchar (Makefile.am): Add dependency to wchar.h.
4025
4026 2009-12-09  Bruno Haible  <bruno@clisp.org>
4027
4028         fchdir: Optimize away rpl_fstat when possible.
4029         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
4030         REPLACE_OPEN_DIRECTORY.
4031         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
4032
4033 2009-12-09  Bruno Haible  <bruno@clisp.org>
4034
4035         * lib/fchdir.c: Update comment.
4036
4037 2009-12-09  Bruno Haible  <bruno@clisp.org>
4038
4039         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
4040
4041 2009-12-08  Eric Blake  <ebb9@byu.net>
4042
4043         fchdir: avoid memory leak on re-registration.
4044         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
4045
4046 2009-12-08  Jim Meyering  <meyering@redhat.com>
4047
4048         init.sh: avoid Solaris 10 /bin/sh portability problem
4049         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
4050         sourced script:
4051           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
4052           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
4053           bar
4054         tests/init.sh relied on that, accepting a --set-path=DIR argument,
4055         and two tests used that idiom.
4056         * tests/init.sh: Update suggested usage comments.
4057         (path_prepend_): New function, to be used in place
4058         of the --src-path=DIR option.
4059         (setup_): Move PATH-prepending code into path_prepend_.
4060         * tests/test-pread.sh: Adapt to new usage.
4061         * tests/test-xalloc-die.sh: Likewise.
4062
4063 2009-12-08  Simon Josefsson  <simon@josefsson.org>
4064
4065         * doc/gnulib.texi (Glibc pty.h): Add.
4066         * doc/glibc-functions/forkpty.texi: Add.
4067         * doc/glibc-functions/openpty.texi: Add.
4068         Suggested by Bruno Haible.
4069
4070 2009-12-08  Eric Blake  <ebb9@byu.net>
4071
4072         fchdir: fix logic bugs
4073         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
4074         * tests/test-fchdir.c (main): Enhance test.
4075         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
4076         is in use.
4077
4078         dup2: fix logic bugs
4079         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
4080         REPLACE_DUP2 to decide when rpl_dup2 is needed.
4081         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
4082         exists.
4083         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
4084
4085 2009-12-07  Eric Blake  <ebb9@byu.net>
4086
4087         unlink: fix m4 detection
4088         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
4089
4090         unistd-safer: add unit test
4091         * modules/unistd-safer-tests: New file.
4092         * tests/test-dup-safer.c: Likewise.
4093         * tests/test-cloexec.c (setmode): Avoid compiler warning.
4094         * tests/test-dup2.c (setmode): Likewise.
4095         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
4096
4097         cloexec: preserve text vs. binary across dup_cloexec
4098         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
4099         mode.
4100         * modules/dup2-tests (Depends-on): Add binary-io.
4101         * modules/cloexec-tests (Depends-on): Likewise.
4102         * tests/test-dup2.c (setmode, is_mode): New helpers.
4103         (main): Add tests that translation mode is preserved.
4104         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
4105         Reported by Bruno Haible.
4106
4107         mgetgroups: reduce duplicate listings
4108         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
4109         resulting array.
4110         * tests/test-chown.h (test_chown): Simplify client.
4111         * tests/test-lchown.h (test_lchown): Likewise.
4112
4113 2009-12-06  Bruno Haible  <bruno@clisp.org>
4114
4115         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
4116         value.
4117
4118 2009-12-06  Bruno Haible  <bruno@clisp.org>
4119
4120         * lib/progname.c: Include stdio.h, stdlib.h.
4121         (set_program_name): Reject a NULL argument.
4122
4123 2009-12-05  Eric Blake  <ebb9@byu.net>
4124
4125         pipe2-safer: new module
4126         * modules/pipe2-safer: New file.
4127         * lib/unistd-safer.h (pipe2_safer): New prototype.
4128         * lib/unistd--.h (pipe2): New wrapper.
4129         * lib/pipe-safer.c (pipe2_safer): New function.
4130         * modules/pipe (Depends-on): Add pipe2-safer.
4131         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
4132
4133         stdlib-safer: preserve cloexec flag for mkostemp[s]
4134         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
4135         fd_safer_flag.
4136
4137         unistd-safer: allow preservation of cloexec status via flag
4138         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
4139         prototypes.
4140         * lib/dup-safer.c (dup_safer_flag): New function.
4141         * lib/fd-safer.c (fd_safer_flag): Likewise.
4142         * modules/cloexec (configure.ac): Set witness.
4143
4144         test-dup2: enhance test
4145         * modules/dup2-tests (Depends-on): Add cloexec.
4146         * tests/test-dup2.c (main): Enhance test.
4147
4148         cloexec: add dup_cloexec
4149         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
4150         header and comments.
4151         * lib/cloexec.c (set_cloexec_flag): Add comments.
4152         (dup_cloexec): New function, with mingw implementation borrowed
4153         from...
4154         * lib/w32spawn.h (dup_noinherit): ...here.
4155         * modules/execute (Depends-on): Add cloexec.
4156         * modules/pipe (Depends-on): Likewise.
4157         * modules/cloexec (Depends-on): Add dup2.
4158         * modules/cloexec-tests (Files): New file.
4159         * tests/test-cloexec.c: Likewise.
4160
4161         test-xalloc-die: fix test for mingw
4162         * modules/xalloc-die-tests (Files): Add tests/init.sh.
4163         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
4164         directory and .exe suffix off argv[0] output.
4165
4166         test-fseeko: fix test for mingw
4167         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
4168         than undefining fseek, so test will pass on mingw.
4169
4170 2009-12-05  Bruno Haible  <bruno@clisp.org>
4171
4172         * lib/progname.h (set_program_name): Clarify specification.
4173         * lib/progname.c (set_program_name): Likewise.
4174         Reported by Jim Meyering.
4175
4176 2009-12-05  Jim Meyering  <meyering@redhat.com>
4177
4178         maint.mk: backslash-escape parens in default regexp
4179         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
4180         backslash-escape the literal parentheses.
4181
4182         maint.mk: news-date-check: use grep -E
4183         * top/maint.mk (today): Define a Make variable, not a...
4184         (news-date-check): ...shell variable.
4185         (news-date-regexp): Use the Make variable.
4186         Use grep's -E option.  Change the failing diagnostic to mention
4187         the variable, $(news-date-regexp).
4188
4189 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
4190
4191         maintainer-makefile: allow customization of NEWS entry format
4192         * top/maint.mk (news-date-regexp): New overridable variable.
4193         (news-date-check): Use it.
4194
4195 2009-12-04  Eric Blake  <ebb9@byu.net>
4196
4197         mgetgroups: add xgetgroups, and avoid ENOSYS failures
4198         * lib/mgetgroups.h (xgetgroups): New prototype.
4199         * lib/mgetgroups.c (xgetgroups): New wrapper.
4200         (mgetgroups): Handle ENOSYS.
4201         * modules/mgetgroups (Depends-on): Add realloc.
4202         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
4203
4204         mgetgroups: avoid argument promotion issues with -1
4205         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
4206         for invalid gid_t.
4207         * tests/test-chown.h (getegid, test_chown): Likewise.
4208         * tests/test-lchown.h (getegid, test_lchown): Likewise.
4209
4210 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
4211
4212         exclude: Fix header file problems.
4213         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
4214
4215 2009-12-01  Jim Meyering  <meyering@redhat.com>
4216
4217         fts: fts_open: do not let an empty string cause immediate failure
4218         This is required in support of GNU rm, for which the command
4219         "rm A '' B" must process and remove both A and B, in spite of
4220         the empty string argument.
4221         * lib/fts.c (fts_open): Do not let the presence of an empty string
4222         cause fts_open to fail immediately.  Most fts-using tools must be
4223         able to process all arguments, in order, and can be expected to
4224         diagnose such arguments themselves.
4225
4226 2009-11-30  Eric Blake  <ebb9@byu.net>
4227
4228         utimens: fix compilation error
4229         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
4230         Declare variable at right scope.
4231
4232 2009-11-29  Jim Meyering  <meyering@redhat.com>
4233
4234         bootstrap: handle perl-5.11's changed --version output
4235         * build-aux/bootstrap (get_version): Handle perl separately,
4236         since perl-5.11's --version output is different.
4237
4238 2009-11-28  Jim Meyering  <meyering@redhat.com>
4239
4240         userspec: depend on the inttostr module, too
4241         * modules/userspec (Depends-on): Add inttostr.
4242
4243         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
4244         * lib/userspec.c (parse_with_separator): Do not accept a user ID
4245         number of MAXUID when it evaluates to (uid_t) -1.
4246         Likewise for group ID.  Reported by Matt McCutchen in
4247         <http://savannah.gnu.org/bugs/?28113>
4248
4249         userspec: reformat to use spaces, not TABs
4250         * lib/userspec.c: Expand TABs to spaces.
4251         Add Emacs' "indent-tabs-mode: nil" hint.
4252
4253 2009-11-27  Eric Blake  <ebb9@byu.net>
4254
4255         getopt-gnu: flush out another BSD bug
4256         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
4257         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
4258         flush out BSD bug.
4259         * tests/test-getopt.h (test_getopt): End lists with NULL.
4260         * tests/test-getopt_long.h (test_getopt_long): Likewise.
4261         (test_getopt_long_posix): Enhance test.
4262         * modules/getopt-posix-tests (Depends-on): Add stdbool.
4263         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
4264         getopt-gnu.
4265         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4266         Likewise.
4267
4268 2009-11-27  Simon Josefsson  <simon@josefsson.org>
4269
4270         * modules/idpriv-droptemp-tests (Notice): Fix text.
4271
4272 2009-11-27  Jim Meyering  <meyering@redhat.com>
4273
4274         test-xalloc-die: avoid spurious failure due to libtool argv difference
4275         In a libtool-enabled project, this test would fail due to a difference
4276         in the emitted program name, e.g.,
4277         -test-xalloc-die: memory exhausted
4278         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
4279         Use program to avoid that.
4280         * modules/xalloc-die-tests (Depends-on): Add progname.
4281         * tests/test-xalloc-die.c: Include progname.h".
4282         (program_name): Remove decl.
4283         (main): Call set_program_name.
4284         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
4285
4286 2009-11-26  Richard Jones  <rjones@redhat.com>
4287
4288         w32sock: leave win32 error in place.
4289         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
4290
4291 2009-11-26  Eric Blake  <ebb9@byu.net>
4292
4293         init.sh: suggest to use skip_ and fail_ functions in comments
4294         * tests/init.sh: Add a sentence.
4295
4296 2009-11-25  Bruno Haible  <bruno@clisp.org>
4297
4298         init.sh: add documentation in comments
4299         * tests/init.sh: Add some developer and user documentation.
4300
4301 2009-11-26  Jim Meyering  <meyering@redhat.com>
4302
4303         init.sh: accommodate even those who specify bogus srcdir manually
4304         * tests/init.sh: Normally, srcdir is guaranteed by automake and
4305         configure-time tests to be sanitized, so that there is no need to
4306         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
4307         (with no double quotes) suffices.  However, since tests may be
4308         invoked manually, and since you may explicitly set srcdir to the
4309         name of a directory containing spaces, do quote its uses here.
4310         * tests/test-pread.sh: Likewise.
4311         Suggested by Bruno Haible.
4312
4313         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
4314         * tests/test-pread.sh: Write no data into the pipe, because
4315         test-pread actually reads none.  This avoids a diagnostic,
4316         "bash: echo: write error: Broken pipe", that arises in the unusual
4317         event something is ignoring SIGPIPE, and might be interpreted
4318         as some sort of failure.  Reported by Bruno Haible.
4319
4320 2009-11-25  Jim Meyering  <meyering@redhat.com>
4321
4322         test-pread: cover failure with ESPIPE and EINVAL
4323         * tests/test-pread.c (main): Test for failure, too.
4324         * tests/test-pread.sh: Invoke with stdin on a pipe.
4325         Suggested by Eric Blake.
4326
4327         pread: improvement and fix
4328         * modules/pread (Depends-on): Depend on lseek, for portability to
4329         e.g., mingw.  Suggested by Eric Blake.
4330         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
4331
4332         unistd.in.h: correct declaration of pread
4333         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
4334         Reported by Richard W.M. Jones.
4335
4336         test-pread.sh: distribute the test script
4337         * modules/pread-tests (Files): Include test-pread.sh.
4338
4339         test-pread.sh: clean up
4340         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
4341         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
4342         That is unnecessary, since it's always ".".
4343         Suggestion from Eric Blake.
4344
4345         test-pread.sh: make executable
4346         * tests/test-pread.sh: Set executable bit.
4347         Reported by Eric Blake.
4348
4349         correct typo in test-pread.sh
4350         * tests/test-pread.sh: Add #! line.
4351
4352         test pread
4353         * tests/test-pread.c: New file.
4354         * tests/test-pread.sh: Likewise.
4355         * modules/pread-tests: Likewise.
4356
4357         pread: new module
4358         * modules/pread: New file.
4359         * lib/unistd.in.h (pread): Define/declare.
4360         * lib/pread.c (pread): New file.
4361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
4362         * modules/unistd (Makefile.am): Substitute witnesses.
4363         * doc/posix-functions/pread.texi (pread): Update.
4364         * MODULES.html.sh: Add pread.
4365
4366 2009-11-25  Jim Meyering  <meyering@redhat.com>
4367
4368         tests/init.sh: new file to be used via most *.sh tests
4369         * tests/init.sh: New file.
4370
4371 2009-11-25  Eric Blake  <ebb9@byu.net>
4372
4373         utimens: work around older Linux failure with symlinks
4374         * lib/utimens.c (lutimensat_works_really): New variable.
4375         (fdutimens, lutimens): Use it to manage kernels that support
4376         nanosecond times on files, but not on symlinks.
4377         Reported by Ondřej Vašík.
4378
4379         utimes: fix configure grammar
4380         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
4381
4382 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
4383
4384         regex: Fix fastmap for multibyte character ranges.
4385         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
4386         characters when a multibyte character range is included.
4387
4388 2009-11-22  Andy Wingo  <wingo@pobox.com>
4389
4390         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
4391         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
4392
4393 2009-11-24  Bruno Haible  <bruno@clisp.org>
4394
4395         doc: Most *_l functions exist in MacOS X 10.5.
4396         * doc/posix-functions/duplocale.texi: Update platforms list.
4397         * doc/posix-functions/freelocale.texi: Likewise.
4398         * doc/posix-functions/newlocale.texi: Likewise.
4399         * doc/posix-functions/uselocale.texi: Likewise.
4400         * doc/posix-functions/isalnum_l.texi: Likewise.
4401         * doc/posix-functions/isalpha_l.texi: Likewise.
4402         * doc/posix-functions/isblank_l.texi: Likewise.
4403         * doc/posix-functions/iscntrl_l.texi: Likewise.
4404         * doc/posix-functions/isdigit_l.texi: Likewise.
4405         * doc/posix-functions/isgraph_l.texi: Likewise.
4406         * doc/posix-functions/islower_l.texi: Likewise.
4407         * doc/posix-functions/isprint_l.texi: Likewise.
4408         * doc/posix-functions/ispunct_l.texi: Likewise.
4409         * doc/posix-functions/isspace_l.texi: Likewise.
4410         * doc/posix-functions/isupper_l.texi: Likewise.
4411         * doc/posix-functions/iswalnum_l.texi: Likewise.
4412         * doc/posix-functions/iswalpha_l.texi: Likewise.
4413         * doc/posix-functions/iswblank_l.texi: Likewise.
4414         * doc/posix-functions/iswcntrl_l.texi: Likewise.
4415         * doc/posix-functions/iswctype_l.texi: Likewise.
4416         * doc/posix-functions/iswdigit_l.texi: Likewise.
4417         * doc/posix-functions/iswgraph_l.texi: Likewise.
4418         * doc/posix-functions/iswlower_l.texi: Likewise.
4419         * doc/posix-functions/iswprint_l.texi: Likewise.
4420         * doc/posix-functions/iswpunct_l.texi: Likewise.
4421         * doc/posix-functions/iswspace_l.texi: Likewise.
4422         * doc/posix-functions/iswupper_l.texi: Likewise.
4423         * doc/posix-functions/iswxdigit_l.texi: Likewise.
4424         * doc/posix-functions/isxdigit_l.texi: Likewise.
4425         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
4426         * doc/posix-functions/strcasecmp_l.texi: Likewise.
4427         * doc/posix-functions/strcoll_l.texi: Likewise.
4428         * doc/posix-functions/strfmon_l.texi: Likewise.
4429         * doc/posix-functions/strftime_l.texi: Likewise.
4430         * doc/posix-functions/strncasecmp_l.texi: Likewise.
4431         * doc/posix-functions/strxfrm_l.texi: Likewise.
4432         * doc/posix-functions/tolower_l.texi: Likewise.
4433         * doc/posix-functions/toupper_l.texi: Likewise.
4434         * doc/posix-functions/towctrans_l.texi: Likewise.
4435         * doc/posix-functions/towlower_l.texi: Likewise.
4436         * doc/posix-functions/towupper_l.texi: Likewise.
4437         * doc/posix-functions/wcscoll_l.texi: Likewise.
4438         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
4439         * doc/posix-functions/wctrans_l.texi: Likewise.
4440         * doc/posix-functions/wctype_l.texi: Likewise.
4441         * doc/glibc-functions/strptime_l.texi: Likewise.
4442         * doc/glibc-functions/strtod_l.texi: Likewise.
4443         * doc/glibc-functions/strtof_l.texi: Likewise.
4444         * doc/glibc-functions/strtol_l.texi: Likewise.
4445         * doc/glibc-functions/strtold_l.texi: Likewise.
4446         * doc/glibc-functions/strtoll_l.texi: Likewise.
4447         * doc/glibc-functions/strtoul_l.texi: Likewise.
4448         * doc/glibc-functions/strtoull_l.texi: Likewise.
4449         * doc/glibc-functions/wcsftime_l.texi: Likewise.
4450         * doc/glibc-functions/wcstod_l.texi: Likewise.
4451         * doc/glibc-functions/wcstof_l.texi: Likewise.
4452         * doc/glibc-functions/wcstol_l.texi: Likewise.
4453         * doc/glibc-functions/wcstold_l.texi: Likewise.
4454         * doc/glibc-functions/wcstoll_l.texi: Likewise.
4455         * doc/glibc-functions/wcstoul_l.texi: Likewise.
4456         * doc/glibc-functions/wcstoull_l.texi: Likewise.
4457
4458 2009-11-24  Bruno Haible  <bruno@clisp.org>
4459
4460         duplocale: Fix logic bug.
4461         * lib/duplocale.c: Don't include <langinfo.h>.
4462         (_NL_LOCALE_NAME): Remove macro.
4463         (rpl_duplocale): Use setlocale instead of nl_langinfo.
4464         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
4465
4466 2009-11-23  Jim Meyering  <meyering@redhat.com>
4467
4468         test-update-copyright: don't hard-code /usr/bin/perl
4469         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
4470         perl to print the current year.  Gilles Espinasse reported that
4471         the replaced use of perl was hard-coded as /usr/bin/perl.
4472
4473 2009-11-23  Bruno Haible  <bruno@clisp.org>
4474
4475         duplocale: Add support for glibc 2.3.x.
4476         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
4477
4478 2009-11-22  Bruno Haible  <bruno@clisp.org>
4479
4480         vasnprintf: Tiny optimization.
4481         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
4482         MacOS X.
4483
4484 2009-11-22  Bruno Haible  <bruno@clisp.org>
4485
4486         Tests for module 'duplocale'.
4487         * modules/duplocale-tests: New file.
4488         * tests/test-duplocale.c: New file.
4489
4490         New module 'duplocale'.
4491         * m4/duplocale.m4: New file.
4492         * lib/locale.in.h (duplocale): New declaration.
4493         * lib/duplocale.c: New file.
4494         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
4495         gl_LOCALE_H_DEFAULTS): New macros.
4496         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
4497         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
4498         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
4499         REPLACE_DUPLOCALE.
4500         * modules/duplocale: New file.
4501         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
4502
4503 2009-11-22  Bruno Haible  <bruno@clisp.org>
4504
4505         * modules/locale-tests (configure.ac): Test for newlocale function.
4506         * tests/test-locale.c: When the system has extended locale functions,
4507         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
4508
4509         locale: Make locale_t available when possible.
4510         * lib/locale.in.h: Include <xlocale.h> when it exists.
4511         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
4512         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
4513         * modules/locale (Depends-on): Add extensions.
4514         (Makefile.am): Also substitute HAVE_XLOCALE_H.
4515         * doc/posix-headers/locale.texi: Document the problem with locale_t.
4516
4517 2009-11-22  Bruno Haible  <bruno@clisp.org>
4518
4519         Add comments.
4520         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
4521         invocation.
4522         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
4523         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4524         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
4525
4526 2009-11-22  Bruno Haible  <bruno@clisp.org>
4527
4528         error: account for the possibility of freopen (stdout).
4529         * lib/error.c: Include <unistd.h>.
4530         (flush_stdout): New function, extracted from error and error_at_line.
4531         Determine stdout's fd dynamically.
4532         (error, error_at_line): Invoke flush_stdout.
4533         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
4534         * modules/error (Depends-on): Add unistd.
4535
4536 2009-11-22  Bruno Haible  <bruno@clisp.org>
4537
4538         diffseq: Add comment.
4539         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
4540
4541 2009-11-22  Jim Meyering  <meyering@redhat.com>
4542
4543         c-stack: avoid defining an unused static function
4544         * lib/c-stack.c (find_stack_direction): Do not define this function
4545         when it will not be used.
4546
4547         diffseq: avoid spurious gcc warnings
4548         * lib/diffseq.h (IF_LINT2): Define.
4549         (compareseq): Use it to initialize two members of "part".
4550         This avoids two used-uninitialized warnings.
4551
4552 2009-11-21  Jim Meyering  <meyering@redhat.com>
4553
4554         c-stack: avoid "ignoring return value of `write'" warning
4555         * lib/c-stack.c: Include "ignore-value.h".
4556         (die): Explicitly ignore each write return value.
4557         * modules/c-stack (Depends-on): Add ignore-value.
4558
4559 2009-11-21  Bruno Haible  <bruno@clisp.org>
4560
4561         diffseq: reduce scope of variable 'best'.
4562         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
4563         variable, earlier used for two different purposes.
4564
4565 2009-11-21  Jim Meyering  <meyering@redhat.com>
4566
4567         diffseq: remove useless assignment to "best"
4568         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
4569         assignment.  At that point "best" is already guaranteed to be zero.
4570
4571 2009-11-20  Eric Blake  <ebb9@byu.net>
4572
4573         build: mention ftp redirector in release announcements
4574         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
4575         values that used to come from cfg.mk; mention FTP redirect URL.
4576         * build-aux/announce-gen: Mention the mirror list.
4577         Suggested by Karl Berry.
4578
4579         nanosleep: improve port to mingw
4580         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
4581         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
4582         LIB_NANOSLEEP, but only when needed.
4583         * modules/select (Link): Document LIBSOCKET.
4584         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
4585         enough.
4586
4587         nanosleep: work around cygwin bug
4588         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
4589         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
4590         bug.
4591         (getnow): Delete, not needed.
4592         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
4593         LIB_CLOCK_GETTIME.
4594         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
4595         clock-time, gettime.
4596         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
4597         bug.
4598         * modules/nanosleep-tests: New test.
4599         * tests/test-nanosleep.c: New file.
4600
4601         sleep: work around cygwin bug
4602         * lib/sleep.c (rpl_sleep): Work around the bug.
4603         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
4604         (gl_PREREQ_SLEEP): Delete unused macro.
4605         * modules/sleep (Depends-on): Add verify.
4606         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
4607         * modules/unistd (Makefile.am): Substitute witness.
4608         * lib/unistd.in.h (sleep): Update prototype.
4609         * doc/posix-functions/sleep.texi (sleep): Document the bug.
4610         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
4611         * modules/sleep-tests (Depends-on): Check for alarm.
4612
4613 2009-11-20  Jim Meyering  <meyering@redhat.com>
4614
4615         maint.mk: improve sc_prohibit_magic_number_exit
4616         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
4617         so it does not match uses like System.exit(1).
4618         Add comments showing how to correct all offenders.
4619
4620 2009-11-19  Eric Blake  <ebb9@byu.net>
4621
4622         xalloc-die-tests: add missing library
4623         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
4624
4625         test-xvasprintf: silence compiler warnings
4626         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
4627         empty string from gcc.
4628
4629 2009-11-19  Jim Meyering  <meyering@redhat.com>
4630
4631         xfreopen: new module, from coreutils
4632         * modules/xfreopen: New module.
4633         * lib/xfreopen.c: New file.
4634         * lib/xfreopen.h: New file.
4635         * MODULES.html.sh (File stream based Input/Output"): Add it.
4636
4637 2009-11-19  Eric Blake  <ebb9@byu.net>
4638
4639         manywarnings: depend on warnings
4640         * modules/manywarnings (Depends-on): Add warnings.
4641
4642         build: avoid compiler warnings
4643         * lib/select.c (rpl_select): Delete unused variable.
4644         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
4645
4646 2009-11-18  Eric Blake  <ebb9@byu.net>
4647
4648         tests: avoid false negative with --with-packager
4649         * tests/test-version-etc.sh: Discard packager information.
4650         * tests/test-argp-version-etc-1.sh: Likewise.
4651         Reported by Mike Frysinger.
4652
4653         utimens: fix regression on Solaris
4654         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
4655         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
4656         can only change fd timestamps via futimesat.  Instead, use an
4657         additional witness macro to avoid BSD bug.
4658         Reported by Jim Meyering.
4659
4660 2009-11-17  Eric Blake  <ebb9@byu.net>
4661
4662         usleep: use it to simplify tests
4663         * modules/stat-time-tests (Depends-on): Add usleep.
4664         (configure.ac): Drop usleep check.
4665         * modules/chown-tests (Depends-on, configure.ac): Likewise.
4666         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
4667         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
4668         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
4669         * modules/openat-tests (Depends-on, configure.ac): Likewise.
4670         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
4671         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
4672         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
4673         Likewise.
4674         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
4675         * tests/test-lchown.h (nap): Likewise.
4676         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
4677         * tests/test-stat-time.c (nap): Likewise.
4678         * tests/test-utimens-common.h (nap): Update comments.
4679
4680         usleep: new module
4681         * modules/usleep: New file.
4682         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
4683         * lib/usleep.c (usleep): Likewise.
4684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
4685         * modules/unistd (Makefile.am): Substitute witnesses.
4686         * lib/unistd.in.h (usleep): Add declaration.
4687         * doc/pastposix-functions/usleep.texi (usleep): Document this.
4688         * MODULES.html.sh (Date and time): Likewise.
4689         * modules/usleep-tests (Depends-on): New test.
4690         * tests/test-usleep.c: New file.
4691
4692         chown: work around OpenBSD bug
4693         * lib/chown.c (rpl_chown): Work around the bug.
4694         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
4695         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
4696         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
4697         * modules/chown (Depends-on): Add stdbool.
4698         * modules/lchown (Depends-on): Likewise.
4699         * doc/posix-functions/chown.texi (chown): Document the bug.
4700         * doc/posix-functions/lchown.texi (lchown): Likewise.
4701         * tests/test-lchown.h (test_chown): Relax test.
4702
4703         mkstemp: avoid conflict with C++ keyword template
4704         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
4705         * lib/mkostemp.c (mkostemp): Likewise.
4706         * lib/mkostemps.c (mkostemps): Likewise.
4707         * lib/mkstemp.c (mkstemp): Likewise.
4708         * lib/mkstemps.c (mkstemps): Likewise.
4709
4710         xalloc-die-tests: optimize
4711         * tests/test-xalloc-die.sh: Reduce number of processes.
4712
4713 2009-11-17  Simon Josefsson  <simon@josefsson.org>
4714
4715         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
4716         patch from ludo@gnu.org (Ludovic Courtès).
4717
4718 2009-11-17  Jim Meyering  <meyering@redhat.com>
4719
4720         version-etc: use proper license string
4721         * modules/version-etc (License): Use LGPL, not LGPLv3+.
4722         * modules/version-etc-fsf: Likewise.
4723
4724 2009-11-17  Simon Josefsson  <simon@josefsson.org>
4725
4726         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
4727         printed to stdout.  Deal with EOL differences.
4728
4729 2009-11-17  Eric Blake  <ebb9@byu.net>
4730
4731         unsetenv: work around Solaris bug
4732         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
4733         * lib/unsetenv.c (rpl_unsetenv): Work around it.
4734         Reported by Jim Meyering.
4735
4736         vasnprintf: avoid compiler warnings
4737         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
4738         variables.
4739         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
4740
4741 2009-11-17  Simon Josefsson  <simon@josefsson.org>
4742
4743         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
4744         settings since xalloc-die is no longer the self test,
4745         xalloc-die.sh is.
4746
4747 2009-11-17  Jim Meyering  <meyering@redhat.com>
4748
4749         test-xalloc-die.sh: make the code agree with the commit log
4750         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
4751         at the end, just in case you happen to have a test-xalloc-die
4752         program in some other PATH directory.
4753
4754         test-xalloc-die.sh: fix a portability bug
4755         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
4756         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
4757         Otherwise, argv[0] (as often seen in diagnostics) would be too
4758         system-dependent, sometimes with, and sometimes without the leading "./".
4759
4760         version-etc-fsf: relax license to LGPLv3+
4761         * modules/version-etc-fsf (License): Relax license.
4762
4763 2009-11-16  Eric Blake  <ebb9@byu.net>
4764
4765         xalloc-die-tests: avoid printing null pointer
4766         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
4767         shell script.
4768         * tests/test-xalloc-die.c (program_name): Declare.
4769         * tests/test-xalloc-die.sh (tmpfiles): New file.
4770
4771         setenv, unsetenv: work around various bugs
4772         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
4773         (setenv) [HAVE_SETENV]: Work around bugs.
4774         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
4775         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
4776         for bugs.
4777         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
4778         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
4779         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
4780         * modules/stdlib (Makefile.am): Update substitutions.
4781         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
4782         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
4783         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
4784         * modules/setenv-tests: New test.
4785         * modules/unsetenv-tests: Likewise.
4786         * tests/test-setenv.c: New file.
4787         * tests/test-unsetenv.c: Likewise.
4788
4789 2009-11-16  Jim Meyering  <meyering@redhat.com>
4790
4791         version-etc: relax license to LGPLv3+
4792         * modules/version-etc (License): Relax license.
4793
4794         better AC_REQUIRE expanded-before-required-warning avoidance
4795         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
4796         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
4797         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
4798         which is no longer needed.
4799
4800 2009-11-16  Eric Blake  <ebb9@byu.net>
4801
4802         test-freading: clean up temporary file
4803         * tests/test-freading.c (main): Remove file on success, and use
4804         ASSERT more liberally.
4805         Reported by Jim Meyering.
4806
4807 2009-11-16  Jim Meyering  <meyering@redhat.com>
4808
4809         avoid new AC_REQUIRE expanded-before-required warnings
4810         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
4811         merely using it.
4812         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
4813         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
4814
4815 2009-11-15  Simon Josefsson  <simon@josefsson.org>
4816
4817         * tests/test-xalloc-die.c: New file.
4818         * modules/xalloc-die-tests: New file.
4819         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
4820         XFAIL_TESTS so it can be appended by modules.
4821
4822 2009-11-15  Simon Josefsson  <simon@josefsson.org>
4823
4824         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
4825         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
4826
4827 2009-11-14  Eric Blake  <ebb9@byu.net>
4828
4829         fnmatch: avoid compiler warning
4830         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
4831         to silence compiler warning about mismatch signedness in ?:.
4832         Reported by Robert Millan.
4833
4834         intprops: add double-inclusion guard
4835         * lib/intprops.h: Allow idempotent includes.
4836         Suggested by Bruce Korb.
4837
4838         openat: detect Solaris fchownat bug
4839         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
4840         penalizing glibc chownat when only lchownat is broken.
4841         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
4842         trailing slash bugs.
4843         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
4844         * modules/openat-tests (Files): Include more files.
4845         (Depends-on): Add mgetgroups, sleep, stat-time.
4846         (configure.ac): Add additional checks.
4847         (Makefile.am): Build new test.
4848         * tests/test-fchownat.c: New file.
4849
4850         lchown: detect Solaris and FreeBSD bug
4851         * lib/lchown.c (rpl_lchown): Work around bug.
4852         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
4853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
4854         * modules/unistd (Makefile.am): Populate it.
4855         * lib/unistd.in.h (lchown): Update declaration.
4856         * doc/posix-functions/lchown.texi (lchown): Document the bug.
4857         * modules/lchown-tests: New file.
4858         * tests/test-lchown.h (test_lchown): Likewise.
4859         * tests/test-lchown.c (main): Likewise.
4860
4861         chown: detect Solaris and FreeBSD bug
4862         * lib/chown.c (rpl_chown): Work around bug.
4863         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
4864         (gl_PREREQ_CHOWN): Delete.
4865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
4866         * modules/unistd (Makefile.am): Populate it.
4867         * lib/unistd.in.h (chown): Update declaration.
4868         * lib/lchown.c (chown): Update client.
4869         * modules/lchown (Depends-on): Add lstat.
4870         * doc/posix-functions/chown.texi (chown): Document the bug.
4871         * doc/posix-functions/getgroups.texi (getgroups): Document
4872         getgroups pitfall.
4873         * modules/chown-tests: New file.
4874         * tests/test-chown.h (test_chown): Likewise.
4875         * tests/test-chown.c (main): Likewise.
4876
4877 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
4878
4879         gnulib-tool: correctly detect absence of m4 directories
4880         * gnulib-tool: Avoid extra newline on data passed to wc -l.
4881
4882 2009-11-14  Jim Meyering  <meyering@redhat.com>
4883
4884         maint.mk: Prohibit inclusion of "xalloc.h" without use.
4885         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
4886
4887 2009-11-14  John W. Eaton  <jwe@gnu.org>
4888
4889         strftime.h: wrap funtion declaration in extern "C" block
4890         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
4891
4892 2009-11-13  Eric Blake  <ebb9@byu.net>
4893
4894         getgroups: avoid compiler warning
4895         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
4896
4897         getgroups: work around FreeBSD bug
4898         * lib/getgroups.c (rpl_getgroups): Work around the bug.
4899         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
4900         * doc/posix-functions/getgroups.texi (getgroups): Document it.
4901         * tests/test-getgroups.c (main): Fix buffer overrun.
4902
4903         getgroups: avoid compilation failure
4904         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
4905         * modules/getgroups (Depends-on): Add stdint.
4906
4907 2009-11-13  Jim Meyering  <meyering@redhat.com>
4908
4909         test-getgroups: avoid compilation failure
4910         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
4911
4912 2009-11-13  Eric Blake  <ebb9@byu.net>
4913
4914         mgetgroups: new module, taken from coreutils
4915         * modules/mgetgroups: New file.
4916         * lib/mgetgroups.h: Likewise.
4917         * lib/mgetgroups.c (mgetgroups): Likewise.
4918         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
4919         * MODULES.html.sh (Users and groups): Mention it.
4920
4921         getgroups: don't expose GETGROUPS_T to user
4922         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
4923         an element at a time if GETGROUPS_T is wrong size.
4924         * lib/getugroups.h (getugroups): Change signature.
4925         * lib/unistd.in.h (getgroups): Likewise.
4926         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
4927         signature needs fixing.
4928         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
4929         AC_TYPE_GETGROUPS.
4930         * modules/group-member (Depends-on): Add getgroups.
4931         * lib/group-member.c (group_info, get_group_info): Use gid_t.
4932         (group_member): Rely on getgroups replacement.
4933         * lib/getugroups.c (getugroups): Use gid_t.
4934         * tests/test-getgroups.c (main): Likewise.
4935         * NEWS: Mention the signature change.
4936         * doc/posix-functions/getgroups.texi (getgroups): Mention the
4937         problem with signature.
4938         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
4939         GETGROUPS_T is still useful for setgroups.
4940
4941         getgroups, getugroups: provide stubs for mingw
4942         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
4943         * lib/getugroups.c (getugroups): Likewise.
4944         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
4945         function.  Modernize replacement scheme.
4946         (gl_PREREQ_GETGROUPS): Delete.
4947         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
4948         * modules/getgroups (configure.ac): Declare witness.
4949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
4950         * modules/unistd (Depends-on): Substitute witness.
4951         * lib/unistd.in.h (getgroups): Declare replacement.
4952
4953         getgroups: avoid calling exit
4954         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
4955         drop xalloc.
4956         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
4957         dependencies.
4958         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
4959         exiting, in the rare case of malloc failure.
4960
4961         getgroups: fix logic error
4962         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
4963         has more than 20 groups.
4964         * modules/getgroups-tests: New test.
4965         * tests/test-getgroups.c: New file.
4966
4967 2009-11-13  Simon Josefsson  <simon@josefsson.org>
4968
4969         * tests/test-base64.c: Improve.
4970
4971 2009-11-13  Simon Josefsson  <simon@josefsson.org>
4972
4973         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
4974         Blake <ebb9@byu.net>.
4975
4976 2009-11-13  Simon Josefsson  <simon@josefsson.org>
4977
4978         * tests/test-xvasprintf.c: Add %s%s related checks.
4979
4980 2009-11-12  Eric Blake  <ebb9@byu.net>
4981
4982         version-etc: match standards.texi style
4983         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
4984         and use <> only for URLs.
4985
4986 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
4987
4988         fts: do not fail on a submount during traversal
4989         * lib/fts.c (fts_build): Read the stat info again after opening
4990         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
4991         Original report at http://bugzilla.redhat.com/501848.
4992
4993 2009-11-12  Jim Meyering  <meyering@redhat.com>
4994
4995         bootstrap: sync from coreutils
4996         * build-aux/bootstrap (bootstrap_epilogue): New function.
4997         Use git_modules_config in one more place.  This make bootstrap's
4998         --gnulib-srcdir option more useful for testing.
4999
5000         bootstrap: generalize autoheader check
5001         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
5002         AC_CONFIG_HEADERS.
5003
5004 2009-11-11  Eric Blake  <ebb9@byu.net>
5005
5006         mkfifoat: use new modules for Solaris and BSD bugs
5007         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
5008         * lib/mkfifoat.c (mknodat): Split...
5009         * lib/mknodat.c (mknodat): ...into new file.
5010         * modules/mkfifoat (Files): Ship new file.
5011         (Depends-on): Add mkfifo, mknod.
5012         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
5013         (Depends-on): Add symlink.
5014         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
5015         redundant with test_mkfifo.h.
5016         (do_mkfifoat, do_mknodat): New helpers.
5017
5018         mknod: new module
5019         * modules/mknod: New file.
5020         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
5021         * lib/mknod.c (mknod): Likewise.
5022         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
5023         defaults.
5024         * modules/sys_stat (Makefile.am): Substitute them.
5025         * lib/sys_stat.in.h (mknod): Declare replacement.
5026         * MODULES.html.sh (Support for systems lacking POSIX:2008):
5027         Document it.
5028         * doc/posix-functions/mknod.texi (mknod): Likewise.
5029         * modules/mknod-tests: New test.
5030         * tests/test-mknod.c: Likewise.
5031
5032         mkfifo: new module
5033         * modules/mkfifo: New file.
5034         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
5035         * lib/mkfifo.c (mkfifo): Likewise.
5036         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
5037         defaults.
5038         * modules/sys_stat (Makefile.am): Substitute them.
5039         * lib/sys_stat.in.h (mkfifo): Declare replacement.
5040         * MODULES.html.sh (Support for systems lacking POSIX:2008):
5041         Document it.
5042         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
5043         * modules/mkfifo-tests: New test.
5044         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
5045         from test-mkfifoat.c.
5046         * tests/test-mkfifo.c: New file.
5047
5048         readlink: detect FreeBSD bug
5049         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
5050         slash on symlink.
5051         * doc/posix-functions/readlink.texi (readlink): Document the bug.
5052         * tests/test-readlink.h (test_readlink): Enhance test.
5053
5054         symlink: detect FreeBSD bug
5055         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
5056         slash on symlink.
5057         * doc/posix-functions/symlink.texi (symlink): Document the bug.
5058         * tests/test-symlink.h (test_symlink): Enhance test.
5059
5060 2009-11-10  Eric Blake  <ebb9@byu.net>
5061
5062         link: detect FreeBSD bug
5063         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
5064         symlink.
5065         * doc/posix-functions/link.texi (link): Document the bug.
5066         * tests/test-link.h (test_link): Enhance test.
5067         * tests/test-linkat.c (main): Update caller.
5068
5069         unlink, remove: detect FreeBSD bug
5070         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
5071         slash on symlink.
5072         * doc/posix-functions/unlink.texi (unlink): Document the bug.
5073         * doc/posix-functions/remove.texi (remove): Likewise.
5074         * tests/test-unlink.h (test_unlink): Enhance test.
5075         * tests/test-remove.c (main): Likewise.
5076
5077 2009-11-09  Eric Blake  <ebb9@byu.net>
5078
5079         rename: detect FreeBSD bug
5080         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
5081         slash on symlink.
5082         * modules/renameat-tests (Depends-on): Add filenamecat.
5083         * tests/test-rename.h (test_rename): Allow one more errno.
5084         * tests/test-renameat.c (main): Likewise.
5085         * doc/posix-functions/rename.texi (rename): Document the bug.
5086
5087         open: detect FreeBSD bug
5088         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
5089         symlink.
5090         * doc/posix-functions/open.texi (open): Document the bug.
5091         * doc/posix-functions/utimes.texi (utimes): Likewise.
5092         * tests/test-open.h (test_open): Add parameters, and test symlink
5093         handling.
5094         * tests/test-open.c (main): Adjust caller.
5095         * tests/test-fcntl-safer.c (main): Likewise.
5096         * modules/open-tests (Depends-on): Add stdbool, symlink.
5097         * modules/fcntl-safer-tests (Depends-on): Likewise.
5098         * tests/test-openat.c (main): Add test-open tests.
5099
5100         stat: detect FreeBSD bug
5101         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
5102         symlink.
5103         * doc/posix-functions/stat.texi (stat): Document the bug.
5104         * tests/test-stat.h (test_stat_func): Add argument.
5105         * tests/test-stat.c (main): Adjust caller.
5106         * tests/test-fstatat.c (main): Likewise.
5107         * modules/stat-tests (Depends-on): Add stdbool, symlink.
5108         Reported by Jim Meyering.
5109
5110 2009-11-09  James Youngman  <jay@gnu.org>
5111
5112         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
5113         * lib/strftime.c: Correct placement of #include "ignore-value.h".
5114
5115 2009-11-08  Jim Meyering  <meyering@redhat.com>
5116
5117         utimens: remove invalid futimesat call
5118         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
5119         It used the file descriptor of the target file as the DIR_FD
5120         parameter and NULL as the file name.  That caused failure with
5121         errno == EFAULT on FreeBSD-8.0-rc2
5122
5123 2009-11-07  Eric Blake  <ebb9@byu.net>
5124
5125         fflush, freadseek: use fseeko, not fseek
5126         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
5127         (clear_ungetc_buffer): Avoid potential problems on large files.
5128         * lib/freadseek.c (freadseek): Likewise.
5129         * modules/freadseek (Depends-on): Add fseeko.
5130         * modules/fseek (configure.ac): Set a witness.
5131         * tests/test-fflush.c (main): Use fseeko.
5132         * tests/test-fpurge.c (fseek): Disable link warning.
5133         * tests/test-freadable.c (fseek): Likewise.
5134         * tests/test-freading.c (fseek): Likewise.
5135         * tests/test-fseeko.c (fseek): Likewise.
5136         * tests/test-ftell.c (fseek): Likewise.
5137         * tests/test-ftello.c (fseek): Likewise.
5138         * tests/test-fwritable.c (fseek): Likewise.
5139         * tests/test-fwriting.c (fseek): Likewise.
5140
5141 2009-11-06  Simon Josefsson  <simon@josefsson.org>
5142
5143         * modules/memchr (Depends-on): Drop getpagesize dependency.
5144
5145 2009-11-06  Simon Josefsson  <simon@josefsson.org>
5146
5147         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
5148         Reported by Ludovic Courtès.
5149         * build-aux/pmccabe2html: Improve example usage.
5150         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
5151
5152 2009-11-06  Jim Meyering  <meyering@redhat.com>
5153
5154         do-release-commit-and-tag: New module.
5155         Automate the release-commit and tag process.
5156         * build-aux/do-release-commit-and-tag: New script, from coreutils.
5157         * modules/do-release-commit-and-tag: New file.
5158         * MODULES.html.sh (Support for maintaining and releasing): Add it.
5159
5160 2009-11-06  Simon Josefsson  <simon@josefsson.org>
5161
5162         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
5163         because test-select.c uses inet_pton.
5164
5165 2009-11-06  Simon Josefsson  <simon@josefsson.org>
5166
5167         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
5168         GETADDRINFO_LIB.  Bump serial number.
5169         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
5170         Suggested by Eric Blake <ebb9@byu.net>.
5171
5172 2009-11-05  Eric Blake  <ebb9@byu.net>
5173
5174         strtod: detect darwin bug
5175         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
5176         Reported by Leo Davis.
5177
5178         freopen-safer: new module
5179         * modules/freopen-safer: New module.
5180         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
5181         * lib/freopen-safer.c (freopen_safer): New file.
5182         * lib/stdio-safer.h (freopen_safer): New declaration.
5183         * lib/stdio--.h (freopen): New override.
5184         * MODULES.html.sh (File stream based Input/Output): Mention it.
5185         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
5186         freopen-safer module.
5187         * doc/posix-functions/stderr.texi (stderr): Likewise.
5188         * doc/posix-functions/stdin.texi (stdin): Likewise.
5189         * doc/posix-functions/stdout.texi (stdout): Likewise.
5190         * modules/freopen-safer-tests: New test.
5191         * tests/test-reopen-safer.c: New file.
5192
5193 2009-11-05  Jim Meyering  <meyering@redhat.com>
5194
5195         maint.mk: Prohibit inclusion of "close-stream.h" without use.
5196         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
5197
5198 2009-11-05  Simon Josefsson  <simon@josefsson.org>
5199
5200         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
5201
5202 2009-11-05  Simon Josefsson  <simon@josefsson.org>
5203
5204         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
5205
5206 2009-11-05  Simon Josefsson  <simon@josefsson.org>
5207
5208         Fix link error.
5209         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
5210         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
5211
5212 2009-11-05  Simon Josefsson  <simon@josefsson.org>
5213
5214         * tests/test-func.c: Also test value of __func__.
5215
5216 2009-11-05  Simon Josefsson  <simon@josefsson.org>
5217
5218         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
5219         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
5220
5221 2009-11-05  Bruno Haible  <bruno@clisp.org>
5222
5223         Fix link error.
5224         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
5225         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
5226         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
5227
5228 2009-11-05  Bruno Haible  <bruno@clisp.org>
5229
5230         Tests for module 'inet_pton'.
5231         * modules/inet_pton-tests: New file.
5232         * tests/test-inet_pton.c: New file.
5233
5234 2009-11-05  Bruno Haible  <bruno@clisp.org>
5235
5236         Tests for module 'inet_ntop'.
5237         * modules/inet_ntop-tests: New file.
5238         * tests/test-inet_ntop.c: New file.
5239
5240 2009-11-04  Eric Blake  <ebb9@byu.net>
5241
5242         stdlib-safer: wrap all mkstemp variants
5243         * modules/mkostemp (configure.ac): Set witness.
5244         * modules/mkostemps (configure.ac): Likewise.
5245         * modules/mkstemps (configure.ac): Likewise.
5246         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
5247         (mkstemps_safer): Wrap more functions.
5248         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
5249         wrapping.
5250         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
5251         (mkstemps_safer): Implement the wrappers.
5252
5253         mkstemps, mkostemps: new modules
5254         * modules/mkostemps: New module.
5255         * modules/mkstemps: Likewise.
5256         * lib/mkostemps.c (mkostemps): New file.
5257         * lib/mkstemps.c (mkstemps): Likewise.
5258         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
5259         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
5260         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
5261         * modules/stdlib (Makefile.am): Substitute them.
5262         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
5263         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
5264         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
5265         * doc/gnulib.texi (Glibc stdlib.h): Include them.
5266         * MODULES.html.sh (File system functions): Mention them.
5267
5268         tempname: resync from glibc
5269         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
5270         same values for __GT_FILE as glibc.  Abort even when assertions
5271         are disabled.
5272         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
5273         match its value otherwise.  Allow idempotent inclusion.
5274         * lib/mkdtemp.c (mkdtemp): Adjust caller.
5275         * lib/mkostemp.c (mkostemp): Likewise.
5276         * lib/mkstemp.c (mkstemp): Likewise.
5277         * lib/tmpfile.c (tmpfile): Likewise.
5278         * NEWS: Document this.
5279
5280         utimens: fix use of futimens on older Linux
5281         * lib/utimens.c (fdutimens): Use updated, rather than original,
5282         timespec to avoid bug in older Linux kernel.
5283         Reported by Simon Josefsson.
5284
5285 2009-11-04  Bruno Haible  <bruno@clisp.org>
5286
5287         Make num_processors more flexible and consistent.
5288         * lib/nproc.h (enum nproc_query): New type.
5289         (num_processors): Add a 'query' argument.
5290         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
5291         (num_processors): Add a 'query' argument. Test the value of the
5292         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
5293         mingw, count the number of CPUs available for the current process.
5294         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
5295         Check for sched_getaffinity and sched_getaffinity_np.
5296         * modules/nproc (Depends-on): Add c-ctype, extensions.
5297         * NEWS: Mention the change.
5298
5299 2009-11-03  Bruno Haible  <bruno@clisp.org>
5300
5301         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
5302
5303 2009-11-03  Jim Meyering  <meyering@redhat.com>
5304
5305         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
5306         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
5307         if it is defined.
5308
5309 2009-11-02  Eric Blake  <ebb9@byu.net>
5310
5311         mktime, timegm: share common declaration
5312         * lib/mktime-internal.h: New file.
5313         * lib/mktime.c: Use it rather than open-coding a declaration.
5314         * lib/timegm.c: Likewise.
5315         * modules/mktime (Files): Ship it.
5316         * modules/timegm (Files): Likewise.
5317         Suggested by Bruno Haible.
5318
5319         test-update-copyright: update test to match script changes
5320         * tests/test-update-copyright.sh: Avoid hard-coding perl
5321         location.  Don't update *.bak created by earlier runs.
5322
5323 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
5324             Simon Josefsson  <simon@josefsson.org>
5325             Bruno Haible  <bruno@clisp.org>
5326
5327         Fix link error on Solaris 8.
5328         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
5329         also in libnsl. Define also INET_PTON_LIB.
5330         * modules/inet_pton (Link): New section.
5331
5332 2009-11-02  Simon Josefsson  <simon@josefsson.org>
5333             Bruno Haible  <bruno@clisp.org>
5334
5335         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
5336         * modules/inet_ntop (Link): New section.
5337         Reported by Boyan Kasarov <bkasarov@gmail.com>.
5338
5339 2009-11-02  Eric Blake  <ebb9@byu.net>
5340
5341         maint: avoid compiler warnings in m4 macros
5342         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
5343         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
5344
5345 2009-11-02  Simon Josefsson  <simon@josefsson.org>
5346
5347         * m4/pmccabe2html.m4: Remove file.
5348         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
5349         function.  Change maintainer.
5350         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
5351         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
5352         Courtès).
5353
5354 2009-10-31  Eric Blake  <ebb9@byu.net>
5355
5356         fseeko: fix m4 regression
5357         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
5358         regression from 2009-10-27.
5359         Reported by Ralf Wildenhues.
5360
5361 2009-10-31  Jim Meyering  <meyering@redhat.com>
5362
5363         inttostr: aesthetics and improved (compile-time) safety
5364         Define inttype_is_signed rather than inttype_is_unsigned,
5365         since the sole use is via "#if inttype_is_signed".
5366         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
5367         inttype_is_unsigned.
5368         * lib/offtostr.c (inttype_is_signed): Likewise.
5369         * lib/uinttostr.c (inttype_is_signed): Likewise.
5370         * lib/umaxtostr.c (inttype_is_signed): Likewise.
5371         * lib/inttostr.c (inttostr): Use verify to cross-check the
5372         inttype_is_signed value and the signedness of the actual type.
5373         * modules/inttostr (Depends-on): Add verify.
5374
5375 2009-10-30  Eric Blake  <ebb9@byu.net>
5376
5377         build: avoid compiler warnings
5378         * lib/fchmodat.c (lchmod): Mark unused variables.
5379         * lib/getopt.c (_getopt_initialize): Likewise.
5380         * lib/mktime.c (__mktime_internal): Provide prototype.
5381         * lib/inttostr.c (inttostr): Avoid compiler warning even with
5382         older gcc that do not understand #pragma GCC diagnostic.
5383         * lib/uinttostr.c (inttype_is_unsigned): Define.
5384         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
5385
5386 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
5387
5388         stat: fix compilation on AIX
5389         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
5390         only see struct stat64.
5391
5392 2009-10-30  Eric Blake  <ebb9@byu.net>
5393
5394         exclude: make more robust
5395         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
5396         rather than masking a coding bug.
5397         Suggested by Bruno Haible.
5398
5399 2009-10-30  Jim Meyering  <meyering@redhat.com>
5400
5401         perl scripts: remove #!/usr/bin/perl in favor of more portable...
5402         Rather than putting #!/usr/bin/perl on the first line,
5403         start with a variant of what's recommended by "man perlrun" that
5404         invokes the first "perl" program from your shell's search path.
5405         * build-aux/gitlog-to-changelog: Replace #!... as above.
5406         Add a "Local Variables" perl mode setting.
5407         Prompted by a patch from Ludovic Courtès.
5408         Improved by Eric Blake.
5409         * build-aux/useless-if-before-free: Likewise.
5410         * build-aux/announce-gen: Likewise.
5411         * build-aux/update-copyright: Likewise.
5412
5413 2009-10-29  Eric Blake  <ebb9@byu.net>
5414
5415         filenamecat-lgpl: adjust clients
5416         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
5417         filenamecat.
5418         * modules/renameat (Depends-on): Likewise.
5419
5420         filenamecat: split into filenamecat-lgpl
5421         * modules/filenamecat-lgpl: New module.
5422         * modules/filenamecat (Files): Move library-safe files into
5423         filenamecat-lgpl.
5424         (Depends-on): Add filenamecat-lgpl.
5425         (configure.ac): Declare witness.
5426         * lib/filenamecat.h (file_name_concat): Only declare when using
5427         GPL module.
5428         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
5429         Move...
5430         * lib/filenamecat-lgpl.c: ...into new file.
5431         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
5432         (gl_FILE_NAME_CONCAT): Use it.
5433         * MODULES.html.sh (File system functions): Mention new module.
5434
5435         argp: avoid memory leak
5436         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
5437         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
5438         base_name, since the latter malloc()s and can call exit().
5439         Leak introduced 2006-07-03.
5440
5441         dirname-lgpl: adjust clients that don't need full dirname
5442         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
5443         * modules/filenamecat (Depends-on): Likewise.
5444         * modules/linkat (Depends-on): Likewise.
5445         * modules/mkancesdirs (Depends-on): Likewise.
5446         * modules/mkdir (Depends-on): Likewise.
5447         * modules/openat (Depends-on): Likewise.
5448         * modules/savewd (Depends-on): Likewise.
5449         * modules/rename (Depends-on): Likewise.
5450         (License): Relax license.
5451         * modules/mkdir-tests (Depends-on): Drop progname.
5452         (Makefile.am): Delete unneeded LDADD.
5453         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
5454
5455         dirname: split into dirname-lgpl
5456         * modules/dirname-lgpl: New module.
5457         * modules/dirname (Files): Move library-safe files into
5458         dirname-lgpl.
5459         (Depends-on): Add dirname-lgpl.
5460         (configure.ac): Declare witness.
5461         * modules/double-slash-root (License): Relax license.
5462         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
5463         module.
5464         * lib/dirname.c (dir_len, mdir_name): Move...
5465         * lib/dirname-lgpl.c: ...into new file.
5466         * lib/basename.c (last_component, base_len): Move...
5467         * lib/basename-lgpl.c: ...into new file.
5468         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
5469         (gl_DIRNAME): Use it.
5470         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
5471         Mention new module.
5472         * modules/dirname-tests (Depends-on): Add progname.
5473         * tests/test-dirname.c (program_name): Delete.
5474
5475         mkdir: make safe for libraries
5476         * modules/mkdir (Depends-on): Drop xalloc.
5477         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
5478         exit.
5479
5480         tests: avoid some compiler warnings
5481         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
5482         literals.
5483         * tests/test-memchr.c (main): Avoid type mismatch.
5484         * tests/test-arpa_inet.c (main): Avoid unused parameters.
5485         * tests/test-base64.c (main): Likewise.
5486         * tests/test-getdelim.c (main): Likewise.
5487         * tests/test-gethostname.c (main): Likewise.
5488         * tests/test-getline.c (main): Likewise.
5489         * tests/test-netinet_in.c (main): Likewise.
5490         * tests/test-select.c (open_server_socket, main): Likewise.
5491         * tests/test-select-stdin.c (main): Likewise.
5492         * tests/test-sockets.c (main): Likewise.
5493         * tests/test-strsignal.c (main): Likewise.
5494         * tests/test-sys_select.c (main): Likewise.
5495         * tests/test-sys_socket.c (main): Likewise.
5496         * tests/test-u64.c (main): Likewise.
5497         * tests/test-xfprintf-posix.c (main): Likewise.
5498         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
5499
5500         sockets: avoid compiler warning
5501         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
5502
5503         maint: detect usage(1) and other suspicious exits
5504         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
5505
5506 2009-10-29  Jim Meyering  <meyering@redhat.com>
5507
5508         timespec: long-to-int truncation could make timespec_cmp malfunction
5509         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
5510         a multiple of 2^32 nanoseconds as no difference.
5511
5512 2009-10-28  Jim Meyering  <meyering@redhat.com>
5513
5514         fprintftime: wrap macro code argument in "do {...} while(0)"
5515         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
5516         cpy macro must be a statement that can be followed by a semicolon.
5517         Now that the else clause contains a comment and is hence longer
5518         than one line, I require curly braces.  That in turn requires
5519         that we wrap this code block in the standard do...while(0).
5520
5521         fprintftime: remove stray semicolon from previous change
5522         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
5523
5524         fprintftime: avoid a warning about ignored fwrite return value
5525         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
5526         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
5527         that is unsafe.
5528         * modules/fprintftime (Depends-on): Add ignore-value.
5529
5530         exclude: avoid an unwarranted warning
5531         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
5532
5533 2009-10-27  Eric Blake  <ebb9@byu.net>
5534
5535         fseek: avoid compilation failure when fflush is replaced
5536         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
5537         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
5538         module is in use.
5539         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
5540         module is not in use; since REPLACE_FSEEK worked otherwise.
5541         (GNULIB_FTELLO): Likewise for ftell.
5542         Reported by Ian Beckwith and others.
5543
5544 2009-10-27  Bruno Haible  <bruno@clisp.org>
5545
5546         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
5547         Reported by Jim Meyering.
5548
5549 2009-10-27  Jim Meyering  <jim@meyering.net>
5550             Bruno Haible  <bruno@clisp.org>
5551
5552         Avoid warning despite dropping the return value of fwrite.
5553         * lib/unicodeio.c: Include ignore-value.h.
5554         (fwrite_success_callback): Explicitly ignore fwrite's return value.
5555         * modules/unicodeio (Depends-on): Add ignore-value.
5556
5557 2009-10-26  Eric Blake  <ebb9@byu.net>
5558
5559         areadlinkat: fix fallback path
5560         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
5561         pointer and zero.
5562
5563 2009-10-22  Pádraig Brady  <P@draigBrady.com>
5564
5565         Use a better IO block size for modern systems
5566         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
5567         * lib/md2.c: Likewise.
5568         * lib/md4.c: Likewise.
5569         * lib/md5.c: Likewise.
5570         * lib/sha1.c: Likewise.
5571         * lib/sha256.c: Likewise.
5572         * lib/sha512.c: Likewise.
5573
5574 2009-10-22  Eric Blake  <ebb9@byu.net>
5575
5576         tests: avoid several compiler warnings
5577         * tests/test-getcwd.c (main): Avoid buffer underflow.
5578         * tests/test-getdate.c (main): String literals are not safe with
5579         putenv, so use setenv.  Declare unused argument.
5580         * modules/getdate-tests (Depends-on): Add setenv.
5581         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
5582         problems with string literals in char *.
5583         * tests/test-hash.c (main): Avoid shadowing declaration.
5584         (insert_new): Treat string literals as char const *.
5585         * tests/test-getopt.h (test_getopt): Likewise.
5586         (getopt_loop): Alter types to minimize casting elsewhere.
5587         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
5588         (test_getopt_long_posix): Likewise.
5589         (do_getopt_long): Add wrapper to minimize casting.
5590         * tests/test-atexit.c (clear_temp_file): Use void.
5591         * tests/test-areadlink-with-size.c (main): Declare unused
5592         arguments.
5593         * tests/test-areadlink.c (main): Likewise.
5594         * tests/test-areadlinkat-with-size.c (main): Likewise.
5595         * tests/test-areadlinkat.c (main): Likewise.
5596         * tests/test-canonicalize-lgpl.c (main): Likewise.
5597         * tests/test-canonicalize.c (main): Likewise.
5598         * tests/test-dirent-safer.c (main): Likewise.
5599         * tests/test-dirname.c (main): Likewise.
5600         * tests/test-dup2.c (main): Likewise.
5601         * tests/test-fchdir.c (main): Likewise.
5602         * tests/test-fcntl-h.c (main): Likewise.
5603         * tests/test-fcntl-safer.c (main): Likewise.
5604         * tests/test-fdopendir.c (main): Likewise.
5605         * tests/test-fdutimensat.c (main): Likewise.
5606         * tests/test-fflush.c (main): Likewise.
5607         * tests/test-filenamecat.c (main): Likewise.
5608         * tests/test-filevercmp.c (main): Likewise.
5609         * tests/test-fopen-safer.c (main): Likewise.
5610         * tests/test-fopen.c (main): Likewise.
5611         * tests/test-fpending.c (main): Likewise.
5612         * tests/test-fpurge.c (main): Likewise.
5613         * tests/test-freading.c (main): Likewise.
5614         * tests/test-fstatat.c (main): Likewise.
5615         * tests/test-fsync.c (main): Likewise.
5616         * tests/test-futimens.c (main): Likewise.
5617         * tests/test-getndelim2.c (main): Likewise.
5618         * tests/test-gettimeofday.c (main): Likewise.
5619         * tests/test-getopt.c (main): Likewise.
5620         * tests/test-i-ring.c (main): Likewise.
5621         * tests/test-inttypes.c (main): Likewise.
5622         * tests/test-link.c (main): Likewise.
5623         * tests/test-lstat.c (main): Likewise.
5624         * tests/test-math.c (main): Likewise.
5625         * tests/test-md5.c (main): Likewise.
5626         * tests/test-memchr2.c (main): Likewise.
5627         * tests/test-memrchr.c (main): Likewise.
5628         * tests/test-mkdir.c (main): Likewise.
5629         * tests/test-mkdirat.c (main): Likewise.
5630         * tests/test-mkfifoat.c (main): Likewise.
5631         * tests/test-open.c (main): Likewise.
5632         * tests/test-openat-safer.c (main): Likewise.
5633         * tests/test-openat.c (main): Likewise.
5634         * tests/test-quotearg.c (main): Likewise.
5635         * tests/test-rawmemchr.c (main): Likewise.
5636         * tests/test-readlink.c (main): Likewise.
5637         * tests/test-remove.c (main): Likewise.
5638         * tests/test-rename.c (main): Likewise.
5639         * tests/test-renameat.c (main): Likewise.
5640         * tests/test-rmdir.c (main): Likewise.
5641         * tests/test-sha1.c (main): Likewise.
5642         * tests/test-signal.c (main): Likewise.
5643         * tests/test-sigaction.c (main): Likewise.
5644         * tests/test-stat.c (main): Likewise.
5645         * tests/test-stat-time.c (main): Likewise.
5646         * tests/test-stddef.c (main): Likewise.
5647         * tests/test-stdint.c (main): Likewise.
5648         * tests/test-stdio.c (main): Likewise.
5649         * tests/test-stdlib.c (main): Likewise.
5650         * tests/test-strchrnul.c (main): Likewise.
5651         * tests/test-strerror.c (main): Likewise.
5652         * tests/test-string.c (main): Likewise.
5653         * tests/test-strtod.c (main): Likewise.
5654         * tests/test-strverscmp.c (main): Likewise.
5655         * tests/test-symlink.c (main): Likewise.
5656         * tests/test-symlinkat.c (main): Likewise.
5657         * tests/test-sys_stat.c (main): Likewise.
5658         * tests/test-sys_time.c (main): Likewise.
5659         * tests/test-time.c (main): Likewise.
5660         * tests/test-unistd.c (main): Likewise.
5661         * tests/test-unlink.c (main): Likewise.
5662         * tests/test-unlinkat.c (main): Likewise.
5663         * tests/test-utimens.c (main): Likewise.
5664         * tests/test-utimensat.c (main): Likewise.
5665         * tests/test-version-etc.c (main): Likewise.
5666         * tests/test-wchar.c (main): Likewise.
5667         * tests/test-wctype.c (main): Likewise.
5668         * tests/test-xprintf-posix.c (main): Likewise.
5669         * tests/test-posixtm.c (main): Likewise.
5670         (STREQ): Delete unused macro.
5671         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
5672         shadowed variables.
5673         * tests/test-memchr.c (main): Likewise.
5674
5675 2009-10-21  Eric Blake  <ebb9@byu.net>
5676
5677         areadlinkat: avoid failure on older glibc
5678         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
5679         rather than mis-comparing 0 against FUNC_RESULT of char*.
5680
5681 2009-10-21  Bruno Haible  <bruno@clisp.org>
5682
5683         * modules/stpncpy (License): Relicense under LGPLv2+.
5684         Reported by David Lutterkort <lutter@redhat.com>.
5685
5686 2009-10-20  Eric Blake  <ebb9@byu.net>
5687
5688         utimensat: work around Solaris 9 bug
5689         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
5690         has trailing slash bugs.
5691         * tests/test-lutimens.h (test_lutimens): Enhance test.
5692         * tests/test-utimens.h (test_utimens): Likewise.
5693         * doc/posix-functions/utime.texi (utime): Enhance documentation.
5694         * doc/posix-functions/utimes.texi (utimes): Likewise.
5695         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5696         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
5697         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
5698         * doc/posix-functions/futimens.texi (futimens): Likewise.
5699
5700         fdutimensat: new module
5701         * modules/fdutimensat: New file.
5702         * lib/fdutimensat.c (fdutimensat): Likewise.
5703         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
5704         * MODULES.html.sh (File system functions): Mention module.
5705         * modules/fdutimensat-tests: New test.
5706         * tests/test-fdutimensat.c: Likewise.
5707
5708         doc: regenerate INSTALL
5709         * doc/INSTALL: Reflect recent autoconf update.
5710         * doc/INSTALL.ISO: Likewise.
5711         * doc/INSTALL.UTF-8: Likewise.
5712
5713 2009-10-20  Pádraig Brady  <P@draigBrady.com>
5714
5715         acl: warn if ACL support is not detected
5716         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
5717
5718 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
5719
5720         * lib/nproc.h: Add extern "C" block for C++.
5721
5722 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
5723             Bruno Haible  <bruno@clisp.org>
5724
5725         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
5726         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
5727         * doc/posix-functions/isalpha.texi: Likewise.
5728         * doc/posix-functions/isblank.texi: Likewise.
5729         * doc/posix-functions/iscntrl.texi: Likewise.
5730         * doc/posix-functions/isdigit.texi: Likewise.
5731         * doc/posix-functions/isgraph.texi: Likewise.
5732         * doc/posix-functions/islower.texi: Likewise.
5733         * doc/posix-functions/isprint.texi: Likewise.
5734         * doc/posix-functions/ispunct.texi: Likewise.
5735         * doc/posix-functions/isspace.texi: Likewise.
5736         * doc/posix-functions/isupper.texi: Likewise.
5737         * doc/posix-functions/isxdigit.texi: Likewise.
5738
5739 2009-10-18  Bruno Haible  <bruno@clisp.org>
5740
5741         Tests for module 'isblank'.
5742         * modules/isblank-tests: New file.
5743         * tests/test-isblank.c: New file.
5744
5745         New module 'isblank'.
5746         * lib/isblank.c: New file.
5747         * m4/isblank.m4: New file.
5748         * modules/isblank: New file.
5749         * doc/posix-functions/isblank.texi: Mention the new module.
5750
5751 2009-10-18  Bruno Haible  <bruno@clisp.org>
5752
5753         New module 'ctype'.
5754         * lib/ctype.in.h: New file.
5755         * m4/ctype.m4: New file.
5756         * modules/ctype: New file.
5757         * doc/posix-headers/ctype.texi: Mention the new module.
5758
5759 2009-10-18  Jim Meyering  <meyering@redhat.com>
5760
5761         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
5762         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
5763         right after its initialization, rather than farther down.
5764         Keeping these in close proximity makes it easier to ensure
5765         that each such variable is initialized.  E.g.,
5766
5767             LIB_CLOCK_GETTIME=
5768             AC_SUBST([LIB_CLOCK_GETTIME])
5769
5770         This change also increments these serial numbers.
5771         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
5772         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
5773         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5774
5775 2009-10-18  Bruno Haible  <bruno@clisp.org>
5776
5777         Don't let environment variables perturb build.
5778         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
5779         (gl_PREREQ_GETHRXTIME): ... not here.
5780
5781 2009-10-18  Bruno Haible  <bruno@clisp.org>
5782
5783         Avoid symlink attack in localcharset module.
5784         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
5785         (O_NOFOLLOW): Define fallback.
5786         (get_charset_aliases): Don't open the file if it is a symbolic link.
5787         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
5788         gl_FCNTL_H.
5789         (gl_FCNTL_H): Require it.
5790         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
5791         * modules/localcharset (Files): Add m4/fcntl_h.m4.
5792         Reported by Fergal Glynn <fglynn@veracode.com>.
5793
5794 2009-10-18  Bruno Haible  <bruno@clisp.org>
5795
5796         Implement nproc for mingw.
5797         * lib/nproc.c: Include <windows.h>
5798         (num_processors): On native Windows platforms, try GetSystemInfo.
5799
5800 2009-10-18  Bruno Haible  <bruno@clisp.org>
5801
5802         Implement nproc for IRIX.
5803         * lib/nproc.c: Include <sys/sysmp.h>.
5804         (num_processors): On IRIX systems, try sysmp.
5805         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
5806
5807 2009-10-18  Bruno Haible  <bruno@clisp.org>
5808
5809         Implement nproc for HP-UX.
5810         * lib/nproc.c: Include <sys/pstat.h>
5811         (num_processors): On HP-UX systems, try pstat_getdynamic.
5812         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
5813         pstat_getdynamic.
5814
5815 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
5816             Bruno Haible  <bruno@clisp.org>
5817
5818         Implement nproc for NetBSD, OpenBSD.
5819         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
5820         (ARRAY_SIZE): New macro.
5821         (num_processors): On BSD systems, try sysctl of HW_NCPU.
5822         * m4/nproc.m4: New file.
5823         * modules/nproc (Files): Add m4/nproc.m4.
5824         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
5825         (Makefile.am): Instead, augment lib_SOURCES.
5826
5827 2009-10-18  Bruno Haible  <bruno@clisp.org>
5828
5829         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
5830         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
5831         sys/param.h.
5832
5833 2009-10-16  Eric Blake  <ebb9@byu.net>
5834
5835         utimensat: new module
5836         * modules/utimensat: New file.
5837         * lib/utimensat.c (utimensat): Likewise.
5838         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5839         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
5840         so we can work around Linux bugs.
5841         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
5842         * modules/sys_stat (Makefile.am): Substitute them.
5843         * lib/sys_stat.in.h (utimensat): Declare it.
5844         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
5845         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5846         * modules/utimensat-tests: New test.
5847         * tests/test-utimensat.c: Likewise.
5848
5849         utimens: let lutimens work on non-symlinks
5850         * lib/utimens.c (lutimens): Fall back to utimens rather than
5851         failing with ENOSYS, when file is not a symlink.
5852         (utimens): Reduce redirection.
5853         * tests/test-lutimens.h (test_lutimens): Update test to cover
5854         non-symlinks.
5855         * tests/test-utimens.h (test_utimens): Update test to cover
5856         symlinks.
5857         * tests/test-utimens.c (main): Update caller.
5858
5859         utimens: cache whether utimensat syscall works
5860         * lib/utimens.c (utimensat_works_really): New cache variable.
5861         (fdutimens, lutimens): Use it to avoid failing syscall.
5862
5863         test-stat-time, test-utimens: improve portability
5864         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
5865         ext4 on alpha, and for cygwin.
5866         * tests/test-utimens-common.h: New file.
5867         (nap): Factor delays into single function.
5868         * tests/test-lutimens.h (test_lutimens): Use new header.
5869         * tests/test-futimens.h (test_futimens): Likewise.
5870         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
5871         timestamps to occur from same machine, as was done previously for
5872         test_utimens.
5873         * modules/utimens-tests (Files): Ship new file.
5874         * modules/futimens-tests (Files): Likewise.
5875         Reported in part by Jim Meyering.
5876
5877         sys_stat: sort replacement declarations
5878         * lib/sys_stat.in.h: Sort declarations.
5879         * lib/futimens.c (futimens): Fix typo.
5880
5881 2009-10-15  Jim Meyering  <meyering@redhat.com>
5882
5883         don't let environment settings perturb build
5884         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
5885         could cause a configure-time and/or build-time malfunction.
5886         Typically, a configure-time function-in-library test is performed
5887         via code like this:
5888
5889           LIB_VAR=
5890           AC_SUBST([LIB_VAR])
5891           prefix_saved_LIBS=$LIBS
5892             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
5893                        [test "$ac_cv_search_FUNC" = "none required" ||
5894                         LIB_VAR=$ac_cv_search_FUNC])
5895           LIBS=$prefix_saved_LIBS
5896
5897         However, in each of the files affected by this change, the LIB_VAR=
5898         initialization was omitted.  Thus, when set in the environment, its
5899         value would propagate into generated Makefiles when FUNC is not found
5900         in LIB_NAME.
5901         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
5902         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
5903         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5904
5905 2009-10-14  Eric Blake  <ebb9@byu.net>
5906
5907         fchdir: avoid infinite recursion in mingw
5908         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
5909         recursing.
5910
5911         test-stat-time: port to mingw
5912         * tests/test-stat-time.c (force_unlink): Return a value.
5913         (test_ctime) [W32]: Fix compilation error.
5914         (nap): Don't call usleep with too large an argument.  Use
5915         force_unlink.
5916         * doc/pastposix-functions/usleep.texi (usleep): Document the
5917         portability issue.
5918
5919 2009-10-13  Jim Meyering  <meyering@redhat.com>
5920
5921         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
5922         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
5923         * modules/pipe-filter-ii: Likewise.
5924         * modules/sys_socket-tests: Likewise.
5925         * modules/tsearch-tests: Likewise.
5926         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
5927         (check): Depend on it.
5928
5929 2009-10-12  Eric Blake  <ebb9@byu.net>
5930
5931         utimens-tests: port to NFS file systems
5932         * tests/test-utimens.h (test_utimens): Refactor utimecmp
5933         comparisons to avoid spurious failures from timestamp drift
5934         between NFS machines.
5935
5936 2009-10-12  Eric Blake  <ebb9@byu.net>
5937
5938         stat-time-tests: minor cleanups
5939         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
5940         * tests/test-stat-time.c (nap): Separate assignment from call.
5941         Suggested by Paolo Bonzini and Bruno Haible.
5942
5943         sys_stat: guarantee struct timespec
5944         * lib/sys_stat.in.h (includes): Always include <time.h>
5945         * modules/sys_stat (Depends-on): Add time.
5946         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
5947         mode_t permission values.
5948         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
5949         get at subsecond timestamps.
5950
5951 2009-10-10  Eric Blake  <ebb9@byu.net>
5952
5953         futimens: new module
5954         * modules/futimens: New file.
5955         * lib/futimens.c (futimens): Likewise.
5956         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
5957         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
5958         we can work around Linux bugs.
5959         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
5960         * modules/sys_stat (Makefile.am): Substitute them.
5961         * lib/sys_stat.in.h (futimens): Declare it.
5962         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
5963         * doc/posix-functions/futimens.texi (futimens): Likewise.
5964         * modules/futimens-tests: New test.
5965         * tests/test-futimens.c: Likewise.
5966
5967         utimens: introduce fdutimens
5968         * lib/utimens.h (fdutimens): New prototype.
5969         * lib/utimens.c (gl_futimens): Move guts...
5970         (fdutimens): ...to new interface.
5971         * tests/test-utimens.c (do_fdutimens): Use it.
5972
5973         utimens: add UTIME_NOW and UTIME_OMIT support
5974         * lib/utimens.c (validate_timespec, update_timespec): New helper
5975         functions.
5976         (gl_futimens, lutimens): Use them.
5977         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
5978         stdbool, sys_stat.
5979         (Link): Mention resulting library dependency.
5980         * modules/utimecmp (Link): Likewise.
5981         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
5982         (Makefile.am): Pick up library dependency.
5983         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
5984         definition.
5985         * tests/test-sys_stat.c: Test the definitions.
5986         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
5987         * NEWS: Document library dependency.
5988
5989         utimecmp: support symlink timestamps
5990         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
5991         hashing when possible.  Use pathconf when available.
5992         (SYSCALL_RESOLUTION): Recognize tighter resolution.
5993         * modules/utimecmp (Depends-on): Add lstat.
5994
5995         utimens: add lutimens interface
5996         * lib/utimens.c (lutimens): New function.
5997         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
5998         * lib/utimens.h (lutimens): Declare new interface.
5999         * tests/test-utimens.c (main): Enhance test.
6000         * tests/test-lutimens.h (test_lutimens): New file.
6001         * modules/utimens-tests (Files): Distribute it.
6002         (Depends-on): Add symlink.
6003         (configure.ac): Check for usleep.
6004
6005         utimens: validate futimens usage
6006         * lib/utimens.c (gl_futimens): Require valid fd up front, using
6007         fewer syscalls on failure later on.  Avoid compiler warning on
6008         mingw.
6009         * modules/utimens (Depends-on): Add dup2.
6010
6011         utimens: add test
6012         * modules/utimens-tests: New test.
6013         * tests/test-utimens.h: New file.
6014         * tests/test-futimens.h: Likewise.
6015         * tests/test-utimens.c: Likewise.
6016
6017         doc: mention timestamp portability issues
6018         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
6019         instead.
6020         * doc/posix-functions/utime.texi (utime): Likewise.
6021         * doc/posix-functions/utimes.texi (utimes): Likewise.
6022         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
6023         instead.
6024         * doc/posix-functions/futimens.texi (futimens): Mention utimens
6025         module.
6026         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6027         Mention weakness with symlink timestamps.
6028         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
6029         to utimensat/futimens instead.
6030         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
6031
6032         test-dup2: enhance test
6033         * tests/test-dup2.c (main): Also check AT_FDCWD.
6034
6035         test-stat-time: avoid more spurious failures
6036         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
6037         xfs; and avoid race if the two timestamps cross quantization edge.
6038
6039         relocatable: prefer 'file system' over 'filesystem'
6040         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
6041         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
6042         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
6043         * doc/relocatable.texi (Enabling Relocatability): Likewise.
6044         * lib/relocatable.c (compute_curr_prefix): Likewise.
6045
6046 2009-10-10  Jim Meyering  <meyering@redhat.com>
6047
6048         stat-time-tests: check for the usleep function
6049         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
6050
6051 2009-10-10  Bruno Haible  <bruno@clisp.org>
6052
6053         * modules/xnanosleep: Put the Link section after the Include section.
6054
6055 2009-10-09  Eric Blake  <ebb9@byu.net>
6056
6057         dup2: work around FreeBSD 6.1 bug
6058         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
6059         * doc/posix-functions/dup2.texi (dup2): Document it.
6060         Reported by Nelson H. F. Beebe and Jim Meyering.
6061
6062         test-stat-time: port to buggy NFS clients
6063         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
6064         (test_ctime): Also skip test if mtime and ctime are skewed.
6065
6066         maint: prefer 'file system' over 'filesystem'
6067         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
6068         * doc/posix-functions/lstat.texi (lstat): Likewise.
6069         * lib/file-has-acl.c (file_has_acl): Likewise.
6070         * lib/fwriteerror.c [TEST]: Likewise.
6071         * tests/test-areadlink.h (test_areadlink): Likewise.
6072         * tests/test-areadlinkat-with-size.c (main): Likewise.
6073         * tests/test-areadlinkat.c (main): Likewise.
6074         * tests/test-canonicalize-lgpl.c (main): Likewise.
6075         * tests/test-canonicalize.c (main): Likewise.
6076         * tests/test-fstatat.c (main): Likewise.
6077         * tests/test-linkat.c (main): Likewise.
6078         * tests/test-lstat.h (test_lstat_func): Likewise.
6079         * tests/test-mkdir.h (test_mkdir): Likewise.
6080         * tests/test-readlink.h (test_readlink): Likewise.
6081         * tests/test-remove.c (main): Likewise.
6082         * tests/test-rename.h (test_rename): Likewise.
6083         * tests/test-renameat.c (main): Likewise.
6084         * tests/test-rmdir.h (test_rmdir_func): Likewise.
6085         * tests/test-symlink.h (test_symlink): Likewise.
6086         * tests/test-symlinkat.c (main): Likewise.
6087         * tests/test-unlink.h (test_unlink_func): Likewise.
6088         * tests/test-unlinkat.c (main): Likewise.
6089
6090         maint: make realtime library usage explicit
6091         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
6092         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
6093         * modules/settime (Link): Likewise.
6094         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
6095
6096         test-stat-time: speed up execution
6097         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
6098         warning on mingw.
6099         (nap): New helper function.
6100         (prepare_test): Use it to reduce sleep time.
6101         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
6102         execution.
6103         * modules/stat-time-tests (configure.ac): Check for usleep.
6104
6105 2009-10-09  Jim Meyering  <meyering@redhat.com>
6106
6107         selinux-h: always use getfilecon wrappers
6108         * lib/getfilecon.c: New file.
6109         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
6110         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
6111         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
6112         (fgetfilecon): Provide a stub.
6113         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
6114         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
6115         file unconditionally.
6116         When <selinux/selinux.h> is found, arrange to use wrappers.
6117         * modules/selinux-h (Files): Add getfilecon.c.
6118         (Makefile.am): Substitute include-next-related bits
6119         into the now-always-generated selinux/selinux.h file.
6120         * doc/glibc-functions/lgetfilecon.texi: New file.
6121         * doc/glibc-functions/fgetfilecon.texi: New file.
6122         * doc/glibc-functions/getfilecon.texi: New file.
6123         * doc/glibc-functions/getfilecon-desc.texi: New file.
6124         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
6125         which to pull in the new files.
6126         * MODULES.html.sh (Misc): Add selinux-h.
6127
6128 2009-10-08  Jim Meyering  <meyering@redhat.com>
6129
6130         unistd: fix comment typo
6131         * lib/unistd.in.h (euidaccess): Fix a comment typo.
6132
6133 2009-10-08  Eric Blake  <ebb9@byu.net>
6134
6135         areadlink: use SIZE_MAX consistently
6136         * modules/areadlink (Depends-on): Add stdint.
6137         * modules/areadlink-with-size (Depends-on): Likewise.
6138         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
6139         gives NULL; drop sys/types, since unistd gives size_t; and add
6140         stdint for SIZE_MAX.
6141         (SIZE_MAX): Rely on headers.
6142         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
6143         and add stdint.
6144         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
6145         (SIZE_MAX): Likewise.
6146         (INITIAL_BUF_SIZE): Turn into enum.
6147         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
6148
6149 2009-10-08  Jim Meyering  <meyering@redhat.com>
6150
6151         areadlinkat: avoid compilation failure
6152         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
6153         Fix typo in comment.
6154
6155 2009-10-07  Eric Blake  <ebb9@byu.net>
6156
6157         areadlinkat-with-size: new module
6158         * modules/areadlinkat-with-size: New module.
6159         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
6160         * lib/areadlink.h (areadlinkat): Declare it.
6161         * MODULES.html.sh (File system functions): Mention it.
6162         * modules/areadlinkat-with-size-tests: New test.
6163         * tests/test-areadlinkat-with-size.c: New file.
6164
6165         xreadlinkat: new module
6166         * modules/xreadlinkat: New module.
6167         * lib/xreadlinkat.c (xreadlinkat): New file.
6168         * lib/xreadlink.h (xreadlinkat): Declare it.
6169         * MODULES.html.sh (File system functions): Mention it.
6170
6171         areadlinkat: new module
6172         * lib/at-func.c (FUNC_FAIL): New define.
6173         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
6174         * modules/areadlinkat: New module.
6175         * lib/linkat.c (areadlinkat): Move...
6176         * lib/areadlinkat.c (areadlinkat): ...to new file.
6177         * lib/areadlink.h (areadlinkat): Declare it.
6178         * modules/linkat (Depends-on): Add areadlinkat.
6179         * MODULES.html.sh (File system functions): Mention it.
6180         * modules/areadlinkat-tests: New test.
6181         * tests/test-areadlinkat.c: New file.
6182
6183         areadlink, areadlink-with-size: add tests
6184         * modules/areadlink-tests: New test.
6185         * modules/areadlink-with-size-tests: Likewise.
6186         * tests/test-areadlink.h: New file.
6187         * tests/test-areadlink.c: Likewise.
6188         * tests/test-areadlink-with-size.c: Likewise.
6189
6190         maint: minor cleanups
6191         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
6192         _UNUSED_PARAMETER_ instead.
6193         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
6194         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
6195         * modules/linkat-tests (Files): Distribute test-link.h.
6196
6197         openat, utimens: whitespace cleanup
6198         * lib/openat.c: Prefer space throughout, rather than mix of 8
6199         spaces vs. tabs.
6200         * lib/at-func.c: Likewise.
6201         * lib/utimens.c: Likewise.
6202
6203         openat: avoid using wrong fd
6204         * lib/openat.c (openat_permissive): Reject user's fd if saving the
6205         working directory chooses same fd.
6206         * lib/at-func.c (AT_FUNC_NAME): Likewise.
6207
6208         mkdir, mkdirat: fix cygwin 1.5.x bug
6209         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
6210         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
6211         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
6212         bug.
6213         (gl_PREREQ_MKDIR): Delete unused macro.
6214         * modules/mkdir (Files): Track file rename.
6215         (configure.ac): Update macro name.
6216         * modules/openat (Depends-on): Add mkdir.
6217         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
6218
6219         mkdir, mkdirat: add tests
6220         * modules/mkdir-tests: New test.
6221         * tests/test-mkdir.h: New file.
6222         * tests/test-mkdir.c: Likewise.
6223         * tests/test-mkdirat.c: Likewise.
6224         * modules/openat-tests (Files): Add new files.
6225         (Makefile.am): Run new test.
6226
6227 2009-10-06  Eric Blake  <ebb9@byu.net>
6228
6229         doc: tweak *at function documentation
6230         * doc/posix-functions/faccessat.texi (faccessat): Mention
6231         known issue with replacement.
6232         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
6233         * doc/posix-functions/linkat.texi (linkat): Likewise.
6234         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
6235         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
6236         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
6237         * doc/posix-functions/renameat.texi (renameat): Likewise.
6238         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
6239
6240         openat: fix GNU/Hurd bug in unlinkat
6241         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
6242         broken.
6243         * doc/posix-functions/unlink.texi (unlink): Document this.
6244         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
6245
6246         fdopendir: fix GNU/Hurd bug
6247         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
6248         allowing non-directory fds.
6249         * lib/fdopendir.c (rpl_fdopendir): Work around it.
6250         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
6251         * modules/dirent (Makefile.am): Substitute it.
6252         * lib/dirent.in.h (fdopendir): Declare replacement.
6253         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
6254         * tests/test-fdopendir.c (main): Test something other than
6255         /dev/null, since on Hurd that behaves like a directory.
6256
6257         test-symlink: port to GNU/Hurd
6258         * tests/test-symlink.h (test_symlink): Relax expected errno.
6259
6260         doc: tweak more cygwin information
6261         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
6262         now compatible with glibc.
6263         * doc/posix-functions/getopt.texi (getopt): Likewise.
6264
6265         getopt-gnu: add another test
6266         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
6267         guarantee behavior relied on by m4.
6268         * tests/test-getopt.c (main): Use it.
6269         * modules/getopt-posix-tests (Depends-on): Add setenv.
6270         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
6271
6272         getopt: fix compilation on darwin
6273         * lib/getopt.in.h (includes): Leave breadcrumbs during system
6274         include.
6275         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
6276         Reported by Ludovic Courtès.
6277
6278 2009-10-06  Bruno Haible  <bruno@clisp.org>
6279
6280         * modules/size_max (Description): Discourage its use.
6281         Reported by Simon Josefsson.
6282
6283 2009-10-06  Jim Meyering  <meyering@redhat.com>
6284
6285         linkat: avoid compilation failure
6286         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
6287
6288 2009-10-05  Eric Blake  <ebb9@byu.net>
6289
6290         linkat: support Linux 2.6.17
6291         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
6292         linkat on Linux, but allow cache variable override.
6293         * lib/linkat.c (rpl_linkat): Define override.
6294         * modules/linkat (Depends-on): Add symlinkat.
6295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
6296         * modules/unistd (Makefile.am): Substitute it.
6297         * lib/unistd.in.h (linkat): Declare replacement.
6298         Reported by Pádraig Brady.
6299
6300         quotearg: port test to systems with C.UTF-8 locale
6301         * tests/test-quotearg.c (struct result_strings): Add another
6302         member, differentiating between C.ASCII and C.UTF-8 handling.
6303         (compare_strings): Add parameter.
6304         (main): Adjust all callers.
6305
6306         getopt: avoid clash with FreeBSD _getopt_internal
6307         * lib/getopt.in.h (_getopt_internal): Override the name.
6308         * lib/getopt_int.h (includes): Pick up any overrides.
6309         Reported by Reuben Thomas.
6310
6311         hash: allow C89 compilation
6312         * lib/hash.c (check_tuning): Move declaration before statement.
6313         Reported by Reuben Thomas.
6314
6315 2009-10-05  Karl Berry  <karl@gnu.org>
6316
6317         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
6318
6319 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
6320             Bruno Haible  <bruno@clisp.org>
6321
6322         * lib/uname.c (uname): Use a table-driven algorithm to compute
6323         Windows NT versions.
6324
6325 2009-10-04  Bruno Haible  <bruno@clisp.org>
6326
6327         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
6328         program_invocation_short_name.
6329         * modules/progname (configure.ac): Test for presence of
6330         program_invocation_short_name.
6331         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
6332
6333 2009-10-04  Bruno Haible  <bruno@clisp.org>
6334
6335         * lib/progname.c (set_program_name): Fix comment.
6336         Reported by Jim Meyering.
6337
6338 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
6339             Bruno Haible  <bruno@clisp.org>
6340
6341         * lib/uname.c: Include <string.h>.
6342         (uname): Do only one call to GetVersionEx in the common case.
6343
6344 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
6345             Bruno Haible  <bruno@clisp.org>
6346
6347         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
6348         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
6349         (uname): Add support for Windows CE and various non-x86 CPU types.
6350
6351 2009-10-03  Bruno Haible  <bruno@clisp.org>
6352
6353         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
6354         invocation to tests/configure.ac.
6355         Reported by Ian Beckwith <ianb@erislabs.net>.
6356
6357 2009-10-02  Eric Blake  <ebb9@byu.net>
6358
6359         fchdir: avoid compiler warning
6360         * lib/fchdir.c (canonicalize_file_name)
6361         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
6362
6363         test-open: support mingw errno values
6364         * tests/test-open.h (test_open): Relax test.
6365         * tests/test-fopen.h (test_fopen): Likewise.
6366         * tests/test-openat-safer.c (main): Likewise.
6367
6368         open: fix opening directory on mingw
6369         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
6370
6371         test-open: on GNU/Hurd, /dev/null is a directory
6372         * tests/test-fopen.h (main): Rename...
6373         (test_fopen): ...to this.  Use a guaranteed non-directory when
6374         confirming open behavior on trailing slash.
6375         * tests/test-openat-safer.c (main): Likewise.
6376         * tests/test-open.h (main): Likewise....
6377         (test_open): ...to this.
6378         * tests/test-fopen.c (main): Adjust caller.
6379         * tests/test-fopen-safer.c (main): Likewise.
6380         * tests/test-open.c (main): Likewise.
6381         * tests/test-fcntl-safer.c (main): Likewise.
6382         Reported by Samuel Thibault.
6383
6384         rename, fchdir: don't ignore chdir failure
6385         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
6386         * lib/rename.c (rpl_rename) [W32]: Likewise.
6387         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
6388         an empty destination directory if source cannot be renamed,
6389         although there is still possibility for failure.
6390         * doc/posix-functions/rename.texi (rename): Document the race.
6391         Reported by Jim Meyering.
6392
6393         maint: cleanup whitespace in recent commits
6394         * lib/rename.c (rpl_rename): Remove tabs.
6395         * tests/test-link.h (test_link): Likewise.
6396         * lib/fchdir.c (get_name): Likewise.
6397         Reported by Jim Meyering.
6398
6399 2009-10-02  Ben Pfaff  <blp@gnu.org>
6400
6401         relocatable-prog-wrapper: Add missing dependency on
6402         double-slash-root.
6403         * modules/relocatable-prog-wrapper: Add dependency.
6404         Reported by Ian Beckwith <ianb@erislabs.net>.
6405
6406 2009-10-02  Eric Blake  <ebb9@byu.net>
6407
6408         renameat: fix Solaris bugs
6409         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
6410         needed fixing.
6411         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
6412         * modules/stdio (Makefile.am): Substitute it.
6413         * lib/stdio.in.h (renameat): Declare replacement.
6414         * lib/renameat.c (rpl_renameat): Implement fix.
6415
6416         renameat: new module
6417         * modules/renameat: New file.
6418         * lib/renameat.c (renameat): Likewise.
6419         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
6420         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
6421         * modules/stdio (Makefile.am): Substitute them.
6422         * lib/stdio.in.h (renameat): Declare it.
6423         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6424         * doc/posix-functions/renameat.texi (renameat): Likewise.
6425         * modules/renameat-tests: New test.
6426         * tests/test-renameat.c: Likewise.
6427
6428         rename: fix mingw bugs
6429         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
6430         directory overwrite bugs.
6431
6432         rename: fix another cygwin 1.5 bug
6433         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
6434         checks.
6435         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
6436         unnecessary cygwin workarounds.  Also work around bug with moving
6437         full directory onto an empty one.
6438         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
6439
6440         rename-dest-slash: merge into rename module
6441         * modules/rename-dest-slash (Status): Mark obsolete.
6442         (Depends-on): Add rename.
6443         (Files): Let rename do it all.
6444         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
6445         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
6446         * m4/rename-dest-slash.m4: ...so this file can be deleted.
6447         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
6448         * lib/rename.c (rpl_rename): Update comments.
6449
6450         rename: fix cygwin 1.5.x bugs
6451         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
6452         * lib/rename.c (rpl_rename): Work around them.
6453         * modules/rename (Depends-on): Add same-inode.
6454
6455         rename: fix Solaris 10 bug
6456         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
6457         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
6458         was the only bug.
6459
6460         rename: fix Solaris 9 bug
6461         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
6462         on non-directory.  Avoid calling exit.
6463         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
6464         strdup.
6465         * modules/rename-tests (Depends-on): Drop lstat.
6466         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
6467         (gl_PREREQ_RENAME): Delete unused macro.
6468
6469         rename-dest-slash: fix NetBSD bug
6470         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
6471         links.
6472         * modules/rename-dest-slash (Depends-on): Add same-inode.
6473
6474         rename-tests: new test, exposes several platform bugs
6475         * modules/rename-tests: New file.
6476         * tests/test-rename.h: Likewise.
6477         * tests/test-rename.c: Likewise.
6478         * doc/posix-functions/rename.texi (rename): Improve documentation,
6479         including bugs that will eventually be fixed in gnulib.
6480
6481 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
6482
6483         * lib/uname.c: Include <stdlib.h>
6484         (uname): Assume version info is available.
6485
6486 2009-10-02  Jim Meyering  <meyering@redhat.com>
6487
6488         gnu-web-doc-update: correct --help output
6489         * build-aux/gnu-web-doc-update: Make --help output relevant.
6490
6491         gnu-web-doc-update: add standard options
6492         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
6493
6494         gnu-web-doc-update: New module.
6495         Use this script to automatically update the on-line web documentation
6496         for your GNU project at http://www.gnu.org/software/$pkg/manual/
6497         * modules/gnu-web-doc-update: New file, from coreutils.
6498         * build-aux/gnu-web-doc-update: New script.
6499
6500 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
6501
6502         link: LoadLibrary is not needed.
6503         * lib/link.c: Use GetModuleHandle.
6504
6505 2009-10-01  Eric Blake  <ebb9@byu.net>
6506
6507         getopt: bump serial number
6508         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
6509         change.
6510
6511         tests: tighten link, rmdir, and remove tests
6512         * tests/test-link.h (includes): No need to use <config.h> here.
6513         Clean up if directory hard link was created, otherwise test for
6514         trailing '.'.
6515         * tests/test-linkat.c (main): Simplify.
6516         * tests/test-remove.c (main): Enhance test for trailing '.'.
6517         * tests/test-rmdir.h (test_rmdir_func): Likewise.
6518
6519 2009-10-01  Jim Meyering  <meyering@redhat.com>
6520
6521         maint.mk: requiring "make major" was annoying, for a "minor" release.
6522         What is intended is "stable", to contrast with alpha and beta,
6523         so require "make stable", not "make major".
6524         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
6525         (get_tool_versions): Likewise.
6526         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
6527
6528 2009-09-30  Ben Pfaff  <blp@gnu.org>
6529
6530         Fix broken build of replacement for Windows tmpfile().
6531         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
6532         flags argument added along with the 'mkostemp' module.
6533
6534 2009-09-28  Bruno Haible  <bruno@clisp.org>
6535
6536         Avoid identifier clash with POSIX function 'remove' defined as a macro.
6537         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
6538         to 'remove_elt'.
6539         (gl_list_remove): Update.
6540         * lib/gl_list.c (gl_list_remove): Update.
6541         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
6542         to 'remove_elt'.
6543         (gl_oset_remove): Update.
6544         * lib/gl_list.c (gl_oset_remove): Update.
6545         Reported by Eric Blake.
6546
6547 2009-09-28  Eric Blake  <ebb9@byu.net>
6548
6549         doc: mention yet more cygwin 1.7 status
6550         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
6551         cygwin.
6552         * doc/glibc-functions/execvpe.texi (execvpe): New file.
6553         * doc/gnulib.texi (Glibc unistd.h): Mention it.
6554
6555         argp: fix test failure
6556         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
6557         that are not upper-case.  Pass correct range to tolower.
6558
6559 2009-09-27  Jim Meyering  <meyering@redhat.com>
6560
6561         test-yesno: work around sparc-dash here-document infelicity
6562         Without this change, the literal \177 byte in a here document
6563         would make dash 0.5.5.1-3 access uninitialized memory.
6564         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
6565         Instead, use a marker, "@", and filter through tr to create the desired
6566         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
6567
6568 2009-09-27  Bruno Haible  <bruno@clisp.org>
6569
6570         Disable untested support for new flavours of ACLs on AIX.
6571         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
6572         progress.
6573         * lib/set-mode-acl.c (qset_acl): Likewise.
6574
6575 2008-12-07  Bruno Haible  <bruno@clisp.org>
6576
6577         Add support for new flavours of ACLs on AIX. (Untested.)
6578         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
6579         (file_has_acl): Add support for newer AIX.
6580         * lib/set-mode-acl.c (qset_acl): Likewise.
6581         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
6582         Rainer Tammer <tammer@tammer.net>.
6583
6584 2009-09-26  Eric Blake  <ebb9@byu.net>
6585
6586         argp: fix compilation of getopt
6587         * lib/getopt.in.h (includes): Use different guard than glibc.
6588         Reported by Sergey Poznyakoff.
6589
6590         doc: mention more cygwin 1.7 status
6591         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
6592         bug.
6593         * doc/posix-functions/execl.texi (execl): Likewise.
6594         * doc/posix-functions/execle.texi (execle): Likewise.
6595         * doc/posix-functions/execlp.texi (execlp): Likewise.
6596         * doc/posix-functions/execv.texi (execv): Likewise.
6597         * doc/posix-functions/execve.texi (execve): Likewise.
6598         * doc/posix-functions/execvp.texi (execvp): Likewise.
6599         * doc/glibc-functions/canonicalize_file_name.texi
6600         (canonicalize_file_name): Cygwin 1.7 now provides this.
6601         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
6602         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
6603         on AT_SYMLINK_NOFOLLOW.
6604
6605 2009-09-24  Eric Blake  <ebb9@byu.net>
6606
6607         test-linkat: make test more robust
6608         * tests/test-linkat.c (main): Avoid collision with EEXIST.
6609
6610         getopt: fix inclusion guards for cygwin
6611         * modules/getopt-posix (Depends-on): Add include-next.
6612         (Makefile.am): Substitute more items in replacement header.
6613         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
6614         <getopt.h>.
6615         * lib/getopt.in.h (includes): Use split inclusion guard, and
6616         prefer <getopt.h> over include <unistd.h> when one is present.
6617         (option): Also override name of 'struct option'.
6618
6619         same-inode: revert prior change; it is not yet ready
6620         * NEWS: Undo mention of this change.
6621         * lib/same-inode.h (same-inode.h): Undo tri-state change.
6622         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
6623         * lib/cycle-check.c (cycle_check): Likewise.
6624         * lib/same.c (same_name): Likewise.
6625         * lib/at-func2.c (at_func2): Likewise.
6626
6627 2009-09-23  Eric Blake  <ebb9@byu.net>
6628
6629         linkat: new module
6630         * modules/linkat: New file.
6631         * lib/at-func2.c (at_func2): Likewise.
6632         * lib/linkat.c (linkat): Likewise.
6633         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
6634         * lib/openat-priv.h (at_func2): Add declaration.
6635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
6636         * modules/unistd (Makefile.am): Substitute them.
6637         * lib/unistd.in.h (linkat): Declare it.
6638         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6639         * doc/posix-functions/linkat.texi (linkat): Likewise.
6640         * doc/posix-functions/link.texi (link): Tweak wording.
6641         * tests/test-link.c (main): Move guts...
6642         * tests/test-link.h (test_link): ...into new file.
6643         * modules/linkat-tests: New test.
6644         * tests/test-linkat.c: Likewise.
6645         * modules/link-tests (Files): Ship new file.
6646         (Depends-on): Add stdbool.
6647
6648         dirname: add library-safe mdir_name
6649         * lib/dirname.h (mdir_name): New prototype.
6650         * lib/dirname.c (dir_name): Move guts...
6651         (mdir_name): ...to new function that avoids xalloc_die.
6652
6653         fchdir: another mingw fix
6654         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
6655         * lib/fchdir.c (get_name): New helper method; skips canonicalize
6656         on mingw (where it has not yet been ported), and make it optional
6657         elsewhere.
6658         (_gl_register_fd): Use it.
6659
6660         same-inode: make SAME_INODE tri-state, to port to mingw
6661         * NEWS: Mention this change.
6662         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
6663         st_ino always being 0.
6664         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
6665         * lib/cycle-check.c (cycle_check): Likewise.
6666         * lib/same.c (same_name): Likewise.
6667
6668         lstat: avoid mingw compilation error
6669         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
6670         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
6671         lstat ourselves.
6672         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
6673         was adequate.
6674         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
6675         the checks for lstat.
6676         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
6677
6678         link: fix test failure on Solaris 9
6679         * lib/link.c (rpl_link): Don't assume link will catch bogus
6680         trailing slash on source.
6681
6682         test-symlinkat: enhance test
6683         * tests/test-readlink.c (main): Move guts...
6684         * tests/test-readlink.h (test_readlink): ...into new file.
6685         * tests/test-symlink.c (main): Move guts...
6686         * tests/test-symlink.h (test_symlink): ...into new file.
6687         * tests/test-symlinkat.c (main): Use new files for further
6688         coverage.
6689         (do_symlink, do_readlink): New helper functions.
6690         * modules/symlink-tests (Files): Ship new file.
6691         (Depends-on): Add stdbool.
6692         * modules/readlink-tests (Files): Ship new file.
6693         (Depends-on): Add stdbool.
6694         * modules/symlinkat-tests (Files): Use new files.
6695
6696 2009-09-23  Eric Blake  <ebb9@byu.net>
6697
6698         readlink: document portability issue with symlink length
6699         * doc/posix-functions/lstat.texi (lstat): Mention that some file
6700         systems have bogus st_size on symlinks, and mention the
6701         areadlink-with-size module.
6702         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
6703         * doc/posix-functions/readlink.texi (readlink): Mention the
6704         areadlink module, and ERANGE failure.
6705         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
6706         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
6707
6708         readlink: fix Solaris 9 bug with trailing slash
6709         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
6710         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
6711         * doc/posix-functions/readlink.texi (readlink): Document this.
6712         * modules/readlink-tests: New test.
6713         * tests/test-readlink.c: Likewise.
6714
6715         readlink: fix cygwin 1.5.x bug with return type
6716         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
6717         * lib/unistd.in.h (readlink): Use ssize_t.
6718         * lib/readlink.c (readlink): Likewise.
6719         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6720         * modules/unistd (Makefile.am): Substitute it.
6721         * lib/unistd.in.h (readlink): Declare replacement.
6722         * doc/posix-functions/readlink.texi (readlink): Document this.
6723
6724         symlink: use throughout gnulib
6725         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
6726         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
6727         symlink is not used.
6728         * modules/symlinkat (Depends-on): Add symlink.
6729         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
6730         * modules/canonicalize-tests (Depends-on): Likewise.
6731         * modules/lstat-tests (Depends-on): Likewise.
6732         * modules/openat-tests (Depends-on): Likewise.
6733         * modules/remove-tests (Depends-on): Likewise.
6734         * modules/rmdir-tests (Depends-on): Likewise.
6735         * modules/unlink-tests (Depends-on): Likewise.
6736         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
6737         * tests/test-canonicalize.c (symlink): Likewise.
6738         * tests/test-fstatat.c (symlink): Likewise.
6739         * tests/test-lstat.c (symlink): Likewise.
6740         * tests/test-remove.c (symlink): Likewise.
6741         * tests/test-rmdir.c (symlink): Likewise.
6742         * tests/test-unlink.c (symlink): Likewise.
6743         * tests/test-unlinkat.c (symlink): Likewise.
6744
6745         symlink: new module, for Solaris 9 bug
6746         * modules/symlink: New file.
6747         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
6748         * lib/symlink.c: Likewise.
6749         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
6750         * modules/unistd (Makefile.am): Substitute them.
6751         * lib/unistd.in.h (symlink): Declare replacement.
6752         * MODULES.html.sh (File system functions): Mention it.
6753         * doc/posix-functions/symlink.texi (symlink): Likewise.
6754         * modules/symlink-tests: New test.
6755         * tests/test-symlink.c: Likewise.
6756
6757 2009-09-23  Bruno Haible  <bruno@clisp.org>
6758
6759         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
6760         when needed.
6761         Test case: gnulib-tool --import --with-tests atexit inttypes.
6762         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
6763
6764 2009-09-23  Bruno Haible  <bruno@clisp.org>
6765
6766         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
6767         subcommand, not in a subshell.
6768
6769 2009-09-22  Eric Blake  <ebb9@byu.net>
6770
6771         unistd: sort replacement declarations
6772         * lib/unistd.in.h: Sort declarations.
6773
6774         open, openat: minor optimization
6775         * lib/open.c (open): If open succeeded, len is non-zero.
6776         * lib/openat.c (rpl_openat): Likewise.
6777
6778         link-follow: ensure correct result
6779         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
6780         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
6781         distinguish between possible failures.
6782
6783 2009-09-21  Eric Blake  <ebb9@byu.net>
6784
6785         fts: avoid compiler warning
6786         * lib/fts.c (dirent_inode_sort_may_be_useful)
6787         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
6788
6789 2009-09-19  Bruno Haible  <bruno@clisp.org>
6790
6791         * lib/progreloc.c (canonicalize_file_name): New declaration.
6792
6793 2009-09-19  Eric Blake  <ebb9@byu.net>
6794
6795         link: fix quoting
6796         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
6797
6798         openat: fix openat bugs on Solaris 9
6799         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
6800         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
6801         * modules/openat (Depends-on): Add open.
6802         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
6803         * modules/fcntl-h (Makefile.am): Substitute it.
6804         * lib/fcntl.in.h (openat): Declare replacement.
6805         * doc/posix-functions/openat.texi (openat): Document this.
6806
6807         openat: move fstatat and unlinkat into correct files
6808         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
6809         compiled.
6810         * lib/openat.c (fstatat, unlinkat): Move...
6811         * lib/fstatat.c (fstatat): ...into correct files.
6812         * lib/unlinkat.c (unlinkat): Likewise.
6813
6814         openat: fix unlinkat bugs on Solaris 9
6815         * lib/unlinkat.c (unlinkat): New file.
6816         * modules/openat (Depends-on): Add unlink.
6817         (Files): Distribute it.
6818         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
6819         trailing slash behavior is broken.
6820         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6821         * modules/unistd (Makefile.am): Substitute it.
6822         * lib/unistd.in.h (unlinkat): Declare replacement.
6823         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
6824
6825         openat: fix fstatat bugs on Solaris 9
6826         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
6827         stat.
6828         * doc/posix-functions/fstatat.texi (fstatat): Document this.
6829
6830         test-unlinkat: enhance test, to expose Solaris 9 bug
6831         * tests/test-unlink.c (main): Factor guts...
6832         * tests/test-unlink.h (test_rmdir_func): ...into new file.
6833         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
6834         * tests/test-rmdir.c (main): Adjust caller.
6835         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
6836         (unlinker): New helper function.
6837         (rmdirat): Enhance check.
6838         * modules/rmdir-tests (Depends-on): Add stdbool.
6839         * modules/unlink-tests (Depends-on): Likewise.
6840         (Files): Add test-unlink.h.
6841         * modules/openat-tests (Files): Likewise.
6842         (Depends-on): Add unlinkdir.
6843
6844         test-fstatat: new test, to expose Solaris 9 bugs
6845         * tests/test-stat.c (main): Factor guts...
6846         * tests/test-stat.h (test_stat_func): ...into new file.
6847         * tests/test-lstat.c (main): Factor guts...
6848         * tests/test-lstat.h (test_lstat_func): ...into new file.
6849         * tests/test-fstatat.c: New file.
6850         * modules/stat-tests (Files): Add test-stat.h.
6851         * modules/lstat-tests (Files): Add test-lstat.h.
6852         (Depends-on): Add stdbool.
6853         * modules/openat-tests (Depends-on): Add pathmax.
6854         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
6855         (Makefile.am): Run new test.
6856
6857         remove: new module, for mingw and Solaris 9 bugs
6858         * modules/remove: New file.
6859         * lib/remove.c: Likewise.
6860         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
6861         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
6862         * modules/stdio (Makefile.am): Use them.
6863         * lib/stdio.in.h (remove): Declare replacement.
6864         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6865         * doc/posix-functions/remove.texi (remove): Likewise.
6866         * modules/remove-tests: New test.
6867         * tests/test-remove.c: Likewise.
6868
6869         unlink: new module, for Solaris 9 bug
6870         * modules/unlink: New file.
6871         * lib/unlink.c: Likewise.
6872         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
6874         * modules/unistd (Makefile.am): Use them.
6875         * lib/unistd.in.h (stat): Declare replacement.
6876         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6877         * doc/posix-functions/unlink.texi (unlink): Likewise.
6878         * modules/unlink-tests: New test.
6879         * tests/test-unlink.c: Likewise.
6880
6881         lstat: fix Solaris 9 bug
6882         * lib/lstat.c (lstat): Also check for trailing slash on
6883         non-symlink, non-directories.  Use stat module to simplify logic.
6884         * doc/posix-functions/lstat.texi (lstat): Document it.
6885         * modules/lstat-tests (Depends-on): Add errno, same-inode.
6886         (configure.ac): Check for symlink.
6887         * tests/test-lstat.c (main): Add more tests.
6888
6889         stat: add as dependency to other modules
6890         * modules/chown (Depends-on): Add stat.
6891         * modules/euidaccess (Depends-on): Likewise.
6892         * modules/fchdir (Depends-on): Likewise.
6893         * modules/isdir (Depends-on): Likewise.
6894         * modules/link (Depends-on): Likewise.
6895         * modules/lstat (Depends-on): Likewise.
6896         * modules/mkdir-p (Depends-on): Likewise.
6897         * modules/modechange (Depends-on): Likewise.
6898         * modules/open (Depends-on): Likewise.
6899         * modules/readlink (Depends-on): Likewise.
6900         * modules/same (Depends-on): Likewise.
6901
6902         stat: fix Solaris 9 bug
6903         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
6904         slash.
6905         * lib/stat.c (rpl_stat): Work around it.
6906         * doc/posix-functions/stat.texi (stat): Update documentation.
6907
6908         stat: new module, for mingw bug
6909         * modules/stat: New file.
6910         * lib/stat.c: Likewise.
6911         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
6912         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
6913         * modules/sys_stat (Makefile.am): Use them.
6914         * lib/sys_stat.in.h (stat): Declare replacement.
6915         * lib/openat.c (fstatat): Deal with lstat and stat being function
6916         macros.
6917         * modules/openat (Depends-on): Add inline.
6918         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6919         * doc/posix-functions/stat.texi (stat): Likewise.
6920         * modules/stat-tests: New test.
6921         * tests/test-stat.c: Likewise.
6922
6923 2009-09-19  Jim Meyering  <meyering@redhat.com>
6924
6925         syntax-check: detect unnecessary inclusion of canonicalize.h
6926         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
6927
6928 2009-09-19  Eric Blake  <ebb9@byu.net>
6929
6930         canonicalize-lgpl: adjust clients to use correct header
6931         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
6932         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
6933         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
6934         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
6935         * lib/progreloc.c (includes): Likewise.
6936
6937 2009-09-19  Jim Meyering  <meyering@redhat.com>
6938
6939         test-posixtm.c: correct a comment
6940         * tests/test-posixtm.c: Correct first-line comment.
6941         Spotted by Eric Blake.
6942
6943 2009-09-16  Jim Meyering  <meyering@redhat.com>
6944
6945         posixtm-tests: make T const-correct; add a test case
6946         * tests/test-posixtm.c (T): Declare const.
6947         Add a test for -(2^31+1).
6948         Remove useless can-succeed-only-in-2002 test.
6949
6950         posixtm-tests: adjust the sole failing test
6951         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
6952         expected output matches what mktime now produces.  Cross-checked via
6953         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
6954
6955         posixtm: move #ifdef'd tests into a new module
6956         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
6957         * tests/test-posixtm.c: ... this new file.
6958         * modules/posixtm-tests: New module.
6959
6960 2009-09-19  Eric Blake  <ebb9@byu.net>
6961
6962         openat: simplify use of at-func.c
6963         * lib/at-func.c (includes): Include prerequisites here, to
6964         simplify requirements on client files.
6965         * lib/openat-priv.h: Add double-inclusion guard.
6966         * lib/faccessat.c (includes): Simplify.
6967         * lib/fchmodat.c (includes): Likewise.
6968         * lib/fchownat.c (includes): Likewise.
6969         * lib/mkdirat.c (includes): Likewise.
6970         * lib/mkfifoat.c (includes): Likewise.
6971         * lib/symlinkat.c (includes): Likewise.
6972
6973         openat: allow return of fd 0
6974         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
6975         * modules/save-cwd (Depends-on): Replace fcntl-safer with
6976         unistd-safer.
6977         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
6978         <fcntl.h>; this module does not leak fds.
6979         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
6980         must be allowed to return 0, leaving openat_safer to add the
6981         safety.
6982         (openat_permissive): Avoid writing to just-opened fd 2 if
6983         restoring the current directory fails.
6984         * lib/openat-die.c (openat_restore_fail): Add comment.
6985         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
6986         (save_cwd): Guarantee safe fd, but without use of open_safer.
6987         * tests/test-openat.c: New test.
6988         * modules/openat-tests (Files, Makefile.am): Distribute and build
6989         new file.
6990
6991         relocatable-prog-wrapper: fix build
6992         * modules/relocatable-prog-wrapper (Files): Update name of
6993         canonicalize m4 file, broken on 2009-09-17.
6994         Reported by emad hajjar <aleppos@hotmail.com>.
6995
6996 2009-09-19  Bruno Haible  <bruno@clisp.org>
6997
6998         * lib/safe-alloc.h: Use the standard header with GPL copyright.
6999         * lib/safe-alloc.c: Likewise.
7000         Reported by Ian Beckwith <ianb@erislabs.net>.
7001
7002 2009-09-18  Bruno Haible  <bruno@clisp.org>
7003
7004         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
7005         Reported by <erobles@sensacd.com.mx>.
7006
7007 2009-09-17  Eric Blake  <ebb9@byu.net>
7008
7009         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
7010         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
7011         slashes when checking if last component is missing.
7012         * tests/test-canonicalize.c (main): Test this.
7013
7014         canonicalize, canonicalize-lgpl: honor // if distinct from /
7015         * modules/canonicalize (Files): Add double-slash-root.m4.
7016         * modules/canonicalize-lgpl (Files): Likewise.
7017         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
7018         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
7019         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
7020         fallback definition.
7021         (canonicalize_filename_mode): Use it to protect //.
7022         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
7023         (__realpath): Likewise.
7024         * tests/test-canonicalize.c (main): Test this.
7025         * tests/test-canonicalize-lgpl.c (main): Likewise.
7026         * modules/canonicalize-tests (Depends-on): Add same-inode.
7027         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
7028
7029         canonicalize-lgpl: fix glibc bug with trailing slash
7030         * m4/canonicalize-lgpl.m4: Move contents...
7031         * m4/canonicalize.m4: ...here.
7032         (gl_CANONICALIZE_LGPL): Factor realpath check...
7033         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
7034         glibc 2.3.5 bug, fixed 2005-04-27.
7035         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
7036         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
7037         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
7038         * modules/canonicalize-lgpl (Files): Manage file rename.
7039         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
7040         * modules/stdlib (Makefile.am): Substitute witness.
7041         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
7042         is needed.
7043         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
7044         replacement is required.
7045         * lib/canonicalize.c (canonicalize_file_name): Likewise.
7046         * doc/glibc-functions/canonicalize_file_name.texi
7047         (canonicalize_file_name): Document this.
7048         * doc/posix-functions/realpath.texi (realpath): Likewise.
7049
7050         canonicalize-lgpl: reject non-directory with trailing slash
7051         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
7052         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
7053         catches failures in glibc 2.3.5.
7054         * tests/test-canonicalize.c (main): Likewise.
7055
7056         canonicalize-lgpl: use native realpath if it works
7057         * lib/canonicalize-lgpl.c (realpath): Guard with
7058         FUNC_REALPATH_WORKS.
7059         * lib/stdlib.in.h (realpath): Make declaration optional based on
7060         HAVE_REALPATH.
7061         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
7062         native realpath works.
7063         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
7064         * modules/stdlib (Makefile.am): Substitute witness.
7065
7066         canonicalize, canonicalize-lgpl: use <stdlib.h>
7067         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
7068         (Include): Mention <stdlib.h>.
7069         (configure.ac): Mention functions we provide.
7070         * modules/canonicalize (configure.ac): Likewise.
7071         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
7072         realpath if canonicalize_file_name is missing.
7073         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
7074         * modules/stdlib (Makefile.am): Substitute witnesses.
7075         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
7076         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
7077         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
7078         * NEWS: Document this.
7079         * doc/glibc-functions/canonicalize_file_name.texi
7080         (canonicalize_file_name): Likewise.
7081         * doc/posix-functions/realpath.texi (realpath): Likewise.
7082         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
7083
7084         test-canonicalize: consolidate into single C program
7085         * tests/test-canonicalize.sh: Delete; move setup into...
7086         * tests/test-canonicalize.c (main): ...the program, making it
7087         easier to run in debugger.  Add some tests.
7088         * modules/canonicalize-tests (Files): Remove unused file.
7089         (Depends-on): Add progname.
7090         (configure.ac, Makefile.am): Simplify.
7091
7092         test-canonicalize-lgpl: consolidate into single C program
7093         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
7094         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
7095         easier to run in debugger.  Add some tests.
7096         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
7097         (configure.ac, Makefile.am): Simplify.
7098
7099         canonicalize: avoid resolvepath
7100         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
7101         unnecessary checks.
7102         * lib/canonicalize.c (includes): Simplify.
7103         (canonicalize_file_name): Drop resolvepath implementation.
7104         * modules/canonicalize (Depends-on): Drop filenamecat.
7105
7106         canonicalize: don't lose errno
7107         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
7108         over calls to free.
7109
7110         canonicalize: simplify errno handling
7111         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
7112         assignment.
7113
7114         canonicalize, canonicalize-lgpl: update module dependencies
7115         * modules/canonicalize (Depends-on): Add extensions, lstat,
7116         pathmax, stdlib.
7117         (Files): Drop pathmax.h.
7118         (configure.ac): Adjust macro name.
7119         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
7120         lstat, stdlib, sys_stat.
7121         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
7122         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
7123         extensions.
7124         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
7125         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
7126         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
7127         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
7128         declaration, if available.
7129         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
7130         we can rely on the readlink module.
7131         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
7132         (includes): Use <unistd.h> unconditionally.
7133
7134 2009-09-17  Eric Blake  <ebb9@byu.net>
7135
7136         maint: make Include sections of modules consistent
7137         * modules/alloca: Use only header name; no need to list #include.
7138         * modules/alloca-opt: Likewise.
7139         * modules/arpa_inet: Likewise.
7140         * modules/canon-host: Likewise.
7141         * modules/configmake: Likewise.
7142         * modules/dirent: Likewise.
7143         * modules/eealloc: Likewise.
7144         * modules/environ: Likewise.
7145         * modules/fchdir: Likewise.
7146         * modules/fcntl: Likewise.
7147         * modules/fcntl-h: Likewise.
7148         * modules/gethrxtime: Likewise.
7149         * modules/gettime: Likewise.
7150         * modules/ignore-value: Likewise.
7151         * modules/inet_ntop: Likewise.
7152         * modules/inet_pton: Likewise.
7153         * modules/inttypes: Likewise.
7154         * modules/isnand-nolibm: Likewise.
7155         * modules/isnanf-nolibm: Likewise.
7156         * modules/mbchar: Likewise.
7157         * modules/mbfile: Likewise.
7158         * modules/mbiter: Likewise.
7159         * modules/mbuiter: Likewise.
7160         * modules/netdb: Likewise.
7161         * modules/netinet_in: Likewise.
7162         * modules/nproc: Likewise.
7163         * modules/pagealign_alloc: Likewise.
7164         * modules/poll: Likewise.
7165         * modules/printf-frexp: Likewise.
7166         * modules/pthread: Likewise.
7167         * modules/putenv: Likewise.
7168         * modules/random_r: Likewise.
7169         * modules/relocatable-prog: Likewise.
7170         * modules/search: Likewise.
7171         * modules/select: Likewise.
7172         * modules/selinux-h: Likewise.
7173         * modules/settime: Likewise.
7174         * modules/signal: Likewise.
7175         * modules/size_max: Likewise.
7176         * modules/socklen: Likewise.
7177         * modules/ssize_t: Likewise.
7178         * modules/stdarg: Likewise.
7179         * modules/stdbool: Likewise.
7180         * modules/stddef: Likewise.
7181         * modules/stdint: Likewise.
7182         * modules/stdio: Likewise.
7183         * modules/stdlib: Likewise.
7184         * modules/string: Likewise.
7185         * modules/strings: Likewise.
7186         * modules/sys_file: Likewise.
7187         * modules/sys_ioctl: Likewise.
7188         * modules/sys_select: Likewise.
7189         * modules/sys_socket: Likewise.
7190         * modules/sys_stat: Likewise.
7191         * modules/sys_time: Likewise.
7192         * modules/sys_times: Likewise.
7193         * modules/sys_utsname: Likewise.
7194         * modules/sys_wait: Likewise.
7195         * modules/sysexits: Likewise.
7196         * modules/time: Likewise.
7197         * modules/times: Likewise.
7198         * modules/tmpfile: Likewise.
7199         * modules/trim: Likewise.
7200         * modules/unistd: Likewise.
7201         * modules/wchar: Likewise.
7202         * modules/wctype: Likewise.
7203
7204 2009-09-17  Bruno Haible  <bruno@clisp.org>
7205
7206         Make getdate.y compile on QNX and NetBSD 5 / i386.
7207         * m4/getdate.m4 (gl_GETDATE): Conditionally define
7208         TIME_T_FITS_IN_LONG_INT.
7209         * lib/getdate.y (long_time_t): New type.
7210         (relative_time): Change type of 'seconds' field to long_time_t.
7211         (get_date): Update types of local variables. Check against overflow
7212         during conversion from long_time_t to time_t.
7213         Reported by Matt Kraai <kraai@ftbfs.org>
7214         and Hasso Tepper <hasso@netbsd.org>.
7215
7216 2009-09-17  Bruno Haible  <bruno@clisp.org>
7217
7218         * modules/COPYING: Update copyright years.
7219         * modules/README: Likeiwse.
7220         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
7221         Reported by Ian Beckwith <ianb@erislabs.net>.
7222
7223 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
7224
7225         * users.txt: Update references for gnuit package.
7226
7227 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
7228
7229         * m4/getdelim.m4: Fix typo in copyright line.
7230
7231 2009-09-17  Bruno Haible  <bruno@clisp.org>
7232
7233         * lib/atoll.c: Use the standard header with GPL copyright.
7234         * lib/argz.in.h: Likewise.
7235         * lib/glob.c: Likewise.
7236         * lib/glob-libc.h: Likewise.
7237         * lib/random_r.c: Likewise.
7238         * lib/siglist.h: Likewise.
7239         * lib/strsignal.c: Likewise.
7240         Reported by Ian Beckwith <ianb@erislabs.net>.
7241
7242 2009-09-17  Eric Blake  <ebb9@byu.net>
7243
7244         rmdir: ensure correct dependency order
7245         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
7246
7247 2009-09-17  Bruno Haible  <bruno@clisp.org>
7248
7249         Disable assertion that fails on NetBSD 5 / i386.
7250         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
7251         Reported by Sam Steingold <sds@gnu.org>
7252         and Hasso Tepper <hasso@netbsd.org>.
7253
7254 2009-09-16  Eric Blake  <ebb9@byu.net>
7255
7256         unlinkdir: port to mingw
7257         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
7258         on which no one can unlink a directory.
7259
7260         stdlib: sort witness names
7261         * modules/stdlib (Makefile.am): Sort replacements.
7262         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
7263         * lib/stdlib.in.h: Likewise.
7264
7265         parse-duration-tests: avoid link failure
7266         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
7267         LIBINTL.
7268         Reported by Tom G. Christensen.
7269
7270         openat-tests: ensure unlinkat behaves like rmdir
7271         * tests/test-rmdir.c (main): Factor guts...
7272         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
7273         * modules/rmdir-tests (Files): Ship new file.
7274         * modules/openat-tests: New test.
7275         * tests/test-unlinkat.c: Likewise.
7276
7277         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
7278         * modules/rmdir-errno (Status, Notice): Now obsolete.
7279
7280         rmdir: work around cygwin 1.5.x and mingw bugs
7281         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
7282         * lib/rmdir.c (rmdir): Work around it.
7283         * modules/rmdir (Status, Notice): No longer obsolete.
7284         (Files): Add dos.m4.
7285         (Depends-on): Add unistd.
7286         (configure.ac): Set witnesses.
7287         (License): Relax to LGPLv2+.
7288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
7289         * modules/unistd (Makefile.am): Substitute witnesses.
7290         * lib/unistd.in.h (rmdir): Declare replacement.
7291         * doc/posix-functions/rmdir.texi (rmdir): Document this.
7292         * modules/rmdir-tests: New tests.
7293         * tests/test-rmdir.c: Likewise.
7294
7295 2009-09-15  Eric Blake  <ebb9@byu.net>
7296
7297         fchdir: improve use of replacement functions
7298         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
7299         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
7300         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
7301         REPLACE_CLOSEDIR.
7302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
7303         * modules/sys_stat (Makefile.am): Substitute correct witness.
7304         * modules/dirent (Makefile.am): Likewise.
7305         * modules/unistd (Makefile.am): Likewise.
7306         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
7307         * lib/unistd.in.h (dup): Likewise.
7308         * lib/sys_stat.in.h (fstat): Likewise.
7309
7310         maint: ignore gnulib-tool temp files
7311         * .gitignore: Ignore files created during gnulib-tool --test.
7312
7313 2009-09-13  Jim Meyering  <meyering@redhat.com>
7314
7315         posixtm: don't reject a time that specify "60" as the number of seconds
7316         * lib/posixtm.c (posixtime): The code to reject invalid dates
7317         would also reject a time specified with the .60 suffix.
7318         But POSIX allows that, in order to accommodate leap seconds.
7319         So don't reject it.
7320         (main): Adjust tests accordingly.
7321         * modules/posixtm (Depends-on): Add stpcpy.
7322
7323 2009-09-11  Jim Meyering  <meyering@redhat.com>
7324
7325         announce-gen: include [$release_type] in emitted Subject:
7326         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
7327         e.g., [stable] in the emitted Subject: line.
7328
7329 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7330
7331         Remove obsolete macros from several modules.
7332         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
7333         obsolete Autoconf macros with their modern counterparts.
7334         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
7335         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
7336         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
7337         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
7338         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
7339         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7340         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
7341         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
7342         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
7343         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
7344         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7345         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7346         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
7347         * m4/sockets.m4 (gl_SOCKETS): Likewise.
7348         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
7349         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
7350         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
7351         * m4/time_r.m4 (gl_TIME_R): Likewise.
7352         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
7353         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
7354         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
7355
7356         Fix copyright header in build-aux scripts.
7357         * build-aux/git-version-gen: Fix copyright header to match GPLv3
7358         recommendation.
7359         * build-aux/ncftpput-ftp: Likewise.
7360         * build-aux/update-copyright: Likewise.
7361
7362 2009-09-09  Eric Blake  <ebb9@byu.net>
7363
7364         test-link: allow Linux choice of errno
7365         * tests/test-link.c (main): Relax test for alternate error.
7366
7367         strndup: fix improper m4 caching
7368         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
7369         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
7370         (gl_PREREQ_STRNDUP): Delete.
7371         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
7372         * modules/string (Makefile.am): Substitute it.
7373         * lib/string.in.h (strndup): Modernize prototype.
7374
7375         getcwd: port to mingw
7376         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
7377         different from the POSIX assumptions made throughout the getcwd
7378         module; fortunately, the mingw getcwd does not need replacement.
7379         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
7380         * modules/getcwd-tests: New test.
7381         * tests/test-getcwd.c: Likewise.
7382
7383         link: fix platform bugs
7384         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
7385         * lib/link.c (link): Work around them.  Fix related mingw bug.
7386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
7387         * modules/unistd (Makefile.am): Substitute it.
7388         * lib/unistd.in.h (link): Declare replacement.
7389         * doc/posix-functions/link.texi (link): Document this.
7390         * modules/link (Depends-on): Add strdup-posix, sys_stat.
7391
7392         test-link: consolidate into single C program, test more cases
7393         * tests/test-link.sh: Delete.
7394         * tests/test-link.c: Test more error conditions.  Exposes bugs on
7395         at least Cygwin and Solaris.
7396         * modules/link-tests (Files): Remove unused file.
7397         (Depends-on): Add errno, sys_stat.
7398         (Makefile.am): Simplify.
7399
7400 2009-09-08  Bruno Haible  <bruno@clisp.org>
7401
7402         Work around towlower, towupper bug on mingw.
7403         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
7404         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
7405         * doc/posix-functions/towlower.texi: Mention the mingw bug.
7406         * doc/posix-functions/towupper.texi: Likewise.
7407         Reported by Eric Blake.
7408
7409 2009-09-08  Jim Meyering  <meyering@redhat.com>
7410
7411         build: don't try to run autoheader if we don't use it
7412         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
7413         is not used in configure.ac.
7414
7415 2009-09-08  Eric Blake  <ebb9@byu.net>
7416
7417         euidaccess: fix compilation error
7418         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
7419
7420         rawmemchr: relax license
7421         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
7422         okay.
7423         Reported by Jim Meyering.
7424
7425         mkfifoat: new module
7426         * modules/mkfifoat: New file.
7427         * lib/mkfifoat.c: Likewise.
7428         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
7429         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7430         * modules/sys_stat (Makefile.am): Use them.
7431         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
7432         * MODULES.html.sh (File system functions): Mention module.
7433         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
7434         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
7435         * modules/mkfifoat-tests: New test.
7436         * tests/test-mkfifoat.c: Likewise.
7437
7438         strchrnul: relax license
7439         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
7440         okay.
7441         Reported by Jim Meyering.
7442
7443 2009-09-08  Eric Blake  <ebb9@byu.net>
7444
7445         fstatat: fix compilation on Solaris
7446         * lib/fstatat.c (includes): Add fcntl.h.
7447         Reported by Pádraig Brady.
7448
7449 2009-09-07  Eric Blake  <ebb9@byu.net>
7450
7451         rename: modernize replacement
7452         * modules/rename (Depends-on): Add stdio.
7453         (configure.ac): Declare witness.
7454         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
7455         stdio take care of replacement.
7456         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
7457         * modules/stdio (Makefile.am): Substitute them.
7458         * lib/stdio.in.h (rename): Declare replacement.
7459         * lib/rename.c (includes): Allow cross-compilation to non-windows
7460         machines.
7461         * doc/posix-functions/rename.texi (rename): Improve
7462         documentation.
7463
7464         stdio: sort witness names
7465         * modules/stdio (Makefile.am): Sort replacements.
7466         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
7467         * lib/stdio.in.h: Likewise.
7468
7469         getcwd: minor cleanups
7470         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
7471         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
7472
7473         openat: provide more convenience names
7474         * modules/faccessat (configure.ac): Add C witness.
7475         * lib/unistd.in.h (readlinkat): Fix typo.
7476         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
7477         convenience wrappers.
7478         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
7479         wrappers in syntax checks.
7480
7481 2009-09-06  Eric Blake  <ebb9@byu.net>
7482
7483         doc: fix comments in recent patches
7484         * lib/faccessat.c: Mention correct function.
7485         * lib/fchmodat.c: Likewise.
7486         * lib/fchownat.c: Likewise.
7487         * lib/symlinkat.c: Likewise.
7488         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
7489         constants.
7490
7491         faccessat, symlinkat: continue cleanup of previous patch
7492         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
7493         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
7494         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
7495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
7496         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
7497         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
7498         set.
7499
7500 2009-09-06  Bruno Haible  <bruno@clisp.org>
7501
7502         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
7503         (fstatat): Declare if GNULIB_FSTATAT is set.
7504         (mkdirat): Declare if GNULIB_MKDIRAT is set.
7505         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
7506         (unlinkat): Declare if GNULIB_UNLINKAT is set.
7507         * modules/fcntl-h (Files): Remove m4/openat.m4.
7508         * modules/sys_stat (Files): Remove m4/openat.m4.
7509         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
7510         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
7511         * modules/unistd (Files): Remove m4/openat.m4.
7512         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
7513         GNULIB_OPENAT.
7514         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
7515         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
7516         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
7517         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
7518         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
7519         gl_OPENAT_DEFAULTS.
7520         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
7521         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
7522         Don't require gl_OPENAT_DEFAULTS.
7523         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
7524         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
7525         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
7526         (gl_OPENAT_DEFAULTS): Remove macro.
7527
7528 2009-09-06  Bruno Haible  <bruno@clisp.org>
7529
7530         * modules/openat (configure.ac): Remove unneeded witness.
7531
7532 2009-09-06  Bruno Haible  <bruno@clisp.org>
7533
7534         Set errno to ENOSYS when a function is entirely unsupported.
7535         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
7536         EOPNOTSUPP.
7537         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
7538         * modules/chown (Depends-on): Remove errno.
7539
7540 2009-09-06  Bruno Haible  <bruno@clisp.org>
7541
7542         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
7543
7544 2009-09-06  Bruno Haible  <bruno@clisp.org>
7545
7546         * lib/sys_stat.in.h: Fix preprocessor command indentation.
7547
7548 2009-09-06  Ben Pfaff  <blp@gnu.org>
7549             Bruno Haible  <bruno@clisp.org>
7550
7551         Work around a glibc bug in strtok_r.
7552         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
7553         Undefine if UNDEFINE_STRTOK_R is set.
7554         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
7555         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7556         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
7557         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
7558         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
7559         UNDEFINE_STRTOK_R.
7560         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
7561
7562 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
7563
7564         exclude: minor fix
7565         * lib/exclude.c: Include wctype.h
7566
7567 2009-09-06  Akim Demaille  <demaille@gostai.com>
7568
7569         bootstrap: improve error message
7570         * build-aux/bootstrap (find_tool): Upon failure, report the list
7571         of candidates.
7572         Honor the initial value of the envvar.
7573
7574 2009-09-05  Eric Blake  <ebb9@byu.net>
7575
7576         symlinkat: new module
7577         * modules/symlinkat: New file.
7578         * lib/symlinkat.c: Likewise.
7579         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
7580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
7581         * modules/unistd (Makefile.am): Use them.
7582         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
7583         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
7584         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
7585         * MODULES.html.sh (File system functions): Mention module.
7586         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
7587         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
7588         * modules/symlinkat-tests: New test.
7589         * tests/test-symlinkat.c: Likewise.
7590
7591         test-openat-safer: add more checks
7592         * tests/test-openat-safer.c (main): Check more code paths.
7593
7594 2009-09-05  Jim Meyering  <meyering@redhat.com>
7595
7596         syntax-check: detect unnecessary inclusion of openat.h
7597         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
7598
7599 2009-09-05  Bruno Haible  <bruno@clisp.org>
7600
7601         Support towlower, towupper.
7602         * doc/posix-functions/towlower.texi: Mention module wctype.
7603         * doc/posix-functions/towupper.texi: Likewise.
7604         * lib/wctype.in.h (towlower, towupper): New functions.
7605         * tests/test-wctype.c: Include stdio.h, stdlib.h.
7606         (ASSERT): New macro.
7607         (e): New variable.
7608         (main): Test also towlower, towupper. Test WEOF argument.
7609         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
7610
7611 2009-09-05  Bruno Haible  <bruno@clisp.org>
7612
7613         Fix conversion behaviour when the input is invalid.
7614         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
7615         mark occurring in first pass of indirect conversion.
7616         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
7617         input.
7618         Found by clang's static analyzer.
7619
7620 2009-09-05  Bruno Haible  <bruno@clisp.org>
7621
7622         * tests/test-striconveh.c (main): Test indirect conversion on platforms
7623         where direct conversion is possible.
7624
7625 2009-09-04  Eric Blake  <ebb9@byu.net>
7626
7627         openat: fail with ENOENT on empty name
7628         * lib/openat-proc.c (openat_proc_name): Special-case the empty
7629         buffer.
7630
7631         link-follow: fix logic bug in prior patch
7632         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
7633         reversed sense of yes and no in prior patch.  Avoid confusing
7634         compilation failure with desired semantics.
7635
7636         link-follow: accomodate mingw and cross-compilation
7637         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
7638         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
7639         cross-compilation results to -1, to make linkat easier to
7640         implement when cross-compiling.  Trivially support mingw.
7641         * modules/link-follow (configure.ac): Call new name.
7642         * NEWS: Mention this.
7643
7644 2009-09-03  Eric Blake  <ebb9@byu.net>
7645
7646         faccessat: compile replacement
7647         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
7648         needed.
7649
7650         fts: fix compilation error
7651         * lib/fts.c (includes): Re-add "openat.h", for
7652         openat_needs_fchdir.
7653
7654         faccessat: new module
7655         * modules/faccessat: New file.
7656         * lib/faccessat.c: Likewise.
7657         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
7658         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7659         * modules/unistd (Makefile.am): Use it.
7660         * lib/unistd.in.h (faccessat): Declare it.
7661         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
7662         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
7663         * MODULES.html.sh (File system functions): Mention it.
7664         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
7665         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
7666
7667         euidaccess: prefer POSIX over non-standard implementation
7668         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
7669         * lib/euidaccess.c (euidaccess): Use it if available.
7670
7671         openat: make template easier to use
7672         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
7673         AT_FUNC_F2 to be undefined.
7674         (VALIDATE_FLAG): New macro; use it to reject bad flags.
7675         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
7676         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
7677         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
7678         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
7679         Likewise.
7680         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
7681         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
7682         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
7683         Likewise.
7684
7685         openat: declare in POSIX headers
7686         * NEWS: Mention this.
7687         * modules/openat (configure.ac): Declare witnesses.
7688         (Depends-on): Add fcntl-h, sys_stat, unistd.
7689         (Include): Mention correct headers.
7690         * modules/fcntl-h (Depends-on): Add link-warning.
7691         (Files): Add openat.m4.
7692         (Makefile.am): Substitute witnesses.
7693         * modules/sys_stat (Files, Makefile.am): Likewise.
7694         * modules/unistd (Files, Makefile.am): Likewise.
7695         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
7696         (gl_OPENAT_DEFAULTS): New macro.
7697         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
7698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
7699         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
7700         (SYS_STAT_H): Remove unused variable.
7701         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
7702         * lib/fcntl--.h (includes): Remove unneeded header.
7703         * lib/openat-safer.c (includes): Likewise.
7704         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
7705         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
7706         appropriate headers.
7707         (__OPENAT_PREFIX): Delete.
7708         * lib/fcntl.in.h (openat): Provide declaration.
7709         (AT_FDCWD): Fix Solaris bug.
7710         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
7711         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
7712         * lib/fchmodat.c (includes):  Adjust to find declaration.
7713         * lib/fchownat.c (includes): Likewise.
7714         * lib/mkdirat.c (includes): Likewise.
7715         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
7716         still visible.
7717
7718 2009-09-02  Eric Blake  <ebb9@byu.net>
7719
7720         errno: use consistently
7721         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
7722         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
7723         * lib/canonicalize.c (ELOOP): Likewise.
7724         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
7725         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
7726         * lib/lchown.c (EOPNOTSUPP): Likewise.
7727         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
7728         * lib/savewd.c (ESTALE): Likewise.
7729         * lib/settime.c (ENOSYS): Likewise.
7730         * lib/utimens.c (ENOSYS): Likewise.
7731         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
7732         * lib/chdir-safer.c (ELOOP): Likewise.
7733         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
7734         * modules/c-stack (Depends-on): Add errno.
7735         * modules/canonicalize (Depends-on): Likewise.
7736         * modules/chdir-safer (Depends-on): Likewise.
7737         * modules/fdopendir (Depends-on): Likewise.
7738         * modules/inet_ntop (Depends-on): Likewise.
7739         * modules/inet_pton (Depends-on): Likewise.
7740         * modules/lchown (Depends-on): Likewise.
7741         * modules/openat (Depends-on): Likewise.
7742         * modules/savewd (Depends-on): Likewise.
7743         * modules/settime (Depends-on): Likewise.
7744         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
7745
7746         fts: avoid leaking fds
7747         * modules/fts (Depends-on): Add cloexec.
7748         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
7749         flag.
7750
7751         fts: make directory fds more robust
7752         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
7753         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
7754
7755         backupfile, chdir-long, fts, savedir: make safer
7756         * lib/backupfile.c (includes): Use "dirent--.h", since
7757         numbered_backup can write to stderr during readdir.
7758         * lib/savedir.c (includes): Likewise.
7759         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
7760         emulation can write to stderr on failure.
7761         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
7762         * lib/getcwd.c: Document why opendir_safer is unused.
7763         * lib/glob.c: Likewise.
7764         * lib/scandir.c: Likewise.
7765         * lib/openat-proc.c: Likewise, for open_safer.
7766         * modules/backupfile (Depends-on): Add dirent-safer.
7767         * modules/savedir (Depends-on): Likewise.
7768         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
7769         * modules/chdir-long (Depends-on): Add openat-safer.
7770
7771         openat-safer: new module
7772         * modules/openat-safer: New file.
7773         * lib/openat-safer.c: Likewise.
7774         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
7775         * lib/fcntl-safer.h (openat_safer): Declare.
7776         * lib/fcntl--.h (openat): Override.
7777         * MODULES.html.sh (File descriptor based I/O): Mention it.
7778         * lib/openat.h: Add double-inclusion guards.
7779         * lib/openat.c (includes): Only include "fcntl-safer.h", not
7780         "fcntl--.h", so we can implement openat.
7781         * modules/openat-safer-tests: New test.
7782         * tests/test-openat-safer.c: New file.
7783
7784         dirent-safer: new module
7785         * modules/dirent-safer: New file.
7786         * lib/dirent--.h: Likewise.
7787         * lib/dirent-safer.h: Likewise.
7788         * lib/opendir-safer.c: Likewise.
7789         * m4/dirent-safer.m4: Likewise.
7790         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
7791         * modules/dirent-safer-tests: New test.
7792         * tests/test-dirent-safer.c: New file.
7793         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
7794
7795         fdopendir: optimize on mingw
7796         * lib/unistd.in.h (_gl_directory_name): New prototype.
7797         * lib/fchdir.c (_gl_directory_name): Implement it.
7798         (fchdir): Use it to simplify implementation.
7799         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
7800         fchdir, when available, to avoid calling [f]chdir().
7801
7802         fdopendir: split into its own module
7803         * lib/openat.c (fdopendir): Move...
7804         * lib/fdopendir.c: ...into new file.
7805         * modules/fdopendir: New module.
7806         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
7807         * modules/openat (Depends-on): Add fdopendir.
7808         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
7809         fdopendir here.
7810         * modules/savedir (Depends-on): Only need fdopendir, not full
7811         openat.
7812         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
7813         * lib/openat.h (fdopendir): Drop prototype.
7814         * lib/dirent.in.h (fdopendir): Provide prototype.
7815         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
7816         * modules/dirent (Makefile.am): Substitute them.
7817         * MODULES.html.sh (File system functions): Mention it.
7818         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
7819         * modules/fdopendir-tests: New file.
7820         * tests/test-fdopendir.c: Likewise.
7821
7822         fchdir: use more consistent macro convention
7823         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
7824         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
7825         REPLACE_FCHDIR, rather than relying on config.h macros.
7826         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
7827         inside a single make-time REPLACE_FCHDIR block, rather than using
7828         the config.h FCHDIR_REPLACEMENT.
7829         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
7830         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
7831         Manage fstat replacement.
7832         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
7833         REPLACE_FCHDIR.
7834         * modules/sys_stat (Files): Add m4/unistd_h.m4.
7835         (Makefile.am): Substitute REPLACE_FCHDIR.
7836         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
7837         FCHDIR_REPLACEMENT.
7838         * lib/dup-safer.c (dup_safer): Likewise.
7839         * lib/dup2.c (rpl_dup2): Likewise.
7840         * lib/dup3.c (rpl_dup3): Likewise.
7841         * lib/open.c (rpl_open): Likewise.
7842
7843         fchdir: simplify error handling, and support dup3
7844         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
7845         stdbool, malloc-posix, realloc-posix.
7846         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
7847         (ensure_dirs_slot): Return false on allocation failure.
7848         (rpl_dup2): Delete.
7849         (_gl_register_dup): New function.
7850         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
7851         (_gl_register_fd): Close fd on allocation failure.
7852         * lib/fcntl.in.h (_gl_register_fd): Update signature.
7853         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
7854         prototype.
7855         (rpl_dup2_fchdir): Delete prototype.
7856         * lib/open.c (open): Update caller.
7857         * lib/dup2.c (dup2): Track fchdir metadata.
7858         * lib/dup3.c (dup3): Likewise.
7859         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
7860         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
7861
7862 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7863
7864         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
7865         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
7866         don't pass arguments to AC_OUTPUT.
7867
7868 2009-09-02  Bruno Haible  <bruno@clisp.org>
7869
7870         * modules/mkdtemp (License): Relicense under LGPLv2+.
7871         Reported by Paolo Bonzini.
7872
7873 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7874
7875         Replace uses of obsolete autoconf macros in Jim's modules.
7876         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
7877         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
7878         can evoke a warning from autoconf when run with -Wobsolete
7879         enabled.  They were declared obsolete for good reasons (see
7880         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
7881         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
7882         should not continue using the deprecated macros.
7883         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
7884         obsolete Autoconf macros with modern counterparts.
7885         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7886         * m4/dos.m4 (gl_AC_DOS): Likewise.
7887         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
7888         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
7889         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
7890         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
7891         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
7892         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
7893         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
7894         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
7895         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
7896         Likewise.
7897         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
7898         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
7899         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
7900         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
7901         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
7902         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
7903
7904 2009-09-01  Eric Blake  <ebb9@byu.net>
7905
7906         fchdir: fix off-by-one bug in previous patch
7907         * lib/fchdir.c (rpl_fstat): Use correct bounds.
7908         (_gl_unregister_fd): Delete useless if.
7909
7910 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
7911
7912         maint.mk: sort the list of syntax-check rules
7913         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
7914         easier to get a sense of progress when the rules are run sequentially
7915         and take a long time.
7916
7917 2009-09-01  Simon Josefsson  <simon@josefsson.org>
7918
7919         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
7920         * modules/netinet_in: Likewise.
7921         * modules/sys_file: Likewise.
7922         * modules/sys_ioctl: Likewise.
7923         * modules/sys_select: Likewise.
7924         * modules/sys_socket: Likewise.
7925         * modules/sys_stat: Likewise.
7926         * modules/sys_time: Likewise.
7927         * modules/sys_times: Likewise.
7928         * modules/sys_utsname: Likewise.
7929         * modules/sys_wait: Likewise.
7930
7931 2009-09-01  Jim Meyering  <meyering@redhat.com>
7932
7933         fts: help ensure that return values are not ignored
7934         * lib/fts_.h (__GNUC_PREREQ): Define.
7935         (__attribute_warn_unused_result__): Define.
7936         (fts_children, fts_close, fts_open, fts_read): Declare with
7937         __attribute_warn_unused_result__.
7938
7939         fts: fts_close now fails also when closing a dir file descriptor fails
7940         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
7941         and propagate to caller, along with errno.
7942
7943         announce-gen: correct formatting in --help output
7944         * build-aux/announce-gen (usage): Move the one-line description in
7945         --help output "up", to where it belongs, just after Usage:.
7946
7947 2009-08-31  Eric Blake  <ebb9@byu.net>
7948
7949         fchdir: port to mingw
7950         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
7951         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
7952         opened, then use a substitute.
7953         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
7954         replacement.
7955         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
7956         (_gl_register_fd): No need to check stat if open already filters
7957         all directories.
7958         (fchdir): Fix error condition to match POSIX.
7959         * modules/fchdir (Depends-on): Add sys_stat.
7960         * doc/posix-functions/open.texi (open): Document the limitation.
7961         * modules/fchdir-tests: New file.
7962         * tests/test-fchdir.c: Likewise.
7963
7964         canonicalize: allow cross-testing from cygwin to mingw
7965         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
7966         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
7967         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
7968         Likewise.
7969         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
7970         target does not support symlinks.
7971         * tests/test-canonicalize-lgpl.sh: Likewise.
7972
7973         chown: avoid compilation warning on mingw
7974         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
7975         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
7976         mingw.
7977         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
7978         * modules/chown (Depends-on): Add errno.
7979
7980 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
7981
7982         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
7983         command.
7984
7985 2009-08-31  Jim Meyering  <meyering@redhat.com>
7986
7987         canonicalize: remove useless initialization
7988         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
7989         initialization of local, "end".
7990
7991 2009-08-30  Bruno Haible  <bruno@clisp.org>
7992
7993         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
7994         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
7995         ENOSYS.
7996
7997 2009-08-30  Bruno Haible  <bruno@clisp.org>
7998
7999         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
8000         /usr/xpg4/bin/tr when it exists.
8001         * tests/test-pipe-filter-gi1.sh: Likewise.
8002
8003 2009-08-30  Bruno Haible  <bruno@clisp.org>
8004
8005         Work around deficient /usr/bin/id program on Solaris.
8006         * tests/test-file-has-acl.sh (ID): New variable.
8007         * tests/test-set-mode-acl.sh (ID): Likewise.
8008         * tests/test-copy-acl.sh (ID): Likewise.
8009         * tests/test-copy-file.sh (ID): Likewise.
8010
8011 2009-08-30  Bruno Haible  <bruno@clisp.org>
8012
8013         New module 'xstriconveh'.
8014         * lib/xstriconveh.h: New file.
8015         * lib/xstriconveh.c: New file.
8016         * modules/xstriconveh: New file.
8017
8018 2009-08-30  Bruno Haible  <bruno@clisp.org>
8019
8020         Make it easier to use mem_cd_iconveh.
8021         * lib/striconveh.h (iconveh_t): New type.
8022         (iconveh_open, iconveh_close): New declarations.
8023         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
8024         with a single 'const iconveh_t *' argument.
8025         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
8026         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
8027         with a single 'const iconveh_t *' argument.
8028         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
8029         * tests/test-striconveh.c (main): Update.
8030         * NEWS: Mention the change.
8031
8032 2009-08-30  Bruno Haible  <bruno@clisp.org>
8033
8034         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
8035         problem.
8036
8037 2009-08-30  Bruno Haible  <bruno@clisp.org>
8038
8039         Work around iconv_open problem on Solaris.
8040         * lib/iconv_open-solaris.gperf: New file.
8041         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
8042         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
8043         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
8044         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
8045         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
8046         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
8047
8048 2009-08-29  Jim Meyering  <meyering@redhat.com>
8049
8050         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
8051         * top/maint.mk (cvs-check): Remove target; it was just an alias
8052         to the better-named vc-diff-check.
8053         (maintainer-distcheck): Remove rule.  It was used only from
8054         the (alpha/beta/major) target, and all of its commands but one
8055         were coreutils-specific.
8056         (vc-dist): Remove rule.
8057         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
8058         Run vc-diff-check, not vc-dist.
8059         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
8060
8061 2009-08-27  Bruno Haible  <bruno@clisp.org>
8062
8063         * tests/test-bitrotate.c (main): Remove test that uses a shift count
8064         of 0.
8065
8066 2009-08-27  Bruno Haible  <bruno@clisp.org>
8067
8068         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
8069         compilers.
8070         * doc/func.texi: Document the SunPRO C bug.
8071
8072 2009-08-27  Bruno Haible  <bruno@clisp.org>
8073
8074         Fix link error on Solaris.
8075         * tests/test-parse-duration.c (xstrdup): Remove function.
8076
8077 2009-08-26  Pádraig Brady  <P@draigbrady.com>
8078
8079         ignore-value: handle pointer types, too
8080         * lib/ignore-value.h (__attribute__): Remove definition.
8081         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
8082         of a more concise and more-often effective "(void) i" statement.
8083         (ignore_ptr): New function to suppress warnings from functions that
8084         return pointers, and to make it explicit that one function doesn't
8085         handle all cases.
8086
8087 2009-08-25  Bruno Haible  <bruno@clisp.org>
8088
8089         dup2: work around a Linux bug.
8090         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
8091         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
8092         * doc/posix-functions/dup2.texi: Mention the Linux bug.
8093         Reported by Simon Josefsson.
8094
8095 2009-08-25  Jim Meyering  <meyering@redhat.com>
8096
8097         libguestfs uses gnulib
8098         * users.txt: Add libguestfs.
8099
8100 2009-08-24  Eric Blake  <ebb9@byu.net>
8101
8102         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
8103         * lib/pipe2.c (includes): Add binary-io.h.
8104         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
8105
8106 2009-08-24  Bruno Haible  <bruno@clisp.org>
8107
8108         Tolerate declared but missing accept4 syscall.
8109         * lib/accept4.c (accept4): Invoke original accept4 function first, if
8110         available.
8111         * lib/sys_socket.in.h (accept4): If the function is already present,
8112         override it.
8113         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
8114         * modules/accept4 (Makefile.am): Compile accept4.c always.
8115         Reported by Paolo Bonzini and Eric Blake.
8116
8117 2009-08-23  Bruno Haible  <bruno@clisp.org>
8118
8119         New module 'accept4'.
8120         * lib/sys_socket.in.h (accept4): New declaration.
8121         * lib/accept4.c: New file.
8122         * m4/accept4.m4: New file.
8123         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
8124         GNULIB_ACCEPT4, HAVE_ACCEPT4.
8125         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
8126         HAVE_ACCEPT4.
8127         * modules/accept4: New file.
8128         * doc/glibc-functions/accept4.texi: Mention the new module.
8129
8130 2009-08-24  Jim Meyering  <meyering@redhat.com>
8131
8132         progname: also set global program_invocation_name, when possible
8133         Before this change, a libtool-enabled program that calls glibc's
8134         error function would report the program name as
8135         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
8136         * modules/progname (configure.ac): Check for a declaration of
8137         program_invocation_name.
8138         * lib/progname.c:  Include <errno.h>.
8139         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
8140         Set program_invocation_name.
8141
8142 2009-08-23  Bruno Haible  <bruno@clisp.org>
8143
8144         * lib/dup3.c: Include <string.h>.
8145
8146 2009-08-23  Bruno Haible  <bruno@clisp.org>
8147
8148         * lib/dup3.c (dup3): Test only once whether the system actually exists.
8149         * lib/pipe2.c (pipe2): Likewise.
8150         Suggested by Eric Blake.
8151
8152 2009-08-23  Bruno Haible  <bruno@clisp.org>
8153
8154         Tolerate declared but missing dup3 syscall.
8155         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
8156         * lib/unistd.in.h (dup3): If the function is already present,
8157         override it.
8158         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
8159         * modules/dup3 (Makefile.am): Compile dup3.c always.
8160         Reported by Paolo Bonzini.
8161
8162 2009-08-23  Bruno Haible  <bruno@clisp.org>
8163
8164         Tolerate declared but missing pipe2 syscall.
8165         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
8166         available.
8167         * lib/unistd.in.h (pipe2): If the function is already present,
8168         override it.
8169         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
8170         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
8171         Reported by Paolo Bonzini.
8172
8173 2009-08-23  Bruno Haible  <bruno@clisp.org>
8174
8175         * lib/pipe2.c (pipe2): Move #ifs inside function.
8176
8177 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
8178
8179         quotearg: document limitations of quote_these_too
8180         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
8181         those limitations are created.
8182         * lib/quotearg.h (set_char_quoting): Document that digits and
8183         letters that are special after backslash are not permitted.
8184         (quotearg_char): Cross-reference set_char_quoting documentation.
8185
8186 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
8187
8188         quotearg: implement custom_quoting_style
8189         * lib/quotearg.c: (struct quoting_options): Add left_quote and
8190         right_quote fields.
8191         (set_custom_quoting): New public function.
8192         (quotearg_buffer_restyled): Add left_quote and right_quote
8193         arguments, handle them very much like locale quoting, and update
8194         all uses.
8195         (quotearg_n_custom): New public function.
8196         (quotearg_n_custom_mem): New public function.
8197         (quotearg_custom): New public function.
8198         (quotearg_custom_mem): New public function.
8199         * lib/quotearg.h: Prototype and document new public functions.
8200         (enum quoting_style): For escape_quoting_style and
8201         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
8202         ignored even though they're otherwise like c_quoting_style.
8203         Add custom_quoting_style member and document with comparison to
8204         clocale_quoting_style.
8205         * tests/test-quotearg.c (custom_quotes): New array.
8206         (custom_results): New array.
8207         (main): Extend to test custom quoting.
8208
8209 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
8210
8211         quotearg: fix right quote escaping when it's in quote_these_too
8212         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
8213         quote, be sure to prepend only one backslash.
8214         * tests/test-quotearg.c (use_quote_double_quotes): New function.
8215         (main): Test it.
8216
8217 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
8218
8219         quotearg-tests: test escaping of embedded locale quotes
8220         * tests/test-quotearg.c (struct result_strings): Add member for
8221         new input.
8222         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
8223         (inputs): Add new input.
8224         (results_g): Add expected results.
8225         (flag_results): Likewise.
8226         (locale_results): Likewise.
8227         (compare_strings): Check those.
8228
8229 2009-08-23  Bruno Haible  <bruno@clisp.org>
8230
8231         Tests for module 'dup3'.
8232         * modules/dup3-tests: New file.
8233         * tests/test-dup3.c: New file.
8234
8235         New module 'dup3'.
8236         * lib/unistd.in.h (dup3): New declaration.
8237         * lib/dup3.c: New file.
8238         * m4/dup3.m4: New file.
8239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
8240         HAVE_DUP3.
8241         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
8242         * modules/dup3: New file.
8243         * doc/glibc-functions/dup3.texi: Mention the new module.
8244
8245 2009-08-23  Bruno Haible  <bruno@clisp.org>
8246
8247         Tweak the dup2 test.
8248         * tests/test-dup2.c (main): Create the test file empty. Verify that an
8249         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
8250         the test file is still empty. Fix argument order of lseek.
8251
8252 2009-08-23  Bruno Haible  <bruno@clisp.org>
8253
8254         Avoid test link errors when the modules getopt-gnu, gettext are used.
8255         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
8256         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8257
8258 2009-08-23  Bruno Haible  <bruno@clisp.org>
8259
8260         Fix getdtablesize() on mingw.
8261         * lib/getdtablesize.c (getdtablesize): Implement differently.
8262         * lib/unistd.in.h (getdtablesize): Improve comment.
8263
8264 2009-08-23  Bruno Haible  <bruno@clisp.org>
8265
8266         New module 'mkostemp'.
8267         Based on Ulrich Drepper's 2007-08-10 change in glibc.
8268         * lib/stdlib.in.h (mksotemp): New declaration.
8269         * lib/mkostemp.c: New file, from glibc with modifications.
8270         * lib/tempname.h (GT_FILE): Remove outdated comment.
8271         (gen_tempname): Add flags argument.
8272         * lib/tempname.c (__GT_BIGFILE): Remove macro.
8273         (__GT_FILE): Map to 1.
8274         (small_open, large_open): Remove macros.
8275         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
8276         * lib/mkstemp.c (mkstemp): Update.
8277         * lib/mkdtemp.c (mkdtemp): Likewise.
8278         * m4/mkostemp.m4: New file.
8279         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
8280         HAVE_MKOSTEMP.
8281         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
8282         HAVE_MKOSTEMP.
8283         * modules/mkostemp: New file, based on modules/mkstemp.
8284         * doc/glibc-functions/mkostemp.texi: Mention the new module.
8285         * NEWS: Mention the change.
8286
8287 2009-08-23  Bruno Haible  <bruno@clisp.org>
8288
8289         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
8290         Reported by Eric Blake.
8291
8292 2009-08-23  Bruno Haible  <bruno@clisp.org>
8293
8294         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
8295         Reported by Eric Blake.
8296
8297 2009-08-23  Bruno Haible  <bruno@clisp.org>
8298
8299         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
8300         * modules/pipe2 (Depends-on): Likewise.
8301
8302 2009-08-23  Eric Blake  <ebb9@byu.net>
8303
8304         fcntl-h: add O_TTY_INIT support
8305         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
8306         * tests/test-fcntl-h.c (o): Test it.
8307         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
8308
8309         fcntl-h: rename from fcntl, in preparation for fcntl(2)
8310         * modules/fcntl: Move <fcntl.h> header replacement...
8311         * modules/fcntl-h: ...to new name, so as not to collide with
8312         like-named function.
8313         * tests/test-fcntl.c: Rename...
8314         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
8315         * modules/fcntl-tests: Rename...
8316         * modules/fcntl-h-tests: ...to this.  Update test file name.
8317         * modules/chdir-long (Depends-on): Update clients.
8318         * modules/chdir-safer (Depends-on): Likewise.
8319         * modules/fcntl-safer (Depends-on): Likewise.
8320         * modules/fts (Depends-on): Likewise.
8321         * modules/mkancesdirs (Depends-on): Likewise.
8322         * modules/mkdir-p (Depends-on): Likewise.
8323         * modules/open (Depends-on): Likewise.
8324         * modules/savewd (Depends-on): Likewise.
8325         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
8326         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
8327
8328 2009-08-22  Bruno Haible  <bruno@clisp.org>
8329
8330         * modules/binary-io (License): Relicense under LGPL.
8331         * modules/pipe2 (License): Likewise.
8332
8333 2009-08-22  Bruno Haible  <bruno@clisp.org>
8334
8335         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
8336         return value.
8337         * lib/pipe-filter-gi.c (filter_init): Likewise.
8338         Reported by Eric Blake.
8339
8340 2009-08-22  Bruno Haible  <bruno@clisp.org>
8341
8342         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
8343         * modules/pipe (Depends-on): Add pipe2.
8344
8345 2009-08-22  Bruno Haible  <bruno@clisp.org>
8346
8347         Tests for module 'pipe2'.
8348         * modules/pipe2-tests: New file.
8349         * tests/test-pipe2.c: New file.
8350
8351         New module 'pipe2'.
8352         * lib/unistd.in.h (pipe2): New declaration.
8353         * lib/pipe2.c: New file.
8354         * m4/pipe2.m4: New file.
8355         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
8356         HAVE_PIPE2.
8357         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
8358         * modules/pipe2: New file.
8359         * doc/glibc-functions/pipe2.texi: Mention the new module.
8360
8361 2009-08-22  Bruno Haible  <bruno@clisp.org>
8362
8363         Reference some new glibc functions.
8364         * doc/glibc-functions/accept4.texi: New file.
8365         * doc/glibc-functions/dup3.texi: New file.
8366         * doc/glibc-functions/mkostemp.texi: New file.
8367         * doc/glibc-functions/pipe2.texi: New file.
8368         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
8369         (Glibc sys/socket.h): Refer to accept4.
8370         (Glibc unistd.h): Refer to dup3, pipe2.
8371         Reported by Eric Blake.
8372
8373 2009-08-22  Jim Meyering  <meyering@redhat.com>
8374             Bruno Haible  <bruno@clisp.org>
8375
8376         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
8377         This makes it so packages using automake-1.11's silent-rules option
8378         can print e.g., a single "GEN    configmake.h" line, rather than
8379         the 30+ statements that perform the job.  If you want to see the
8380         actual commands, you can still run "make V=1".
8381         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
8382         so that make output is abbreviated when those variables are defined
8383         appropriately.
8384         * modules/argz: Likewise.
8385         * modules/arpa_inet: Likewise.
8386         * modules/byteswap: Likewise.
8387         * modules/configmake: Likewise.
8388         * modules/dirent: Likewise.
8389         * modules/errno: Likewise.
8390         * modules/fcntl: Likewise.
8391         * modules/float: Likewise.
8392         * modules/fnmatch: Likewise.
8393         * modules/getopt-posix: Likewise.
8394         * modules/glob: Likewise.
8395         * modules/iconv_open: Likewise.
8396         * modules/inttypes: Likewise.
8397         * modules/localcharset: Likewise.
8398         * modules/locale: Likewise.
8399         * modules/math: Likewise.
8400         * modules/netdb: Likewise.
8401         * modules/netinet_in: Likewise.
8402         * modules/poll: Likewise.
8403         * modules/posix_spawnp-tests: Likewise.
8404         * modules/sched: Likewise.
8405         * modules/search: Likewise.
8406         * modules/selinux-h: Likewise.
8407         * modules/signal: Likewise.
8408         * modules/spawn: Likewise.
8409         * modules/stdarg: Likewise.
8410         * modules/stdbool: Likewise.
8411         * modules/stddef: Likewise.
8412         * modules/stdint: Likewise.
8413         * modules/stdio: Likewise.
8414         * modules/stdlib: Likewise.
8415         * modules/string: Likewise.
8416         * modules/strings: Likewise.
8417         * modules/sys_file: Likewise.
8418         * modules/sys_ioctl: Likewise.
8419         * modules/sys_select: Likewise.
8420         * modules/sys_socket: Likewise.
8421         * modules/sys_stat: Likewise.
8422         * modules/sys_time: Likewise.
8423         * modules/sys_times: Likewise.
8424         * modules/sys_utsname: Likewise.
8425         * modules/sys_wait: Likewise.
8426         * modules/sysexits: Likewise.
8427         * modules/time: Likewise.
8428         * modules/unistd: Likewise.
8429         * modules/wchar: Likewise.
8430         * modules/wctype: Likewise.
8431
8432 2009-08-22  Jim Meyering  <meyering@redhat.com>
8433
8434         announce-gen: detect write failure
8435         * build-aux/announce-gen: Add Coda at end.
8436         Remove equivalent-but-more-verbose block at top.
8437
8438 2009-08-19  Akim Demaille  <demaille@gostai.com>
8439
8440         bootstrap: --help to stdout.
8441         * bootstrap (usage): Don't send --help to stderr.
8442         Use a here doc instead of a long string.
8443
8444 2009-08-21  Eric Blake  <ebb9@byu.net>
8445
8446         test-popen-safer: split from test-popen
8447         * tests/test-popen.c (main): Move...
8448         * tests/test-popen.h: ...into new file.
8449         * tests/test-popen-safer2.c: New file.
8450         * modules/popen-tests (Files): Add test-popen.h.
8451         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
8452         Suggested by Bruno Haible.
8453
8454         test-fcntl-safer: split from test-open
8455         * tests/test-open.c (main): Move...
8456         * tests/test-open.h: ...into new file.
8457         * tests/test-fcntl-safer.c: New file.
8458         * modules/open-tests (Files): Add test-open.h.
8459         * modules/fcntl-safer-tests: New file.
8460         Suggested by Bruno Haible.
8461
8462         test-fopen-safer: split from test-fopen
8463         * tests/test-fopen.c (main): Move...
8464         * tests/test-fopen.h: ...into new file.
8465         * tests/test-fopen-safer.c: New file.
8466         * modules/fopen-tests (Files): Add test-fopen.h.
8467         * modules/fopen-safer-tests: New file.
8468         Suggested by Bruno Haible.
8469
8470 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
8471
8472         popen-safer: test O_CLOEXEC at run-time.
8473         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
8474
8475 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
8476
8477         fcntl: move more flags to the header
8478         * lib/cloexec.c: Do not define FD_CLOEXEC here.
8479         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
8480         * lib/fcntl.in.h: Do both things here.
8481
8482 2009-08-21  Jim Meyering  <meyering@redhat.com>
8483
8484         consistently remove $@-t before redirecting to it
8485         * modules/argz: Remove $@-t and $@ before redirecting to the former.
8486         * modules/alloca-opt: Likewise.
8487         * modules/byteswap: Likewise.
8488         * modules/fnmatch: Likewise.
8489         * modules/getopt-posix: Likewise.
8490         * modules/glob: Likewise.
8491         * modules/poll: Likewise.
8492         * modules/posix_spawnp-tests: Likewise.
8493         * modules/sys_socket: Likewise.
8494         * modules/sysexits: Likewise.
8495
8496 2009-08-21  Eric Blake  <ebb9@byu.net>
8497
8498         popen: simplify access to original popen
8499         * lib/popen.c (rpl_popen): No need to worry about popen being a
8500         macro.
8501         Reported by Bruno Haible.
8502
8503 2009-08-20  Eric Blake  <ebb9@byu.net>
8504
8505         build: avoid some compiler warnings
8506         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
8507         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
8508         type.
8509         (new_exclude_segment, excluded_file_pattern_p)
8510         (excluded_file_name_p): Reduce scope.
8511         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
8512         old-style declaration.
8513
8514 2009-08-20  Simon Josefsson  <simon@josefsson.org>
8515
8516         * tests/test-exclude1.sh: Handle Windows EOL.
8517         * tests/test-exclude2.sh: Likewise.
8518         * tests/test-exclude3.sh: Likewise.
8519         * tests/test-exclude4.sh: Likewise.
8520         * tests/test-exclude5.sh: Likewise.
8521         * tests/test-exclude6.sh: Likewise.
8522         * tests/test-exclude7.sh: Likewise.
8523
8524 2009-08-19  Akim Demaille  <demaille@gostai.com>
8525
8526         bootstrap: find sha1sum when named gsha1sum.
8527         * bootstrap (find_tool): New.
8528         ($SHA1SUM): New.
8529         Use it.
8530
8531 2009-08-20  Jim Meyering  <meyering@redhat.com>
8532
8533         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
8534         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
8535         expression that converts "." in a file name to "\." in the resulting
8536         regexp.  Start with a dummy statement, so that prior shell variable
8537         definitions are expanded portably.  Reported by Simon Josefsson.
8538
8539 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
8540
8541         Fix polling for writeability of a screen buffer.
8542         * lib/poll.c: Distinguish input and screen buffers for the
8543         Win32 implementation.
8544         * lib/select.c: Likewise.
8545
8546 2009-08-19  Eric Blake  <ebb9@byu.net>
8547
8548         popen-safer: prevent popen from clobbering std descriptors
8549         * modules/popen-safer: New file.
8550         * lib/popen-safer.c: Likewise.
8551         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
8552         * lib/stdio--.h (popen): Provide override.
8553         * lib/stdio-safer.h (popen_safer): Provide declaration.
8554         * tests/test-popen.c (includes): Partially test this.
8555         * modules/popen-safer-tests: New file, for more tests.
8556         * tests/test-popen-safer.c: Likewise.
8557         * MODULES.html.sh (file stream based Input/Output): Mention it.
8558
8559         tests: test some of the *-safer modules
8560         * modules/fopen-safer (Depends-on): Add fopen.
8561         * modules/fcntl-safer (Depends-on): Add fcntl.
8562         * modules/stdlib-safer (Depends-on): Add stdlib.
8563         (configure.ac): Set indicator.
8564         * modules/unistd-safer (configure.ac): Likewise.
8565         * modules/tmpfile-safer (configure.ac): Likewise.
8566         (Depends-on): Add tmpfile.
8567         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
8568         active.
8569         * tests/test-fopen.c (includes): Test safer versions when they are
8570         in use.
8571         * tests/test-open.c (includes): Likewise.
8572
8573         popen: fix cygwin 1.5 bug when stdin closed
8574         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
8575         * modules/popen: New file.
8576         * modules/popen-tests: Likewise.
8577         * tests/test-popen.c: Likewise.
8578         * m4/popen.m4: Likewise.
8579         * lib/popen.c: Likewise.
8580         * lib/stdio.in.h (popen): New declaration.
8581         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
8582         * modules/stdio (Makefile.am): Likewise.
8583         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
8584
8585 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
8586
8587         maint.mk: give full control over update-copyright exclusions
8588         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
8589         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
8590         (update-copyright): Don't force inclusion of top-level
8591         ChangeLog.  Don't force exclusion of all COPYING files, but make
8592         them the default exclusion instead.
8593
8594 2009-08-16  Bruno Haible  <bruno@clisp.org>
8595
8596         Fix test failures on Solaris 10.
8597         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
8598         tests when Solaris iconv() is used.
8599         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
8600         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
8601         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
8602         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
8603         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
8604
8605 2009-08-16  Bruno Haible  <bruno@clisp.org>
8606
8607         Fix test failures on Solaris 10.
8608         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
8609         'tr' program and pass it as first argument.
8610         * tests/test-pipe-filter-gi1.sh: Likewise.
8611         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
8612         program as first argument.
8613         * tests/test-pipe-filter-gi1.c (main): Likewise.
8614
8615 2009-08-16  Eric Blake  <ebb9@byu.net>
8616
8617         fpurge: fix previous commits
8618         * modules/fpurge (Makefile.am): Make replacement conditional,
8619         partially reverting 2007-04-29 change; missed in previous
8620         attempt.
8621         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
8622         is missing.
8623
8624 2009-08-16  Bruno Haible  <bruno@clisp.org>
8625
8626         Clarify fpurge's effect on the file position.
8627         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
8628         * tests/test-fpurge.c (main): Make a second pass for checking the file
8629         position.
8630
8631 2009-08-16  Bruno Haible  <bruno@clisp.org>
8632
8633         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
8634         declaration of fpurge is missing.
8635         * tests/test-fpurge.c (main): Check that the file has not more contents
8636         than expected. Close the file before removing it.
8637
8638 2009-08-15  Eric Blake  <ebb9@byu.net>
8639
8640         fpurge: don't wrap working cygwin implementation
8641         * lib/fpurge.c (fpurge): Fix comment typo.
8642         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
8643         1.7 to avoid replacement.
8644         * tests/test-fpurge.c (main): Enhance test.
8645
8646 2009-08-15  Eric Blake  <ebb9@byu.net>
8647         and Jim Meyering  <meyering@redhat.com>
8648
8649         test-update-copyright: skip if perl is insufficient
8650         * tests/test-update-copyright.sh: Failure to run maintainer tool
8651         should not cause testsuite failure on cygwin 1.5.
8652
8653 2009-08-14  Eric Blake  <ebb9@byu.net>
8654
8655         doc: mention more functions added in cygwin 1.7.0
8656         * doc/posix-headers/limits.texi (limits.h): Update for recent
8657         cygwin additions.
8658         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
8659         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
8660         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
8661         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
8662         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
8663
8664 2009-08-14  Eric Blake  <ebb9@byu.net>
8665
8666         maint.mk: simplify update-copyright rule
8667         * top/maint.mk (update-copyright-local): Delete, and document how
8668         to do it in cfg.mk instead.
8669         (update-copyright-exclude-regexp): Delete, and document how to do
8670         it in .x-update-copyright instead.
8671         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
8672         exclude ChangeLog.
8673
8674 2009-08-14  Bruno Haible  <bruno@clisp.org>
8675
8676         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
8677
8678 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
8679
8680         maint.mk: support update-copyright-env
8681         * top/maint.mk (update-copyright-env): Define place-holder.
8682         (update-copyright): Expand $(update-copyright-env) before
8683         invoking update-copyright.
8684
8685 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
8686
8687         update-copyright: implement forced reformatting
8688         * build-aux/update-copyright: Implement and document
8689         UPDATE_COPYRIGHT_FORCE.
8690         * tests/test-update-copyright.sh: Test it.
8691
8692 2009-08-14  Eric Blake  <ebb9@byu.net>
8693         and Bruno Haible  <bruno@clisp.org>
8694
8695         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
8696         * tests/test-locale.c: Revert previous patch related to NULL.
8697         * tests/test-stdio.c: Likewise.
8698         * tests/test-stdlib.c: Likewise.
8699         * tests/test-string.c: Likewise.
8700         * tests/test-unistd.c: Likewise.
8701         * modules/time-tests (Depends-on): Add verify.
8702         * modules/wchar-tests (Depends-on): Likewise.
8703         * tests/test-time.c: Test for NULL compliance.
8704         * tests/test-wchar.c: Likewise.
8705         * modules/locale (Depends-on): Add stddef.
8706         * modules/stdio (Depends-on): Likewise.
8707         * modules/stdlib (Depends-on): Likewise.
8708         * modules/string (Depends-on): Likewise.
8709         * modules/time (Depends-on): Likewise.
8710         * modules/unistd (Depends-on): Likewise.
8711         * modules/wchar (Depends-on): Likewise.
8712         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
8713         * lib/stdlib.in.h (includes): Likewise.
8714         * lib/string.in.h (includes): Likewise.
8715         * lib/time.in.h (includes): Likewise.
8716         * lib/unistd.in.h (includes): Likewise.
8717         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
8718         replaced.
8719         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8720         * m4/stddef_h.m4: New file.
8721         * modules/stddef: Likewise.
8722         * lib/stddef.in.h: Likewise.
8723         * modules/stddef-tests: Likewise.
8724         * tests/test-stddef.c: Likewise.
8725         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
8726         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
8727         * doc/posix-headers/locale.texi (locale.h): Likewise.
8728         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
8729         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
8730         * doc/posix-headers/string.texi (string.h): Likewise.
8731         * doc/posix-headers/time.texi (time.h): Likewise.
8732         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
8733         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
8734
8735 2009-08-14  Eric Blake  <ebb9@byu.net>
8736
8737         doc: improve git diff of texinfo files
8738         * .gitattributes: Add rule for *.texi files, with hint on how to
8739         use it.
8740         Copied from m4, and based on a report by Bruno Haible.
8741
8742 2009-08-14  Bruno Haible  <bruno@clisp.org>
8743
8744         Disable multithread support by default on Cygwin 1.5.x for real.
8745         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
8746
8747 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
8748
8749         update-copyright: much ado about intervals
8750         * build-aux/update-copyright: Implement and document
8751         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
8752         of copyright year intervals.
8753         Also, document UPDATE_COPYRIGHT_YEAR.
8754         * tests/test-update-copyright.sh: Test it.
8755
8756         update-copyright: convert 2-digit to 4-digit years
8757         * build-aux/update-copyright: Implement and document.
8758         * tests/test-update-copyright.sh: Update.
8759
8760 2009-08-14  Jim Meyering  <meyering@redhat.com>
8761
8762         test-exclude: avoid coreutils "make check" failure
8763         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
8764         just as in test-argmatch.c.
8765
8766 2009-08-13  Eric Blake  <ebb9@byu.net>
8767
8768         test-dup2: fix bad assumption
8769         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
8770         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
8771
8772         test-version-etc: fix CRLF portability issue
8773         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
8774         recognize \r.
8775         * tests/test-argp-version-etc-1.sh: Likewise.
8776
8777         getopt: update client modules
8778         * modules/argp (Depends-on): Use getopt-gnu.
8779         * modules/git-merge-changelog (Depends-on): Likewise.
8780         * modules/long-options (Depends-on): Likewise.
8781         * modules/xstrtol (Depends-on): Likewise.
8782
8783 2009-08-13  Simon Josefsson  <simon@josefsson.org>
8784
8785         * tests/test-version-etc.sh: Don't fail on different
8786         project/version.  Don't fail on CRLF differences.  Rewrite to use
8787         multiple -e instead of multiple sed forks, suggested by Eric Blake
8788         <ebb9@byu.net>.
8789         * tests/test-argp-version-etc-1.sh: Likewise.
8790
8791 2009-08-13  Simon Josefsson  <simon@josefsson.org>
8792
8793         * tests/test-version-etc.sh: Don't fail on different
8794         project/version.
8795
8796 2009-08-12  Bruno Haible  <bruno@clisp.org>
8797
8798         Tests for modules 'getopt-posix', 'getopt-gnu'.
8799         * modules/getopt-posix-tests: New file.
8800         * tests/test-getopt.c: New file.
8801         * tests/test-getopt.h: New file.
8802         * tests/test-getopt_long.h: New file.
8803
8804         New modules 'getopt-posix', 'getopt-gnu'.
8805         * modules/getopt-gnu: New file, renamed from modules/getopt.
8806         * modules/getopt-posix: New file.
8807         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
8808         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
8809         (gl_GETOPT): Remove macro.
8810         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
8811         Disable the test against BSD systems that declare optreset. Test
8812         against mingw bug. Test against lack of support of optional arguments
8813         on many platforms.
8814         * doc/glibc-headers/getopt.texi: Update module name and list of
8815         relevant platforms.
8816         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
8817         'getopt-gnu' and more portability problems.
8818         * NEWS: Mention the changes.
8819
8820 2009-08-12  Bruno Haible  <bruno@clisp.org>
8821
8822         Ensure that optarg etc. get declared by <unistd.h>.
8823         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
8824         AC_USE_SYSTEM_EXTENSIONS.
8825         * modules/getopt (Depends-on): Add 'extensions'.
8826
8827 2009-08-12  Bruno Haible  <bruno@clisp.org>
8828
8829         Avoid test link errors.
8830         * modules/pipe-filter-ii-tests (Makefile.am): Define
8831         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
8832         * modules/pipe-filter-gi-tests (Makefile.am): Define
8833         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
8834         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8835
8836 2009-08-12  Bruno Haible  <bruno@clisp.org>
8837
8838         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
8839         gl_GETOPT_SUBSTITUTE before.
8840         (gl_GETOPT): Use it.
8841         * m4/argp.m4 (gl_ARGP): Update.
8842         Reported by Sergey Poznyakoff.
8843
8844         * m4/getopt.m4: Reorder macros.
8845         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
8846         (gl_GETOPT_SUBSTITUTE): Remove macro.
8847
8848 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
8849
8850         Minor improvement in gitlog-to-changelog
8851
8852         * build-aux/gitlog-to-changelog: New option `--format' makes
8853         output format string configurable.
8854
8855 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
8856
8857         Optimize exclude: use hash tables for non-wildcard patterns.
8858
8859         * lib/exclude.c: Include hash.h and mbuiter.h
8860         (struct exclude_pattern, exclude_segment): New data types.
8861         (struct exclude): Rewrite.
8862         (fnmatch_pattern_has_wildcards): New function.
8863         (new_exclude_segment, free_exclude_segment): New functions.
8864         (excluded_file_pattern_p, excluded_file_name_p): New functions.
8865         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
8866         * lib/exclude.h (is_fnmatch_pattern): New prototype.
8867         * modules/exclude: Depend on hash and mbuiter.
8868
8869         * modules/exclude-tests: New file.
8870         * tests/test-exclude.c: New file.
8871         * tests/test-exclude1.sh: New file.
8872         * tests/test-exclude2.sh: New file.
8873         * tests/test-exclude3.sh: New file.
8874         * tests/test-exclude4.sh: New file.
8875         * tests/test-exclude5.sh: New file.
8876         * tests/test-exclude6.sh: New file.
8877         * tests/test-exclude7.sh: New file.
8878
8879 2009-08-12  Bruno Haible  <bruno@clisp.org>
8880
8881         Ensure that getopt() gets declared by <unistd.h>.
8882         * lib/unistd.in.h: Conditionally include getopt.h.
8883         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
8884         Set GNULIB_UNISTD_H_GETOPT.
8885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8886         GNULIB_UNISTD_H_GETOPT.
8887         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
8888
8889 2009-08-12  Bruno Haible  <bruno@clisp.org>
8890
8891         Clarify logic.
8892         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
8893         gl_replace_getopt instead of GETOPT_H.
8894
8895 2009-08-12  Bruno Haible  <bruno@clisp.org>
8896
8897         * m4/getopt.m4: Add comments.
8898
8899 2009-08-12  Bruno Haible  <bruno@clisp.org>
8900
8901         Disable multithread support by default on Cygwin 1.5.x.
8902         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
8903         set gl_use_threads=no if not specified otherwise.
8904
8905 2009-08-11  Bruno Haible  <bruno@clisp.org>
8906
8907         Avoid compilation error on NetBSD 5.0.
8908         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
8909         * tests/test-stdio.c: Likewise.
8910         * tests/test-stdlib.c: Likewise.
8911         * tests/test-string.c: Likewise.
8912         * tests/test-unistd.c: Likewise.
8913         Reported by Greg Troxel <gdt@ir.bbn.com>
8914         at <https://savannah.gnu.org/support/?106973>.
8915
8916 2009-08-11  Bruno Haible  <bruno@clisp.org>
8917
8918         * modules/dup2-tests (Depends-on): Remove close.
8919
8920         Undo 2009-07-19 commit.
8921         * modules/acl-tests (Depends-on): Remove close.
8922         * modules/binary-io-tests (Depends-on): Likewise.
8923         * modules/closein-tests (Depends-on): Likewise.
8924         * modules/flock-tests (Depends-on): Likewise.
8925         * modules/fsync-tests (Depends-on): Likewise.
8926         * modules/lseek-tests (Depends-on): Likewise.
8927         * modules/pipe-tests (Depends-on): Likewise.
8928         * modules/posix_spawn-tests (Depends-on): Likewise.
8929         * modules/posix_spawnp-tests (Depends-on): Likewise.
8930         * modules/stat-time-tests (Depends-on): Likewise.
8931         * modules/yesno-tests (Depends-on): Likewise.
8932
8933 2009-08-10  Bruno Haible  <bruno@clisp.org>
8934
8935         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
8936
8937 2009-08-10  Bruno Haible  <bruno@clisp.org>
8938
8939         Fix a gcc warning.
8940         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
8941
8942 2009-08-10  Bruno Haible  <bruno@clisp.org>
8943
8944         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
8945         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
8946         not only the first time.
8947         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
8948         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
8949         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
8950         is 1, not only the the first time.
8951
8952 2009-08-10  Bruno Haible  <bruno@clisp.org>
8953
8954         Make it possible to use module 'gethostname' without module 'close'.
8955         * lib/unistd.in.h (close): Evoke a link error only if
8956         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
8957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8958         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8959         * modules/unistd (Makefile.am): Substitute
8960         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8961         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
8962         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
8963         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
8964         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8965         * modules/sys_ioctl (Makefile.am): Substitute
8966         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8967         * modules/socket (configure.ac): On native Windows, set
8968         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
8969         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8970         Reported by Sam Steingold <sds@gnu.org>.
8971
8972 2009-08-10  Bruno Haible  <bruno@clisp.org>
8973
8974         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
8975         * modules/ioctl (configure.ac): Likewise.
8976
8977 2009-08-10  Bruno Haible  <bruno@clisp.org>
8978
8979         Avoid collision between gnulib wrapper and libintl wrapper.
8980         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
8981         already defined in intl/printf.c.
8982         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
8983         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
8984
8985 2009-08-09  Bruno Haible  <bruno@clisp.org>
8986
8987         Make <sys/select.h> really self-contained, also on Solaris 10.
8988         * lib/sys_select.in.h: Include <string.h>.
8989         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
8990         Solaris 10 problem.
8991         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
8992         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
8993         Reported by Jim Meyering.
8994
8995 2009-08-09  Bruno Haible  <bruno@clisp.org>
8996
8997         Avoid warnings from 'aclocal' that are due to a use of macro name
8998         AM_XGETTEXT_OPTION that is not defined in automake.
8999         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
9000         automake.
9001         * modules/error (configure.ac): Likewise.
9002         * modules/propername (configure.ac): Likewise.
9003         * modules/vasprintf (configure.ac): Likewise.
9004         * modules/verror (configure.ac): Likewise.
9005         * modules/xprintf (configure.ac): Likewise.
9006         * modules/xvasprintf (configure.ac): Likewise.
9007
9008 2009-08-08  Bruno Haible  <bruno@clisp.org>
9009
9010         Avoid compilation error in C++ mode.
9011         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
9012         Reported by Sam Steingold <sds@gnu.org>.
9013
9014 2009-08-08  Bruno Haible  <bruno@clisp.org>
9015
9016         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
9017         for the various Unix platforms.
9018         * doc/posix-headers/limits.texi: Update platforms list regarding
9019         HOST_NAME_MAX.
9020         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9021
9022 2009-08-07  Jim Meyering  <meyering@redhat.com>
9023
9024         selinux-at: fix typo in a comment
9025         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
9026         Spotted by Paolo Bonzini.
9027
9028         selinux-at: remove redundant m4 code, add documentation
9029         * modules/selinux-at (configure.ac): Remove redundant code.
9030         LIB_SELINUX is already set via the dependent module, selinux-h.
9031         (Include): Add quotes around selinux-at.h.
9032         * lib/selinux-at.h: Add documentation.
9033         Reported by Bruno Haible in
9034         http://marc.info/?l=gnulib-bug&m=124958988300749
9035
9036 2009-08-07  Bruno Haible  <bruno@clisp.org>
9037
9038         Avoid link error on MacOS X 10.3 and 10.4.
9039         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
9040         on non-ELF systems.
9041         * lib/argp-pv.c (argp_program_version): Likewise.
9042         Reported by Simon Josefsson.
9043
9044 2009-08-07  Simon Josefsson  <simon@josefsson.org>
9045
9046         * tests/test-version-etc.sh: Use $EXEEXT.
9047
9048 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
9049
9050         update-copyright: update documentation to point to maint.mk
9051         * build-aux/update-copyright: Here.
9052
9053 2009-08-06  Jim Meyering  <meyering@redhat.com>
9054
9055         maint.mk: support update-copyright-local
9056         * top/maint.mk (update-copyright-local): Define place-holder.
9057         (update-copyright): Depend on $(update-copyright-local).
9058
9059 2009-08-06  Jim Meyering  <meyering@redhat.com>
9060
9061         selinux-at: new module
9062         Initially written for coreutils, this module will soon be
9063         used by findutils, too.
9064         * MODULES.html.sh [Misc]: Add selinux-at.
9065         * lib/selinux-at.h: New file, from coreutils.
9066         * lib/selinux-at.c: Likewise.
9067         * modules/selinux-at: Likewise.
9068         (License): Change from LGPL to GPL, since it depends
9069         on the GPL'd openat module.
9070
9071         doc: update README
9072         * README: Remove references to cogito.
9073         Remove cvs-repo-updating instructions from 2007.
9074         Don't imply that CVS is better if you have limited disk space.
9075
9076 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
9077
9078         update-copyright: support C-style comments
9079         * build-aux/update-copyright: Implement and document.
9080         * tests/test-update-copyright.sh: Test.
9081
9082 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
9083
9084         update-copyright: support omitted "(C)"
9085         * build-aux/update-copyright: Implement and document.  Also,
9086         allow variable whitespace before "(C)".
9087         * tests/test-update-copyright.sh: Test.
9088
9089 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
9090
9091         update-copyright: don't trip on non-FSF copyright statements
9092         * build-aux/update-copyright: Fix so that the first correctly
9093         formatted FSF copyright statement is recognized no matter what
9094         appears before it.  Update documentation.
9095         * tests/test-update-copyright.sh: Test that.
9096
9097 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
9098
9099         update-copyright: clean up code a little
9100         * build-aux/update-copyright: Append "_re" to the name of any
9101         variable holding a regular expression.
9102         Replace "old" and "new" with "stmt" in variable names.
9103         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
9104         handled correctly.
9105         Format code more consistently.
9106
9107 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
9108
9109         update-copyright-tests: improve portability
9110         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
9111         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
9112
9113 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
9114
9115         update-copyright: support @copyright{} and &copy;
9116         * build-aux/update-copyright: Implement and document.
9117         * tests/test-update-copyright.sh: Test.
9118
9119 2009-08-04  Jim Meyering  <meyering@redhat.com>
9120
9121         update-copyright-tests: correctly test EOL=\r\n handling
9122         * tests/test-update-copyright.sh: Put \r at the end of some lines
9123         for the dos-eol tests.  Based on a patch by Joel E. Denny.
9124
9125         maint.mk: make update-copyright exclusion list more configurable
9126         * top/maint.mk (update-copyright): Default to excluding COPYING,
9127         but allow an override, in case someone does want to update that file.
9128
9129         maint.mk: don't update copyright date in COPYING
9130         * top/maint.mk (update-copyright): Exclude COPYING.
9131
9132         maint.mk: add a copyright-updating rule
9133         * top/maint.mk (update-copyright): New rule.
9134         Derived from coreutils/Makefile.am.
9135
9136         update-copyright: rename some variables
9137         * build-aux/update-copyright: Rename a few variables for clarity.
9138         Tweak syntax.  List Joel E. Denny as coauthor.
9139
9140 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
9141
9142         update-copyright: fix bug for 2-digit last year and add tests
9143         * build-aux/update-copyright: Fix bug.
9144         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
9145         specified.
9146         * modules/update-copyright-tests: New
9147         * tests/test-update-copyright.sh: New.
9148
9149 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
9150
9151         update-copyright: handle leading tabs in line prefix
9152         * build-aux/update-copyright: Count leading tabs as 8 spaces
9153         when computing margin.  This helps with the formatting of
9154         ChangeLogs, for example.
9155         Fix documentation a little.
9156
9157 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
9158
9159         update-copyright: support EOL=\r\n
9160         * build-aux/update-copyright: Implement that.
9161
9162 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
9163
9164         update-copyright: automatically format copyright statements
9165         * build-aux/update-copyright: Implement that.
9166         Also, be a little more predictable and safer by always failing
9167         when the full copyright format is not perfectly recognized as an
9168         unbroken whole.  Discussed at
9169         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
9170         Rewrite documentation.
9171
9172 2009-08-03  Bruno Haible  <bruno@clisp.org>
9173
9174         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
9175
9176 2009-08-02  Bruno Haible  <bruno@clisp.org>
9177
9178         Tests for module 'uname'.
9179         * modules/uname-tests: New file.
9180         * tests/test-uname.c: New file.
9181
9182         New module 'uname'.
9183         * lib/uname.c: New file.
9184         * m4/uname.m4: New file.
9185         * modules/uname: New file.
9186         * doc/posix-functions/uname.texi: Mention the new module.
9187
9188 2009-08-02  Bruno Haible  <bruno@clisp.org>
9189
9190         Tests for module 'sys_utsname'.
9191         * modules/sys_utsname-tests: New file.
9192         * tests/test-sys_utsname.c: New file.
9193
9194         New module 'sys_utsname'.
9195         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
9196         * m4/sys_utsname_h.m4: New file.
9197         * modules/sys_utsname: New file.
9198         * doc/posix-headers/sys_utsname.texi: Mention the new module.
9199
9200 2009-08-02  Bruno Haible  <bruno@clisp.org>
9201
9202         Implicitly initialize the sockets library.
9203         * lib/gethostname.c: Include sockets.h.
9204         (rpl_gethostname): Invoke gl_sockets_startup.
9205         * lib/socket.c: Include sockets.h.
9206         (rpl_socket): Invoke gl_sockets_startup.
9207         * modules/gethostname (Depends-on): Add sockets.
9208         * modules/socket (Depends-on): Likewise.
9209         * tests/test-poll.c: Don't include sockets.h.
9210         (main): Don't invoke gl_sockets_startup.
9211         * tests/test-select.c: Don't include sockets.h.
9212         (main): Don't invoke gl_sockets_startup.
9213
9214 2009-08-02  Bruno Haible  <bruno@clisp.org>
9215
9216         Allow multiple calls to gl_sockets_startup.
9217         * lib/sockets.c (initialized_sockets_version): New variable.
9218         (gl_sockets_startup): Do nothing if already called for this or a higher
9219         version.
9220         (gl_sockets_cleanup): Reset initialized_sockets_version.
9221
9222 2009-08-03  Simon Josefsson  <simon@josefsson.org>
9223
9224         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
9225         different project/version.
9226
9227 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
9228             Bruno Haible  <bruno@clisp.org>
9229
9230         Tests for module 'pipe-filter-gi'.
9231         * modules/pipe-filter-gi-tests: New file.
9232         * tests/test-pipe-filter-gi1.sh: New file.
9233         * tests/test-pipe-filter-gi1.c: New file.
9234         * tests/test-pipe-filter-gi2.sh: New file.
9235         * tests/test-pipe-filter-gi2-main.c: New file.
9236         * tests/test-pipe-filter-gi2-child.c: New file.
9237
9238         New module 'pipe-filter-gi'.
9239         * lib/pipe-filter-gi.c: New file.
9240         * modules/pipe-filter-gi: New file.
9241
9242 2009-08-02  Bruno Haible  <bruno@clisp.org>
9243             Paolo Bonzini  <bonzini@gnu.org>
9244
9245         Tests for module 'pipe-filter-ii'.
9246         * modules/pipe-filter-ii-tests: New file.
9247         * tests/test-pipe-filter-ii1.sh: New file.
9248         * tests/test-pipe-filter-ii1.c: New file.
9249         * tests/test-pipe-filter-ii2.sh: New file.
9250         * tests/test-pipe-filter-ii2-main.c: New file.
9251         * tests/test-pipe-filter-ii2-child.c: New file.
9252
9253         New module 'pipe-filter-ii'.
9254         * lib/pipe-filter.h: New file.
9255         * lib/pipe-filter-ii.c: New file.
9256         * lib/pipe-filter-aux.h: New file.
9257         * modules/pipe-filter-ii: New file.
9258
9259 2009-08-02  Simon Josefsson  <simon@josefsson.org>
9260
9261         * lib/gc-libgcrypt.c: Change copyright to FSF.
9262         * lib/gc-gnulib.c: Likewise.
9263
9264 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
9265
9266         * lib/gethostname.c: Include limits.h.
9267
9268 2009-08-02  Simon Josefsson  <simon@josefsson.org>
9269             Bruno Haible  <bruno@clisp.org>
9270
9271         Ensure HOST_NAME_MAX as part of the gethostname module.
9272         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
9273         define also HOST_NAME_MAX.
9274         * tests/test-gethostname.c: Include <limits.h>.
9275         (main): Check also HOST_NAME_MAX.
9276         * doc/posix-headers/limits.texi: Document the mingw problem.
9277
9278 2009-08-02  Bruno Haible  <bruno@clisp.org>
9279
9280         * lib/gethostname.c (gethostname): Fix handling of large len argument.
9281         Add comments.
9282
9283 2009-03-31  Simon Josefsson  <simon@josefsson.org>
9284
9285         * lib/gethostname.c: Add Windows wrapper.
9286         * m4/gethostname.m4: Look for gethostname in -lws2_32.
9287         * modules/gethostname: Depend on sys_socket & errno, for also
9288         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
9289         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
9290
9291 2009-07-31  Jim Meyering  <meyering@redhat.com>
9292
9293         getloadavg: fix symbol name in comment
9294         * lib/getloadavg.c: Correct a typo I introduced when adding
9295         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
9296         Matt Kraai spotted the problem.
9297
9298 2009-07-29  Matt Kraai  <mkraai@beckman.com>
9299
9300         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
9301         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
9302         code also if ! defined N_NAME_POINTER.
9303         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
9304         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
9305         but the n_name member is a 12-byte array.
9306
9307 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
9308
9309         update-copyright: generalize comment handling
9310         * build-aux/update-copyright: Handle copyright statements
9311         within more comment styles.
9312         Document usage.
9313         Report any file with an external copyright holder or parse failure.
9314
9315 2009-07-29  Jim Meyering  <meyering@redhat.com>
9316
9317         mktime: correct setting of REPLACE_MKTIME
9318         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
9319
9320         update-copyright: new module
9321         * modules/update-copyright: New file.
9322         * build-aux/update-copyright: New file.
9323         * MODULES.html.sh (maint+release support): Add update-copyright.
9324
9325 2009-07-27  Bruno Haible  <bruno@clisp.org>
9326
9327         Fix compilation error when <ctime> is used and mktime is replaced.
9328         * lib/time.in.h (mktime): New declaration.
9329         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
9330         REPLACE_MKTIME instead of defining mktime in config.h.
9331         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
9332         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
9333         Reported by Ross McFarland <rwmcfa1@neces.com>.
9334
9335 2009-07-27  Bruno Haible  <bruno@clisp.org>
9336
9337         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
9338         Reported by Matt Kraai <mkraai@beckman.com>.
9339
9340 2009-07-25  Jim Meyering  <meyering@redhat.com>
9341
9342         maint.mk: avoid warnings about missing files
9343         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
9344         diagnostic when .prev-version does not exist.
9345         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
9346         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
9347         nonexistent cfg.mk.
9348         Suggestions from Simon Josefsson.
9349
9350 2009-07-25  Bruno Haible  <bruno@clisp.org>
9351
9352         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
9353         defined as macros. Needed on QNX 6.4.1.
9354         Reported by Matt Kraai <mkraai@beckman.com>.
9355
9356 2009-07-23  Jim Meyering  <meyering@redhat.com>
9357
9358         maint.mk: invoke "make dist" with a working value of XZ_OPT
9359         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
9360
9361 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
9362
9363         Make fseeko.c compile on QNX.
9364         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
9365
9366 2009-07-22  Peter Simons  <simons@cryp.to>
9367
9368         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
9369         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
9370         * lib/md4.h: Likewise.
9371         * lib/md5.h: Likewise.
9372         * lib/sha1.h: Likewise.
9373         * lib/sha256.h: Likewise.
9374         * lib/sha512.h: Likewise.
9375
9376         tests-sha1: don't assign literal string to 'char *' variable
9377         * tests/test-sha1.c (main): Declare locals with "const" to match
9378         attributes of the right hand side.
9379
9380 2009-07-21  Eric Blake  <ebb9@byu.net>
9381
9382         dup2: fix more mingw problems
9383         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
9384         fd to itself.
9385         * doc/posix-functions/dup2.texi (dup2): Document the bug.
9386         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
9387         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
9388         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
9389         care of mingw bugs.
9390
9391 2009-07-21  Jim Meyering  <meyering@redhat.com>
9392
9393         vc-list-files: avoid failure when /bin/sh is dash
9394         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
9395         On some Debian based systems, /bin/sh is a symlink to dash, and running
9396         this command would omit the "/" following each 'tests' prefix:
9397           dash -x build-aux/vc-list-files -C . tests
9398         That is because bash and dash work differently:
9399           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
9400           bash ok
9401           dash odd
9402
9403 2009-07-21  Eric Blake  <ebb9@byu.net>
9404
9405         dup2-tests: test previous patch
9406         * modules/dup2-tests: New file.
9407         * tests/test-dup2.c: Likewise.
9408         * tests/test-open.c (main): Avoid unspecified behavior.
9409         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
9410         test.
9411
9412         dup2: work around mingw and cygwin 1.5 bug
9413         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
9414         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9415         * modules/unistd (Makefile.am): Substitute it.
9416         * lib/unistd.in.h (dup2): Declare the replacement.
9417         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
9418         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
9419         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
9420         * modules/execute (Depends-on): Add dup2.
9421         * modules/fseterr (Depends-on): Likewise.
9422         * modules/pipe (Depends-on): Likewise.
9423         * modules/posix_spawn-internal (Depends-on): Likewise.
9424
9425 2009-07-21  Bruno Haible  <bruno@clisp.org>
9426
9427         * modules/.gitattributes: New file.
9428
9429 2009-07-20  Bruno Haible  <bruno@clisp.org>
9430
9431         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
9432         (main): Use it.
9433
9434 2009-07-20  Eric Blake  <ebb9@byu.net>
9435
9436         test-pipe: make a bit more robust.
9437         * tests/test-pipe.c (myerr): Allow error messages regardless of
9438         what we do to stderr.
9439         (test_pipe): Rearrange to avoid deadlock.
9440         (child_main): Try a larger read, to ensure we avoided deadlock.
9441         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
9442         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
9443         if misused.
9444
9445 2009-07-19  Jim Meyering  <meyering@redhat.com>
9446
9447         fts: avoid false-positive cycle-detection
9448         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
9449         for each new command line argument.
9450
9451 2009-07-19  Bruno Haible  <bruno@clisp.org>
9452
9453         Fix build error on mingw with the modules sys_select and unistd.
9454         * modules/acl-tests (Depends-on): Add close.
9455         * modules/binary-io-tests (Depends-on): Likewise.
9456         * modules/closein-tests (Depends-on): Likewise.
9457         * modules/flock-tests (Depends-on): Likewise.
9458         * modules/fsync-tests (Depends-on): Likewise.
9459         * modules/lseek-tests (Depends-on): Likewise.
9460         * modules/pipe-tests (Depends-on): Likewise.
9461         * modules/posix_spawn-tests (Depends-on): Likewise.
9462         * modules/posix_spawnp-tests (Depends-on): Likewise.
9463         * modules/stat-time-tests (Depends-on): Likewise.
9464         * modules/yesno-tests (Depends-on): Likewise.
9465
9466 2009-07-19  Bruno Haible  <bruno@clisp.org>
9467
9468         Unify conditionals.
9469         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
9470         macros, not at the compiler macros.
9471         * lib/pipe.c: Likewise.
9472         * lib/execute.c: Likewise.
9473         * lib/spawni.c: Likewise.
9474
9475 2009-07-19  Bruno Haible  <bruno@clisp.org>
9476
9477         Fix handling of closed stdin/stdout/stderr on mingw.
9478         * lib/w32spawn.h: Include unistd.h.
9479         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
9480         file descriptor with O_NOINHERIT flag.
9481         (fd_safer_noinherit): New function, based on fd-safer.c.
9482         (dup_safer_noinherit): New function, based on dup-safer.c.
9483         (undup_safer_noinherit): New function.
9484         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
9485         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
9486         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
9487         instead of fd_safer.
9488         * tests/test-pipe.c: Include <windows.h>.
9489         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
9490
9491         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
9492         from main.
9493         (test_pipe): Pass an extra argument for disambiguation.
9494         (main): Invoke parent_main or child_main.
9495
9496         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
9497         consistently.
9498
9499 2009-07-18  Eric Blake  <ebb9@byu.net>
9500
9501         test-pipe: fix mingw build
9502         * tests/test-pipe.c (main): Avoid fcntl on mingw.
9503
9504 2009-07-18  Bruno Haible  <bruno@clisp.org>
9505
9506         * modules/pipe-tests (Makefile.am): Fix typo.
9507
9508 2009-07-18  Eric Blake  <ebb9@byu.net>
9509
9510         error: fix mingw build
9511         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
9512         Reported by Bruno Haible.
9513
9514         error: avoid undefined use of stdout
9515         * lib/error.c (error, error_at_line): Check that fd 1 is open
9516         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
9517         is handling faults and the close_stdout module wants to report the
9518         detection of closed stdout as an error.
9519
9520 2009-07-17  Eric Blake  <ebb9@byu.net>
9521
9522         pipe: be robust in face of closed fds
9523         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
9524         should cause child to misbehave.
9525         * modules/pipe-tests: New module.
9526         * tests/test-pipe.c: New file.
9527         * tests/test-pipe.sh: New file.
9528         Reported by Akim Demaille.
9529
9530 2009-07-14  Bruno Haible  <bruno@clisp.org>
9531
9532         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
9533         Reported by anonymous kc.
9534
9535 2009-07-07  Jim Meyering  <meyering@redhat.com>
9536
9537         maint.mk: don't look for translatable strings in *.m4 or *.mk
9538         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
9539         when searching for translatable strings.
9540
9541 2009-07-05  Jim Meyering  <meyering@redhat.com>
9542
9543         remove superfluous parentheses in STREQ definition
9544         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
9545         * lib/getugroups.c (STREQ): Likewise.
9546         * lib/fnmatch.c (STREQ): Likewise.
9547         Spotted by Bruno Haible.
9548
9549 2009-07-04  Jim Meyering  <meyering@redhat.com>
9550
9551         argv-iter: new module
9552         * MODULES.html.sh: Add argv-iter.
9553         * lib/argv-iter.c, lib/argv-iter.h: New files.
9554         * modules/argv-iter: New file.
9555         * modules/argv-iter-tests: New file.
9556         * tests/test-argv-iter.c: Test it.
9557
9558 2009-07-04  Bruno Haible  <bruno@clisp.org>
9559
9560         Fix assertion.
9561         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
9562         contains more exact copies of a given entry than file2, leave the extra
9563         copies unpaired rather than aborting.
9564         Reported by Eric Blake.
9565
9566 2009-07-02  Bruno Haible  <bruno@clisp.org>
9567
9568         Speedup git-merge-changelog for git cherry-pick.
9569         * lib/git-merge-changelog.c (struct entries_mapping): New type.
9570         (entries_mapping_get): New function, extracted from compute_mapping.
9571         (entries_mapping_reverse_get): New function.
9572         (compute_mapping): Add a 'full' argument. Return the result in a
9573         'struct entries_mapping'.
9574         (main): Update. Access the mappings through entries_mapping_get.
9575         Reported by Eric Blake.
9576
9577 2009-07-02  Bruno Haible  <bruno@clisp.org>
9578
9579         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
9580         best_i.
9581
9582 2009-07-02  Bruno Haible  <bruno@clisp.org>
9583
9584         Speed up approximate search for matching ChangeLog entries.
9585         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
9586         argument. Call fstrcmp_bounded instead of fstrcmp.
9587         (compute_mapping, try_split_merged_entry, main): Update callers.
9588
9589 2009-07-02  Bruno Haible  <bruno@clisp.org>
9590
9591         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
9592
9593 2009-06-30  Bruno Haible  <bruno@clisp.org>
9594
9595         Reduce the number of uc_is_cased calls.
9596         * lib/unicase.h (casing_suffix_context_t): Add
9597         'first_char_except_ignorable' field.
9598         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
9599         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
9600         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
9601         Update initializer.
9602         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
9603         case-ignorable characters.
9604         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
9605         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
9606         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
9607         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
9608         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
9609
9610 2009-06-30  Bruno Haible  <bruno@clisp.org>
9611
9612         Tests for module 'unicase/ignorable'.
9613         * modules/unicase/ignorable-tests: New file.
9614         * tests/unicase/test-ignorable.c: New file, generated by
9615         gen-uni-tables.
9616
9617         Tests for module 'unicase/cased'.
9618         * modules/unicase/cased-tests: New file.
9619         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
9620         * tests/unicase/test-predicate-part1.h: New file, derived from
9621         tests/unictype/test-predicate-part1.h.
9622         * tests/unicase/test-predicate-part2.h: New file, same as
9623         tests/unictype/test-predicate-part2.h.
9624
9625         Fix evaluation of "Before C" condition of FINAL_SIGMA.
9626         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
9627         (output_casing_properties): New function.
9628         (main): Call it.
9629         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
9630         * lib/unicase/cased.c: Include unictype/bitmap.h.
9631         (uc_is_cased): Define through a bitmap lookup.
9632         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
9633         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
9634         (uc_is_case_ignorable): Define through a bitmap lookup.
9635         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
9636         lib/unictype/bitmap.h.
9637         (Depends-on): Add inline. Clean up.
9638         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
9639         lib/unictype/bitmap.h.
9640         (Depends-on): Add inline. Clean up.
9641         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
9642         recognition.
9643         * tests/unicase/test-u16-tolower.c (main): Likewise.
9644         * tests/unicase/test-u32-tolower.c (main): Likewise.
9645
9646 2009-06-30  Bruno Haible  <bruno@clisp.org>
9647
9648         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
9649         * lib/unicase/u16-casemap.c: Likewise.
9650         * lib/unicase/u32-casemap.c: Likewise.
9651
9652 2009-06-29  Bruno Haible  <bruno@clisp.org>
9653
9654         Define u32_casefold as a wrapper around u32_ct_casefold.
9655         * lib/unicase/u32-casefold.c: Update.
9656         * modules/unicase/u32-casefold (Depends-on): Add
9657         unicase/u32-ct-casefold, unicase/empty-prefix-context,
9658         unicase/empty-suffix-context. Clean up.
9659
9660         Define u16_casefold as a wrapper around u16_ct_casefold.
9661         * lib/unicase/u16-casefold.c: Update.
9662         * modules/unicase/u16-casefold (Depends-on): Add
9663         unicase/u16-ct-casefold, unicase/empty-prefix-context,
9664         unicase/empty-suffix-context. Clean up.
9665
9666         Define u8_casefold as a wrapper around u8_ct_casefold.
9667         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
9668         * lib/unicase/u8-casefold.c: Update.
9669         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
9670         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9671
9672         Define u32_totitle as a wrapper around u32_ct_totitle.
9673         * lib/unicase/u32-totitle.c: Update.
9674         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
9675         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9676
9677         Define u16_totitle as a wrapper around u16_ct_totitle.
9678         * lib/unicase/u16-totitle.c: Update.
9679         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
9680         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9681
9682         Define u8_totitle as a wrapper around u8_ct_totitle.
9683         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
9684         functions.
9685         (FUNC): Delegate to U_CT_TOTITLE.
9686         * lib/unicase/u8-totitle.c: Update.
9687         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
9688         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9689
9690         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
9691         invocation.
9692         * modules/unicase/u32-tolower (Depends-on): Add
9693         unicase/empty-prefix-context, unicase/empty-suffix-context.
9694
9695         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
9696         invocation.
9697         * modules/unicase/u16-tolower (Depends-on): Add
9698         unicase/empty-prefix-context, unicase/empty-suffix-context.
9699
9700         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
9701         * modules/unicase/u8-tolower (Depends-on): Add
9702         unicase/empty-prefix-context, unicase/empty-suffix-context.
9703
9704         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
9705         invocation.
9706         * modules/unicase/u32-toupper (Depends-on): Add
9707         unicase/empty-prefix-context, unicase/empty-suffix-context.
9708
9709         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
9710         invocation.
9711         * modules/unicase/u16-toupper (Depends-on): Add
9712         unicase/empty-prefix-context, unicase/empty-suffix-context.
9713
9714         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
9715         * modules/unicase/u8-toupper (Depends-on): Add
9716         unicase/empty-prefix-context, unicase/empty-suffix-context.
9717
9718         New module 'unicase/u32-ct-casefold'.
9719         * lib/unicase/u32-ct-casefold.c: New file.
9720         * modules/unicase/u32-ct-casefold: New file.
9721
9722         New module 'unicase/u16-ct-casefold'.
9723         * lib/unicase/u16-ct-casefold.c: New file.
9724         * modules/unicase/u16-ct-casefold: New file.
9725
9726         New module 'unicase/u8-ct-casefold'.
9727         * lib/unicase/u8-ct-casefold.c: New file.
9728         * lib/unicase/u-ct-casefold.h: New file, derived from
9729         lib/unicase/u-casefold.h.
9730         * modules/unicase/u8-ct-casefold: New file.
9731
9732         New module 'unicase/u32-ct-totitle'.
9733         * lib/unicase/u32-ct-totitle.c: New file.
9734         * modules/unicase/u32-ct-totitle: New file.
9735
9736         New module 'unicase/u16-ct-totitle'.
9737         * lib/unicase/u16-ct-totitle.c: New file.
9738         * modules/unicase/u16-ct-totitle: New file.
9739
9740         New module 'unicase/u8-ct-totitle'.
9741         * lib/unicase/u8-ct-totitle.c: New file.
9742         * lib/unicase/u-ct-totitle.h: New file, derived from
9743         lib/unicase/u-totitle.h.
9744         * modules/unicase/u8-ct-totitle: New file.
9745
9746         New module 'unicase/u32-ct-tolower'.
9747         * lib/unicase/u32-ct-tolower.c: New file.
9748         * modules/unicase/u32-ct-tolower: New file.
9749
9750         New module 'unicase/u16-ct-tolower'.
9751         * lib/unicase/u16-ct-tolower.c: New file.
9752         * modules/unicase/u16-ct-tolower: New file.
9753
9754         New module 'unicase/u8-ct-tolower'.
9755         * lib/unicase/u8-ct-tolower.c: New file.
9756         * modules/unicase/u8-ct-tolower: New file.
9757
9758         New module 'unicase/u32-ct-toupper'.
9759         * lib/unicase/u32-ct-toupper.c: New file.
9760         * modules/unicase/u32-ct-toupper: New file.
9761
9762         New module 'unicase/u16-ct-toupper'.
9763         * lib/unicase/u16-ct-toupper.c: New file.
9764         * modules/unicase/u16-ct-toupper: New file.
9765
9766         New module 'unicase/u8-ct-toupper'.
9767         * lib/unicase/u8-ct-toupper.c: New file.
9768         * modules/unicase/u8-ct-toupper: New file.
9769
9770         Add context arguments to u*_casemap functions.
9771         * lib/unicase/unicasemap.h: Include unicase.h.
9772         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
9773         suffix_context arguments.
9774         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
9775         functions.
9776         (FUNC): Add prefix_context and suffix_context arguments. Use
9777         uc_is_cased and uc_is_case_ignorable.
9778         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
9779         * lib/unicase/u16-casemap.c: Likewise.
9780         * lib/unicase/u32-casemap.c: Likewise.
9781         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
9782         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
9783         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
9784         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
9785         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
9786         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
9787
9788         New module 'unicase/u32-suffix-context'.
9789         * lib/unicase/u32-suffix-context.c: New file.
9790         * modules/unicase/u32-suffix-context: New file.
9791
9792         New module 'unicase/u16-suffix-context'.
9793         * lib/unicase/u16-suffix-context.c: New file.
9794         * modules/unicase/u16-suffix-context: New file.
9795
9796         New module 'unicase/u8-suffix-context'.
9797         * lib/unicase/u8-suffix-context.c: New file.
9798         * lib/unicase/u-suffix-context.h: New file.
9799         * modules/unicase/u8-suffix-context: New file.
9800
9801         New module 'unicase/empty-suffix-context'.
9802         * lib/unicase/empty-suffix-context.c: New file.
9803         * modules/unicase/empty-suffix-context: New file.
9804
9805         New module 'unicase/u32-prefix-context'.
9806         * lib/unicase/u32-prefix-context.c: New file.
9807         * modules/unicase/u32-prefix-context: New file.
9808
9809         New module 'unicase/u16-prefix-context'.
9810         * lib/unicase/u16-prefix-context.c: New file.
9811         * modules/unicase/u16-prefix-context: New file.
9812
9813         New module 'unicase/u8-prefix-context'.
9814         * lib/unicase/u8-prefix-context.c: New file.
9815         * lib/unicase/u-prefix-context.h: New file.
9816         * lib/unicase/context.h: New file.
9817         * modules/unicase/u8-prefix-context: New file.
9818
9819         New module 'unicase/empty-prefix-context'.
9820         * lib/unicase/empty-prefix-context.c: New file.
9821         * modules/unicase/empty-prefix-context: New file.
9822
9823         New module 'unicase/ignorable'.
9824         * lib/unicase/ignorable.c: New file.
9825         * modules/unicase/ignorable: New file.
9826
9827         New module 'unicase/cased'.
9828         * lib/unicase/caseprop.h: New file.
9829         * lib/unicase/cased.c: New file.
9830         * modules/unicase/cased: New file.
9831
9832         New functions for case mapping of substrings.
9833         * lib/unicase.h (casing_prefix_context_t): New type.
9834         (unicase_empty_prefix_context): New variable.
9835         (u8_casing_prefix_context, u16_casing_prefix_context,
9836         u32_casing_prefix_context, u8_casing_prefixes_context,
9837         u16_casing_prefixes_context, u32_casing_prefixes_context): New
9838         declarations.
9839         (casing_suffix_context_t): New type.
9840         (unicase_empty_suffix_context): New variable.
9841         (u8_casing_suffix_context, u16_casing_suffix_context,
9842         u32_casing_suffix_context, u8_casing_suffixes_context,
9843         u16_casing_suffixes_context, u32_casing_suffixes_context,
9844         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
9845         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
9846         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
9847         declarations.
9848
9849 2009-06-28  Jim Meyering  <meyering@redhat.com>
9850
9851         boostrap: indent only with spaces
9852         * build-aux/bootstrap: Indent only with spaces, never TABs.
9853
9854         bootstrap: split long lines
9855         * build-aux/bootstrap: Keep line length < 80.
9856
9857         bootstrap: sync from coreutils
9858         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
9859         just as autoreconf does.  Verify a list of prerequisite
9860         package-name,version-number pairs if defined in bootstrap.conf.
9861         Refer to README-prereq, if prerequisites are not satisfied.
9862
9863 2009-06-27  Eric Blake  <ebb9@byu.net>
9864
9865         tests: add test for bogus NULL definition
9866         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
9867         * tests/test-stdlib.c: Likewise.
9868         * tests/test-string.c: Likewise.
9869         * tests/test-locale.c: Likewise.
9870         * tests/test-unistd.c: Likewise.
9871         * modules/stdio-tests (Depends-on): Add verify.
9872         * modules/stdlib-tests (Depends-on): Likewise.
9873         * modules/string-tests (Depends-on): Likewise.
9874         * modules/locale-tests (Depends-on): Likewise.
9875         * modules/unistd-tests (Depends-on): Likewise.
9876
9877 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
9878
9879         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
9880         self-explaining comment.
9881         * m4/selinux-selinux-h: Update serial.
9882         (gl_LIBSELINUX): New macro, adding a warning for missing development
9883         packages to code extracted from...
9884         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
9885         Add warning for missing development packages here, too.
9886
9887 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
9888
9889         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
9890
9891 2009-06-25  Eric Blake  <ebb9@byu.net>
9892
9893         version-etc: fix regression
9894         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
9895         gcc.
9896         (version_etc): Use it, to catch bugs with trailing NULL.
9897         * lib/version-etc.c (version_etc_arn): Delete unused argument.
9898         (version_etc_va): Fix logic bug.
9899         * modules/version-etc-tests: Add test.
9900         * tests/test-version-etc.c: New file.
9901         * tests/test-version-etc.sh: Likewise.
9902
9903 2009-06-25  Sam Steingold  <sds@gnu.org>
9904
9905         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
9906         mbtowc declaration.
9907
9908 2009-06-25  Eric Blake  <ebb9@byu.net>
9909
9910         fpurge: migrate into <stdio.h>
9911         * lib/fpurge.h: Delete...
9912         * lib/stdio.in.h (fpurge): ...and declare here, instead.
9913         * lib/fpurge.c (fpurge): Change declaring header.
9914         * modules/fpurge (Files): Drop deleted file.
9915         (Depends-on): Add stdio.
9916         (configure.ac): Set witness.
9917         * modules/stdio (Makefile.am): Support fpurge macros.
9918         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9919         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
9920         * lib/fflush.c: Update client.
9921         * tests/test-fpurge.c: Likewise.
9922         * NEWS: Mention the change.
9923
9924 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
9925
9926         * lib/argp-version-etc.c (program_authors): Add const
9927         qualifier.
9928         * lib/version-etc.c: Fix typos in the comments.
9929         * modules/argp-version-etc: Depends on version-etc.
9930
9931 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
9932
9933         argp-version-etc: new module.
9934
9935         * lib/argp-version-etc.c: New file.
9936         * lib/argp-version-etc.h: New file.
9937         * modules/argp-version-etc: New file.
9938         * modules/argp-version-etc-tests: New file.
9939         * tests/test-argp-version-etc.c: New test.
9940         * tests/test-argp-version-etc-1.sh: New test.
9941
9942 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
9943
9944         Provide additional interfaces and documentation for version-etc
9945         module.
9946
9947         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
9948         interfaces.
9949         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
9950         prototypes.
9951
9952 2009-06-24  Bruno Haible  <bruno@clisp.org>
9953
9954         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
9955         HAVE_LIB${NAME} macro.
9956         Reported by Sam Steingold <sds@gnu.org>.
9957
9958 2009-06-23  Simon Josefsson  <simon@josefsson.org>
9959
9960         * modules/hash-tests (test_hash_LDADD): Link to libintl when
9961         needed.
9962
9963 2009-06-21  Bruno Haible  <bruno@clisp.org>
9964
9965         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
9966         work.
9967         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
9968         together with LIB${NAME}, LTLIB${NAME}.
9969         Reported by Sam Steingold <sds@gnu.org>.
9970
9971 2009-06-20  Jim Meyering  <meyering@redhat.com>
9972
9973         tests: make sc_require_test_exit_idiom more generic
9974         * top/maint.mk (Exit_witness_file): New overridable variable.
9975         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
9976         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
9977
9978 2009-06-19  Jim Meyering  <meyering@redhat.com>
9979
9980         hash: reverse order of src/dst parameters in an internal interface
9981         * lib/hash.c (transfer_entries): Reverse order of parameters to
9982         put DST before SRC.  Adjust callers.
9983
9984         tests: test-hash: avoid wholesale duplication
9985         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
9986         Instead, use a loop and add a single conditional.
9987
9988         tests: test-hash: allow seed selection via a command line argument
9989         * tests/test-hash.c (get_seed): New function.
9990         (main): Use it.
9991
9992 2009-06-19  Eric Blake  <ebb9@byu.net>
9993
9994         hash: avoid memory leak on allocation failure
9995         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
9996         failure.  Factor repeated algorithm...
9997         (transfer_entries): ...into new helper routine.
9998         (hash_delete): React to hash_rehash return value.
9999
10000         hash: reduce memory pressure in hash_rehash no-op case
10001         * lib/hash.c (next_prime): Avoid overflow.
10002         (hash_initialize): Factor bucket size computation...
10003         (compute_bucket_size): ...into new helper function.
10004         (hash_rehash): Use new function and open coding to reduce memory
10005         pressure, and avoid a memory leak in USE_OBSTACK code.
10006         Reported by Jim Meyering.
10007
10008 2009-06-18  Eric Blake  <ebb9@byu.net>
10009
10010         hash: make rotation more obvious
10011         * modules/hash (Depends-on): Add bitrotate and stdint.
10012         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
10013         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
10014         (SIZE_MAX): Rely on headers for definition.
10015         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
10016         (raw_hasher): Use rotr_sz.
10017         Suggested by Jim Meyering.
10018
10019         hash: fix memory leak in last patch
10020         * lib/hash.c (hash_rehash): Avoid memory leak.
10021
10022         hash: avoid no-op rehashing
10023         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
10024
10025         hash: provide default callback functions
10026         * lib/hash.c (raw_hasher, raw_comparator): New functions.
10027         (hash_initialize): Use them as defaults.
10028         * tests/test-hash.c (main): Test this.
10029
10030         hash: minor optimization
10031         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
10032         when possible.
10033         (hash_initialize): Document this promise.
10034         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
10035         * tests/test-hash.c (hash_compare_strings): Test this.
10036
10037 2009-06-18  Bruno Haible  <bruno@clisp.org>
10038
10039         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
10040         going to be replaced anyway.
10041
10042 2009-06-18  Bruno Haible  <bruno@clisp.org>
10043
10044         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
10045         in one place.
10046         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
10047         be replaced anyway.
10048
10049 2009-06-18  Eric Blake  <ebb9@byu.net>
10050
10051         hash: check for resize before insertion
10052         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
10053         threshold before insertion, so that a pathological hash_rehash
10054         that fills every bucket can still trigger another rehash.
10055
10056 2009-06-18  Jim Meyering  <meyering@redhat.com>
10057
10058         hash-tests: add a loop around the small tests
10059         * tests/test-hash.c (main): Repeat small tests with selected
10060         small initial table sizes.
10061
10062 2009-06-17  Eric Blake  <ebb9@byu.net>
10063
10064         hash: minor cleanups
10065         * lib/hash.h (hash_entry): Make opaque, by moving...
10066         * lib/hash.c (hash_entry): ...here.
10067         (hash_insert): Clarify restrictions on what can be inserted.
10068         (hash_get_next): Clarify when it is safe to remove an element
10069         during traversal.
10070         (check_tuning): Skip verification when tuning is known safe.
10071         (hash_initialize): Clarify restrictions on tuning.
10072
10073 2009-06-17  Jim Meyering  <jim@meyering.net>
10074         and Eric Blake  <ebb9@byu.net>
10075
10076         hash-tests: new module
10077         * modules/hash-tests: New file.
10078         * tests/test-hash.c: New file.
10079
10080 2009-06-17  Eric Blake  <ebb9@byu.net>
10081
10082         strstr-simple: document new module
10083         * MODULES.html.sh: Document new module.
10084
10085         strstr, strcasestr: replace on platforms with broken memchr
10086         * modules/strstr: Split into...
10087         * modules/strstr-simple: ...new module that does not care about
10088         performance, but does care about glibc bug.
10089         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
10090         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
10091         if platform memchr is broken, per Debian bug 521737.
10092         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
10093         memchr.
10094         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
10095         * doc/posix-functions/strstr.texi (strstr): Document the fix.
10096         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
10097         * modules/mountlist (Depends-on): Add strstr-simple.
10098         * modules/gen-uni-tables (Depends-on): Likewise.
10099         * modules/argz (Depends-on): Add strstr.
10100
10101 2009-06-17  Bruno Haible  <bruno@clisp.org>
10102
10103         * modules/posix_spawn-internal (Depends-on): Add errno.
10104
10105 2009-06-17  Bruno Haible  <bruno@clisp.org>
10106
10107         Define missing ESTALE on Interix 3.5.
10108         * lib/errno.in.h (ESTALE): Assign a value if missing.
10109         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
10110         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
10111         missing.
10112         * doc/posix-headers/errno.texi: Mention the Interix bug.
10113         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
10114
10115 2009-06-15  Eric Blake  <ebb9@byu.net>
10116
10117         memchr, memchr2: add valgrind exception
10118         * lib/memchr.valgrind: New file.
10119         * lib/memchr2.valgrind: New file.
10120         * modules/memchr (Files): Distribute valgrind file.
10121         * modules/memchr2 (Files): Likewise.
10122
10123         docs: memchr is no longer obsolete
10124         * MODULES.html.sh: Move memchr from obsolete to string.h section.
10125         * lib/string.in.h (memchr): Simplify logic.
10126
10127 2009-06-14  Jim Meyering  <meyering@redhat.com>
10128
10129         link-follow: fix the "checking..." message to not mention trailing slash
10130         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
10131         never considered trailing slashes.
10132
10133 2009-06-14  Bruno Haible  <bruno@clisp.org>
10134
10135         * m4/memchr.m4: Mention also the bug on IA-64.
10136         * doc/posix-functions/memchr.texi: Likewise.
10137
10138 2009-06-12  Eric Blake  <ebb9@byu.net>
10139
10140         memchr: detect broken x86_64 and alpha implementations
10141         * modules/memchr-tests (Depends-on): Move mmap detection...
10142         * modules/memchr (Depends-on): ...here.
10143         (configure.ac): Set indicator.
10144         * lib/string.in.h (memchr): Declare replacement.
10145         * modules/string (Makefile.am): Trigger replacement.
10146         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
10147         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
10148         bugs.
10149         * doc/posix-functions/memchr.texi (memchr): Document the bug.
10150         * modules/getpagesize (License): Relax license.
10151
10152 2009-06-11  Bruno Haible  <bruno@clisp.org>
10153
10154         * lib/idpriv.h: Add more references.
10155
10156 2009-06-08  Bruno Haible  <bruno@clisp.org>
10157
10158         Tests for module 'idpriv-droptemp'.
10159         * modules/idpriv-droptemp-tests: New file.
10160         * tests/test-idpriv-droptemp.sh: New file.
10161         * tests/test-idpriv-droptemp.su.sh: New file.
10162         * tests/test-idpriv-droptemp.c: New file.
10163
10164         New module 'idpriv-droptemp'.
10165         * lib/idpriv-droptemp.c: New file.
10166         * modules/idpriv-droptemp: New file.
10167
10168 2009-06-08  Bruno Haible  <bruno@clisp.org>
10169
10170         Tests for module 'idpriv-drop'.
10171         * modules/idpriv-drop-tests: New file.
10172         * tests/test-idpriv-drop.sh: New file.
10173         * tests/test-idpriv-drop.su.sh: New file.
10174         * tests/test-idpriv-drop.c: New file.
10175
10176         New module 'idpriv-drop'.
10177         * lib/idpriv.h: New file.
10178         * lib-idpriv-drop.c: New file.
10179         * m4/idpriv.m4: New file.
10180         * modules/idpriv-drop: New file.
10181
10182 2009-06-08  Bruno Haible  <bruno@clisp.org>
10183
10184         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
10185         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
10186         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
10187         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
10188         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
10189         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
10190         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
10191
10192 2009-06-08  Eric Blake  <ebb9@byu.net>
10193
10194         test-strstr: use memory fence, when possible
10195         * tests/test-strstr.c (main): Use memory fence, in order to be
10196         more likely to trigger Debian bug 521737.
10197         * modules/strstr-tests (Files): Pull in additional files.
10198
10199         memchr: no longer obsolete, for wider field testing
10200         * modules/memchr (Status, Notice): Delete, this module is no
10201         longer obsolete.
10202         * modules/vasnprintf (Depends-on): Add memchr.
10203
10204 2009-06-07  Jim Meyering  <meyering@redhat.com>
10205
10206         hash: declare some functions with the warn_unused_result attribute
10207         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
10208
10209 2009-06-07  Bruno Haible  <bruno@clisp.org>
10210
10211         * tests/test-alignof.c: Don't test int64_t if it does not exist.
10212         Reported by Eric Blake.
10213
10214 2009-06-06  Eric Blake  <ebb9@byu.net>
10215
10216         test-alignof: fix typo with long double
10217         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
10218         compiler error.
10219
10220 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
10221
10222         Escape non-texinfo { and }s.
10223         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
10224         markup error.
10225
10226 2009-06-04  Jim Meyering  <meyering@redhat.com>
10227
10228         gitlog-to-changelog: don't infloop on an empty commit log
10229         * build-aux/gitlog-to-changelog: Warn about an empty log message.
10230         Reported by Boris Petersen <transacid@centerim.org>.
10231
10232 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
10233
10234         version-etc: extend for packagers
10235         Add three new configure options, intended for packagers:
10236           --with-packager="packager name"
10237           --with-packager-version="packager-specific version"
10238           --with-packager-bug-reports="packager bug reporting"
10239         An example with coreutils:
10240           $ ./configure \
10241             --with-packager=Gentoo \
10242             --with-packager-bug-report=http://bugs.gentoo.org/ \
10243             --with-packager-version="patchset 1.6"
10244           $ ./src/ls --version | head -n2
10245           ls (GNU coreutils) 7.1-dirty
10246           Packaged by Gentoo (patchset 1.6)
10247         Note that the bug reporting info via --help doesn't show up because
10248         coreutils uses its own custom emit_bug_reporting_address() implementation
10249         in src/system.h.  If it didn't, it'd look like:
10250           $ ./src/ls --help | tail -n4
10251           Report bugs to <bug-coreutils@gnu.org>.
10252           Report Gentoo bugs to <http://bugs.gentoo.org/>.
10253           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
10254           General help using GNU software: <http://www.gnu.org/gethelp/>.
10255         * lib/version-etc.c: Print new information, if provided.
10256         * m4/version-etc.m4: New file.
10257         * modules/version-etc (Files): Add m4/version-etc.m4.
10258         (configure.ac): Add gl_VERSION_ETC.
10259
10260 2009-05-31  Bruno Haible  <bruno@clisp.org>
10261
10262         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
10263         and 'int64_t'.
10264         * modules/alignof-tests (Dependencies): Add stdint.
10265         Reported by Eric Blake.
10266
10267 2009-05-31  Bruno Haible  <bruno@clisp.org>
10268
10269         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
10270         restriction due to compiler bugs.
10271         Reported by Eric Blake.
10272
10273 2009-05-31  Simon Josefsson  <simon@josefsson.org>
10274             Bruno Haible  <bruno@clisp.org>
10275
10276         Fix test-alignof failure.
10277         * lib/alignof.h (alignof_slot): New macro.
10278         (alignof_type): New macro, with the same semantics as the previous
10279         'alignof'.
10280         (alignof): Alias to alignof_slot.
10281         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
10282         check that the results are usable as constant expressions.
10283
10284 2009-05-31  Bruno Haible  <bruno@clisp.org>
10285
10286         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
10287         * tests/test-memchr.c (main): Check that memchr does not read past the
10288         first occurrence of the byte.
10289         * tests/test-strstr.c (main): Update comment.
10290         Suggested by Eric Blake.
10291
10292 2009-05-30  Bruno Haible  <bruno@clisp.org>
10293
10294         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
10295         detail how to use dumpbin.
10296         Reported by David Byron <dbyron@dbyron.com>.
10297
10298 2009-06-02  Simon Josefsson  <simon@josefsson.org>
10299
10300         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
10301
10302 2009-06-02  Simon Josefsson  <simon@josefsson.org>
10303
10304         * m4/manywarnings.m4: Add GCC 4.4 warnings.
10305
10306 2009-05-28  Bruno Haible  <bruno@clisp.org>
10307
10308         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
10309         build-aux/ files.
10310
10311 2009-05-28  Simon Josefsson  <simon@josefsson.org>
10312
10313         * gnulib-tool (func_import): Transform license on build-aux/ files too.
10314
10315 2009-05-27  Simon Josefsson  <simon@josefsson.org>
10316
10317         * gnulib-tool (sed_transform_main_lib_file)
10318         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
10319         regexps.
10320
10321 2009-05-26  Simon Josefsson  <simon@josefsson.org>
10322
10323         * tests/test-strstr.c: Add another self-test.
10324         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
10325         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
10326
10327 2009-05-23  Bruno Haible  <bruno@clisp.org>
10328
10329         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
10330         change.
10331
10332 2009-05-21  Bruno Haible  <bruno@clisp.org>
10333
10334         Simplify use of mode_t varargs.
10335         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
10336         uses 'mode_t' or 'int'.
10337         * lib/openat.c (openat): Likewise.
10338         * lib/open-safer.c (open_safer): Likewise.
10339         * m4/mode_t.m4: New file.
10340         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
10341         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
10342         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
10343         * modules/open (Files): Add m4/mode_t.m4.
10344         * modules/openat (Files): Likewise.
10345         * modules/fcntl-safer (Files): Likewise.
10346         Suggested by Eric Blake.
10347
10348 2009-05-21  Pádraig Brady  <P@draigbrady.com>
10349
10350         * doc/glibc-functions/fallocate.texi: New file.
10351         * doc/gnulib.texi: Include it.
10352
10353 2009-05-21  Eric Blake  <ebb9@byu.net>
10354             Bruno Haible  <bruno@clisp.org>
10355
10356         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
10357         invocations.
10358         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
10359
10360 2009-05-21  Eric Blake  <ebb9@byu.net>
10361             Bruno Haible  <bruno@clisp.org>
10362
10363         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
10364         include_next. Fix of 2008-11-20 commit.
10365         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
10366         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
10367         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
10368         NEXT_MATH_H.
10369         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
10370         instead of NEXT_MATH_H.
10371
10372 2009-05-21  Bruno Haible  <bruno@clisp.org>
10373
10374         Avoid redefinition warnings for SIZE_MAX.
10375         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
10376         Reported by Simon Josefsson.
10377
10378 2009-05-21  Bruno Haible  <bruno@clisp.org>
10379
10380         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
10381         AC_CACHE_VAL.
10382
10383 2009-05-20  Bruno Haible  <bruno@clisp.org>
10384
10385         Make zeroptr.h work on mingw.
10386         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
10387         mprotect.
10388         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
10389         * modules/memchr2-tests (configure.ac): Likewise.
10390         * modules/memcmp-tests (configure.ac): Likewise.
10391         * modules/memmem-tests (configure.ac): Likewise.
10392         * modules/memrchr-tests (configure.ac): Likewise.
10393         Reported by Simon Josefsson.
10394
10395 2009-05-20  Simon Josefsson  <simon@josefsson.org>
10396
10397         * tests/test-glob.c: Include string.h for strcmp prototype.
10398
10399 2009-05-20  Simon Josefsson  <simon@josefsson.org>
10400
10401         * modules/getdelim (Depends-on): Add explicit stdint, although it
10402         was implicitly already pulled in via realloc-posix.
10403         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
10404
10405 2009-05-20  Simon Josefsson  <simon@josefsson.org>
10406
10407         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
10408         G. Christensen" <tgc@jupiterrise.com>.
10409         * m4/sys_socket_h.m4: Check for sa_family_t.
10410         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
10411         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
10412         * tests/test-sys_socket.c: Check that sa_family_t works.
10413
10414 2009-05-18  Eric Blake  <ebb9@byu.net>
10415
10416         maint.mk: allow gnulib_dir in VPATH build
10417         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
10418
10419 2009-05-15  Jim Meyering  <meyering@redhat.com>
10420
10421         maint.mk: Give gnulib_dir a default definition.
10422         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
10423         Thus, most packages no longer need to specify this variable in cfg.mk
10424
10425 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
10426
10427         rename.m4: fix typos that would make non-mingw cross-configure fail
10428         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
10429
10430 2009-05-13  Eric Blake  <ebb9@byu.net>
10431
10432         mmap-anon: avoid out-of-order autoconf expansion
10433         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
10434         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
10435         * modules/memchr-tests (Depends-on): Add extensions.
10436         * modules/memchr2-tests (Depends-on): Add extensions.
10437         * modules/memcmp-tests (Depends-on): Add extensions.
10438         * modules/memmem-tests (Depends-on): Add extensions.
10439         * modules/memrchr-tests (Depends-on): Add extensions.
10440
10441 2009-05-13  Bruno Haible  <bruno@clisp.org>
10442
10443         Make some tests ISO C 99 compliant.
10444         * tests/zerosize-ptr.h: New file.
10445         * tests/test-memchr.c: Include zerosize-ptr.h.
10446         (main): Use a zero-size object pointer instead of NULL.
10447         * tests/test-memchr2.c: Include zerosize-ptr.h.
10448         (main): Use a zero-size object pointer instead of NULL.
10449         * tests/test-memcmp.c: Include zerosize-ptr.h.
10450         (main): Use a zero-size object pointer instead of NULL.
10451         * tests/test-memmem.c: Include zerosize-ptr.h.
10452         (main): Use a zero-size object pointer instead of NULL.
10453         * tests/test-memrchr.c: Include zerosize-ptr.h.
10454         (main): Use a zero-size object pointer instead of NULL.
10455         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
10456         m4/mmap-anon.m4.
10457         (Depends-on): Add getpagesize.
10458         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10459         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
10460         m4/mmap-anon.m4.
10461         (Depends-on): Add getpagesize.
10462         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10463         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
10464         m4/mmap-anon.m4.
10465         (Depends-on): Add getpagesize.
10466         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10467         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
10468         m4/mmap-anon.m4.
10469         (Depends-on): Add getpagesize.
10470         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10471         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
10472         m4/mmap-anon.m4.
10473         (Depends-on): Add getpagesize.
10474         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10475
10476 2009-05-12  Bruno Haible  <bruno@clisp.org>
10477
10478         Tests for module 'alignof'.
10479         * modules/alignof-tests: New file.
10480         * tests/test-alignof.c: New file.
10481
10482 2009-05-12  Bruno Haible  <bruno@clisp.org>
10483
10484         Fix alignof macro.
10485         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
10486         vendor compilers that are always correct.
10487
10488 2009-05-12  Bruno Haible  <bruno@clisp.org>
10489
10490         Make the MAP_ANONYMOUS detection work on HP-UX 11.
10491         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
10492         not whether its fully works.
10493
10494 2009-05-12  Bruno Haible  <bruno@clisp.org>
10495
10496         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
10497
10498 2009-05-12  Jim Meyering  <meyering@redhat.com>
10499
10500         * top/maint.mk: Adjust backslash alignment.
10501
10502 2009-05-11  Simon Josefsson  <simon@josefsson.org>
10503
10504         * top/maint.mk: Make $(srcdir)/build-aux configurable.
10505
10506 2009-05-11  Eric Blake  <ebb9@byu.net>
10507
10508         argp: avoid undefined behavior
10509         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
10510         macros.
10511
10512 2009-05-08  Simon Josefsson  <simon@josefsson.org>
10513
10514         * tests/test-vc-list-files-git.sh: Do git config of user.email and
10515         user.name to prevent git commit from complaining.
10516
10517 2009-05-10  Bruno Haible  <bruno@clisp.org>
10518
10519         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
10520         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
10521         it rewrites every file name only once.
10522         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
10523
10524 2009-05-08  Bruno Haible  <bruno@clisp.org>
10525
10526         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
10527         instead of 'max'.
10528
10529 2009-05-08  Simon Josefsson  <simon@josefsson.org>
10530
10531         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
10532         sockaddr_storage test.
10533
10534 2009-05-07  Simon Josefsson  <simon@josefsson.org>
10535
10536         * modules/sys_socket (Makefile.am): Substitute
10537         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
10538         * m4/sys_socket_h.m4: Check for sockaddr_storage.
10539         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
10540         * tests/test-sys_socket.c: Check sockaddr_storage.
10541
10542 2009-05-08  Bruno Haible  <bruno@clisp.org>
10543
10544         New module 'alignof'.
10545         * lib/alignof.h: New file.
10546         * modules/alignof: New file.
10547
10548 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
10549             Bruno Haible  <bruno@clisp.org>
10550
10551         Fix test-file-has-acl on FreeBSD.
10552         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
10553         mask is implicitly added.
10554         * tests/test-file-has-acl.c: Include <signal.h>.
10555         (main): Terminate the test after 5 seconds.
10556         * modules/acl-tests (configure.ac): Check for alarm function.
10557
10558 2009-05-04  Bruno Haible  <bruno@clisp.org>
10559
10560         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
10561         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
10562         * modules/errno (configure.ac): Drop AC_REQUIRE.
10563         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
10564         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
10565
10566 2009-05-04  Simon Josefsson  <simon@josefsson.org>
10567
10568         * modules/glob-tests: New module.
10569         * tests/test-glob.c: Add.
10570
10571 2009-05-04  Simon Josefsson  <simon@josefsson.org>
10572
10573         * modules/fnmatch-tests: New module.
10574         * tests/test-fnmatch.c: Add.
10575
10576 2009-05-04  Eric Blake  <ebb9@byu.net>
10577
10578         maint: make the new no-submodule-changes rule VPATH-safe
10579         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
10580
10581 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
10582             Bruno Haible  <bruno@clisp.org>
10583
10584         acl: Fix infinite loop on FreeBSD.
10585         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
10586         of return value from acl_get_entry.
10587         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
10588         Likewise.
10589
10590 2009-05-03  Bruno Haible  <bruno@clisp.org>
10591
10592         * lib/acl-internal.h (acl_entries): Clarify return value.
10593         * lib/acl_entries.c (acl_entries): Likewise.
10594
10595 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
10596
10597         Bug fix in acl module.
10598         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
10599
10600 2009-05-03  Bruno Haible  <bruno@clisp.org>
10601
10602         Create gperf-generated file in the source dir, not in the build dir.
10603         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
10604         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
10605         * modules/unicase/locale-language (unicase/locale-languages.h):
10606         Likewise.
10607         * modules/unicase/special-casing (unicase/special-casing-table.h):
10608         Likewise.
10609         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
10610         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
10611         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
10612         Reported by Ralf Wildenhues.
10613
10614 2009-05-03  Bruno Haible  <bruno@clisp.org>
10615
10616         * modules/fnmatch (Description, configure.ac): Taken from
10617         fnmatch-posix.
10618         * modules/fnmatch-posix: Turn into a symbolic reference to the
10619         'fnmatch' module, and deprecate.
10620         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
10621
10622 2009-05-03  Bruno Haible  <bruno@clisp.org>
10623
10624         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
10625         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
10626         Reported by Ralf Wildenhues.
10627
10628 2009-05-04  Simon Josefsson  <simon@josefsson.org>
10629
10630         * m4/fnmatch.m4: Fix fnmatch re-define.
10631
10632 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
10633
10634         priv-set: new module and tests; adapt write-any-file
10635         * lib/priv-set.c: New file.
10636         * lib/priv-set.h: New file.
10637         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
10638         * lib/write-any-file.c: Simplify by using priv-set module.
10639         * m4/priv-set.m4: New file.
10640         * modules/priv-set: New file.
10641         * modules/unlinkdir: Add dependency on priv-set module.
10642         * modules/write-any-file: Likewise.
10643
10644         Tests for module 'priv-set'.
10645         * modules/priv-set-tests: New file.
10646         * tests/test-priv-set.c: New file.
10647
10648 2009-05-03  Jim Meyering  <meyering@redhat.com>
10649             Bruno Haible  <bruno@clisp.org>
10650
10651         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
10652         use the converted UTF-8 variant of the name instead.
10653
10654 2009-05-03  Jim Meyering  <meyering@redhat.com>
10655
10656         tests: tighten some getdate tests
10657         * tests/test-getdate.c (main): Tighten tests: require equality,
10658         not just greater than.  Set TZ envvar to UTC0.
10659
10660 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
10661
10662         getdate: correctly interpret "next monday" when run on a Monday
10663         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
10664         that e.g., "next tues" (when run on a tuesday) results in a date
10665         that is one week in the future, and not today's date.
10666         I.e., add a week when the wday is the same as the current one.
10667         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
10668         and earlier by Martin Bernreuther and Jan Minář.
10669         * tests/test-getdate.c (main): Check that "next DAY" is always in
10670         the future and that "last DAY" is always in the past.
10671
10672 2009-05-02  Jim Meyering  <meyering@redhat.com>
10673
10674         build: ensure that a release build fails when a submodule is unclean
10675         * top/maint.mk (no-submodule-changes): New rule.
10676         (alpha beta major): Depend on it.
10677
10678 2009-05-02  Bruno Haible  <bruno@clisp.org>
10679
10680         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
10681         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
10682         shell variable gl_fnmatch_required to detect which variant is
10683         requested.
10684         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
10685         gl_FUNC_FNMATCH_POSIX.
10686         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
10687         exclude fnmatch-posix.
10688
10689 2009-05-02  Bruno Haible  <bruno@clisp.org>
10690
10691         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
10692         * modules/mbsrtowcs (License): Change to LGPLv2+.
10693         * modules/strnlen1 (License): Likewise.
10694         Reported by Simon Josefsson.
10695
10696 2009-05-02  Bruno Haible  <bruno@clisp.org>
10697
10698         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
10699         "cross".
10700         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
10701         gnulib-tool was called with option --source-base=lib.
10702
10703 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10704
10705         Use automake *-local hooks without commands, for extensibility.
10706         * modules/localcharset (Makefile.am): Rename install-exec-local
10707         rule to install-exec-localcharset, and make it a prerequisite of
10708         install-exec-local.  Likewise, rename the uninstall-local rule to
10709         uninstall-localcharset, and make it a prerequisite of the former.
10710
10711 2009-05-01  Bruno Haible  <bruno@clisp.org>
10712
10713         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
10714         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
10715         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
10716         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
10717         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
10718         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
10719         m4/locale-zh.m4, m4/codeset.m4.
10720
10721         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
10722         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
10723         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
10724         m4/locale-zh.m4.
10725
10726         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
10727         REPLACE_WCRTOMB if mbstate_t must be replaced.
10728         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
10729         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
10730
10731 2009-05-01  Bruno Haible  <bruno@clisp.org>
10732
10733         Avoid compiler warnings when redefining macros defined by <libintl.h>.
10734         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
10735         dngettext, dcngettext, textdomain, bindtextdomain,
10736         bind_textdomain_codeset): Undefine before redefining.
10737
10738 2009-04-30  Bruno Haible  <bruno@clisp.org>
10739
10740         Fix bug introduced on 2009-04-25.
10741         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
10742         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
10743         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
10744         is defined.
10745         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
10746         is defined.
10747         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
10748         is defined.
10749         Reported by Elbert_Pol <elbert.pol@gmail.com>.
10750
10751 2009-04-28  Bruno Haible  <bruno@clisp.org>
10752
10753         Comment tweaks.
10754         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
10755         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
10756         * lib/unicase.h (u*_casexfrm): Likewise.
10757         Reported by Paolo Bonzini.
10758
10759 2009-04-28  Bruno Haible  <bruno@clisp.org>
10760
10761         Fix a compilation error.
10762         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
10763         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
10764         Reported by Jim Meyering.
10765
10766 2009-04-27  Bruno Haible  <bruno@clisp.org>
10767
10768         New module 'libunistring'.
10769         * modules/libunistring: New file.
10770         * m4/libunistring.m4: New file.
10771         * MODULES.html.sh (Unicode string functions): Add it.
10772
10773 2009-04-27  Eric Blake  <ebb9@byu.net>
10774
10775         maint.mk: allow package-specific header to provide <config.h>
10776         * top/maint.mk (sc_require_config_h): New variable.
10777         (sc_require_config_h, sc_require_config_h_first): Use it.
10778
10779 2009-04-27  Simon Josefsson  <simon@josefsson.org>
10780
10781         * top/maint.mk (sc_avoid_if_before_free): Except
10782         useless-if-before-free script.
10783
10784 2009-04-27  Eric Blake  <ebb9@byu.net>
10785
10786         maintainer-makefile: depend on all required helper scripts
10787         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
10788         useless-if-before-free.
10789         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
10790         version, rather than assuming gnulib checkout is available.
10791         Reported by Simen Josefsson.
10792
10793 2009-04-26  Bruno Haible  <bruno@clisp.org>
10794
10795         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
10796         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
10797         "../" or "..".
10798
10799 2009-04-26  Bruno Haible  <bruno@clisp.org>
10800
10801         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
10802         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
10803         AC_LIB_HAVE_LINKFLAGS.
10804
10805 2009-04-26  Bruno Haible  <bruno@clisp.org>
10806
10807         Simplify calling convention of u*_conv_from_encoding.
10808         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
10809         u32_conv_from_encoding): Expect a resultbuf argument and return the
10810         result directly as a pointer.
10811         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
10812         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
10813         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
10814         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
10815         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
10816         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
10817         Update.
10818         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
10819         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
10820         * lib/vasnprintf.c (VASNPRINTF): Update.
10821         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
10822         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
10823         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
10824         * NEWS: Mention the change.
10825
10826 2009-04-26  Bruno Haible  <bruno@clisp.org>
10827
10828         Simplify calling convention of u*_conv_to_encoding.
10829         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
10830         u32_conv_to_encoding): Expect a resultbuf argument and return the
10831         result directly as a pointer.
10832         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
10833         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
10834         freeing scaled_offsets if mem_iconveha failed.
10835         * lib/unicase/u-casexfrm.h (FUNC): Update.
10836         * lib/uninorm/u-normxfrm.h (FUNC): Update.
10837         * lib/vasnprintf.c (VASNPRINTF): Update.
10838         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
10839         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
10840         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
10841         * NEWS: Mention the change.
10842
10843 2009-04-26  Bruno Haible  <bruno@clisp.org>
10844
10845         Avoid test failures on AIX and OSF/1.
10846         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
10847         malloc(0).
10848         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
10849         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
10850         Likewise.
10851         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
10852         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
10853         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
10854         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
10855         * doc/posix-functions/malloc.texi: Document the portability problem
10856         related to malloc(0).
10857
10858 2009-04-26  Bruno Haible  <bruno@clisp.org>
10859
10860         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
10861         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
10862         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
10863
10864 2009-04-25  Bruno Haible  <bruno@clisp.org>
10865
10866         Avoid link error when creating a namespace clean library.
10867         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
10868         as macro with arguments if already defined as an alias.
10869         * lib/signbitf.c (gl_signbitf): Don't undefine.
10870         * lib/signbitd.c (gl_signbitd): Don't undefine.
10871         * lib/signbitl.c (gl_signbitl): Don't undefine.
10872
10873 2009-04-25  Jim Meyering  <meyering@redhat.com>
10874
10875         vc-list-files: fix another quoting bug
10876         * build-aux/vc-list-files: Avoid sed backslash expansion
10877         of pathological directory names.
10878
10879 2009-04-25  Eric Blake  <ebb9@byu.net>
10880
10881         vc-list-files: fix shell quoting error
10882         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
10883         timestamp.
10884
10885 2009-04-25  Jim Meyering  <meyering@redhat.com>
10886
10887         vc-list-files: restore lost functionality with subdir argument
10888         * build-aux/vc-list-files: When given a non-"." sub-directory
10889         argument, substitute the $dir/ prefix back onto each resulting name.
10890         Otherwise, coreutils' root_tests check would fail.
10891
10892 2009-04-24  Eric Blake  <ebb9@byu.net>
10893
10894         vc-list-files: ignore git symlinks
10895         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
10896         than ls-files, to ignore git symlinks.
10897
10898         maint.mk: import improvements from m4
10899         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
10900         (move_if_change): Delete unused macro.
10901         (news-date-check, vc-diff-check): Support VPATH builds.
10902         (announcement): Likewise.  Split --bootstrap-tools list...
10903         (boostrap-tools): ...into separate list, which can be overridden
10904         in cfg.mk.
10905         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
10906         requiring dependency on useless-if-before-free module.
10907         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
10908         Support VPATH builds.
10909
10910 2009-04-24  Jim Meyering  <meyering@redhat.com>
10911
10912         maint.mk: remove coreutils-specific rules and variables
10913         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
10914         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
10915         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
10916
10917         maint.mk: remove obsolete rule
10918         * top/maint.mk (rel-check): Remove rule.
10919         (WGET, WGETFLAGS): Remove now-unused variables.
10920
10921 2009-04-24  Simon Josefsson  <simon@josefsson.org>
10922
10923         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
10924         consistency.
10925
10926         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
10927         '$(PATH_SEPARATOR)' instead of ':'.
10928
10929 2009-04-24  Simon Josefsson  <simon@josefsson.org>
10930
10931         * lib/getopt1.c (main): Use 'const' for static array.
10932
10933 2009-04-24  Simon Josefsson  <simon@josefsson.org>
10934
10935         * top/maint.mk: Sync with coreutils.
10936         * NEWS: Explain incompatibilities.
10937
10938 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10939             Bruno Haible  <bruno@clisp.org>
10940
10941         Fix cross-compilation results.
10942         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
10943         statement, as third argument of AC_TRY_RUN.
10944         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
10945         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
10946         Likewise.
10947         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10948         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
10949         Likewise.
10950         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10951         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
10952         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
10953
10954 2009-04-20  Bruno Haible  <bruno@clisp.org>
10955
10956         Avoid test failure on mingw.
10957         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
10958
10959 2009-04-20  Bruno Haible  <bruno@clisp.org>
10960
10961         Avoid compilation error on mingw.
10962         * modules/localename-tests (Depends-on): Add locale.
10963
10964 2009-04-19  Bruno Haible  <bruno@clisp.org>
10965
10966         Support for building a shared library on Windows platforms.
10967         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
10968         (main): Test the presence of UNINORM_NFC here.
10969         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
10970         (main): Test the presence of UNINORM_NFD here.
10971         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
10972         (main): Test the presence of UNINORM_NFKC here.
10973         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
10974         (main): Test the presence of UNINORM_NFKD here.
10975
10976 2009-04-19  Bruno Haible  <bruno@clisp.org>
10977
10978         Avoid a compiler warning.
10979         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
10980         Change type of variable 'sequence'.
10981
10982 2009-04-19  Bruno Haible  <bruno@clisp.org>
10983
10984         * modules/configmake (Makefile.am): When the contents of configmake.h
10985         does not change, arrange to preserve its modification time.
10986
10987 2009-04-17  Simon Josefsson  <simon@josefsson.org>
10988
10989         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
10990         gettext domain.
10991
10992 2009-04-16  Jim Meyering  <meyering@redhat.com>
10993
10994         useless-if-before-free: improve conversion code
10995         * build-aux/useless-if-before-free: Adjust code-in-comment to match
10996         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
10997
10998 2009-04-14  Bruno Haible  <bruno@clisp.org>
10999
11000         * modules/fcntl (Depends-on): Add extensions.
11001         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
11002
11003 2009-04-12  Ben Pfaff  <blp@gnu.org>
11004
11005         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
11006         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
11007
11008 2009-03-20  Ben Pfaff  <blp@gnu.org>
11009
11010         Make rename replace existing destinations on Windows.
11011         * m4/rename.m4: Add test for Mingw.
11012         * lib/rename.c: Add rename replacement that uses MoveFileEx with
11013         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
11014         * doc/posix-functions/rename.texi: Document.
11015
11016 2009-04-10  Bruno Haible  <bruno@clisp.org>
11017
11018         New include file "iconveh.h".
11019         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
11020         * lib/striconveh.h: Include it.
11021         (enum iconv_ilseq_handler): Remove definition.
11022         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
11023         striconveh.h.
11024         * lib/striconveha.c: Include striconveh.h.
11025         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
11026         * modules/striconveh (Files): Add lib/iconveh.h.
11027         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
11028         lib/striconveh.h.
11029
11030 2009-04-10  Bruno Haible  <bruno@clisp.org>
11031
11032         * lib/uniconv.h: Update comment.
11033
11034 2009-04-10  Bruno Haible  <bruno@clisp.org>
11035
11036         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
11037         always.
11038         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
11039         * lib/unistr/u16-mbtouc-aux.c: Likewise.
11040         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
11041         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
11042         "unistring-notinline.h", so that the function gets defined always.
11043         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
11044         * lib/unistr/u8-uctomb.c: Likewise.
11045         * lib/unistr/u16-mbtouc.c: Likewise.
11046         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
11047         * lib/unistr/u16-uctomb.c: Likewise.
11048         * lib/unistr/u32-mbtouc.c: Likewise.
11049         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
11050         * lib/unistr/u32-uctomb.c: Likewise.
11051
11052 2009-04-10  Bruno Haible  <bruno@clisp.org>
11053
11054         Mark 'utime' obsolete.
11055         * modules/utime (Status, Notice): New sections.
11056         Suggested by Jim Meyering.
11057
11058         Fix cross-compile guess for utime test.
11059         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
11060         autoconf.
11061         * doc/posix-functions/utime.texi: Give more precisions.
11062         Reported by Jan <ipif@ymail.com>.
11063
11064 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
11065
11066         filevercmp: correct today's change
11067         * lib/filevercmp.c: Also handle coreutils' test inputs.
11068         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
11069
11070         Fix regression in 'filevercmp' module. Thanks Sven Joachim
11071         for reporting it.
11072         * lib/filevercmp.c: Special handle for "", "." and "..".
11073         * tests/test-filevercmp.c: Enlarge the set suite.
11074
11075 2009-04-07  Jim Meyering  <meyering@redhat.com>
11076
11077         useless-if-before-free: show how to remove braced useless free, too
11078         * build-aux/useless-if-before-free: still only in a comment, though.
11079
11080 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
11081
11082         maint.mk: import changes to syntax-check macros from coreutils
11083         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
11084         Use them in the relevant macros.
11085
11086 2009-04-06  Bruno Haible  <bruno@clisp.org>
11087
11088         Fix unportable use of bit-fields.
11089         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
11090         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
11091         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
11092
11093 2009-04-06  Bruno Haible  <bruno@clisp.org>
11094
11095         Avoid test failures on AIX and OSF/1.
11096         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
11097         that malloc(0) = NULL.
11098         * tests/unicase/test-u8-tolower.c (check): Likewise.
11099         * tests/unicase/test-u8-totitle.c (check): Likewise.
11100         * tests/unicase/test-u8-toupper.c (check): Likewise.
11101         * tests/unicase/test-u16-casefold.c (check): Likewise.
11102         * tests/unicase/test-u16-tolower.c (check): Likewise.
11103         * tests/unicase/test-u16-totitle.c (check): Likewise.
11104         * tests/unicase/test-u16-toupper.c (check): Likewise.
11105         * tests/unicase/test-u32-casefold.c (check): Likewise.
11106         * tests/unicase/test-u32-tolower.c (check): Likewise.
11107         * tests/unicase/test-u32-totitle.c (check): Likewise.
11108         * tests/unicase/test-u32-toupper.c (check): Likewise.
11109         * tests/uninorm/test-u8-nfc.c (check): Likewise.
11110         * tests/uninorm/test-u8-nfd.c (check): Likewise.
11111         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
11112         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
11113         * tests/uninorm/test-u16-nfc.c (check): Likewise.
11114         * tests/uninorm/test-u16-nfd.c (check): Likewise.
11115         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
11116         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
11117         * tests/uninorm/test-u32-nfc.c (check): Likewise.
11118         * tests/uninorm/test-u32-nfd.c (check): Likewise.
11119         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
11120         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
11121
11122 2009-04-05  Bruno Haible  <bruno@clisp.org>
11123
11124         Work around an autoconf limitation.
11125         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
11126         comment line if it would be longer than 3 KB.
11127
11128 2009-04-05  Bruno Haible  <bruno@clisp.org>
11129
11130         Avoid test failure with libiconv-1.13.
11131         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
11132         of the expected test results.
11133
11134 2009-04-05  Bruno Haible  <bruno@clisp.org>
11135
11136         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
11137         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
11138         that it should be installed.
11139
11140 2009-04-05  Bruno Haible  <bruno@clisp.org>
11141
11142         * gnulib-tool: New option --copy-file.
11143         (func_usage): Document it.
11144         (func_dest_tmpfilename): Moved out of func_import.
11145         (func_add_file, func_update_file): New functions, extracted from
11146         func_import.
11147         (func_import): Update.
11148
11149 2009-04-05  Karl Berry  <karl@gnu.org>
11150
11151         * README: prominently mention gnulib-tool.
11152         Rearrange sections so getting the code is near the top.
11153
11154 2009-04-05  Bruno Haible  <bruno@clisp.org>
11155
11156         * lib/unicase.h: Mention u*_cmp2.
11157         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
11158         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
11159         * lib/unicase/ulc-casecmp.c: Likewise.
11160         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
11161         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
11162         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
11163         unistr/u8-cmp.
11164         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
11165         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
11166         unistr/u16-cmp.
11167         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
11168         unistr/u32-cmp.
11169
11170         * lib/uninorm.h: Mention u*_cmp2.
11171         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
11172         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
11173         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
11174         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
11175         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
11176         unistr/u8-cmp.
11177         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
11178         unistr/u16-cmp.
11179         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
11180         unistr/u32-cmp.
11181
11182         New module 'unistr/u32-cmp2'.
11183         * lib/unistr/u32-cmp2.c: New file.
11184         * modules/unistr/u32-cmp2: New file.
11185
11186         New module 'unistr/u16-cmp2'.
11187         * lib/unistr/u16-cmp2.c: New file.
11188         * modules/unistr/u16-cmp2: New file.
11189
11190         New module 'unistr/u8-cmp2'.
11191         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
11192         * lib/unistr/u8-cmp2.c: New file.
11193         * lib/unistr/u-cmp2.h: New file.
11194         * modules/unistr/u8-cmp2: New file.
11195
11196 2009-04-05  Bruno Haible  <bruno@clisp.org>
11197
11198         * lib/unictype.h (uc_property_is_valid): New macro.
11199         * tests/unictype/test-pr_byname.c (main): Use it.
11200
11201         * lib/unistr.h: Doc fixes.
11202         * lib/uniconv.h: Doc fixes.
11203         * lib/unictype.h: Doc fixes.
11204
11205 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
11206
11207         Port coreutils 7.2 to Solaris 8.
11208
11209         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
11210         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
11211         for Solaris 8.  This is a bit of a hack, as it means it's the
11212         caller's responsibility to add -lnsl if needed, but most likely it
11213         won't be needed since only getaddrinfo uses this and getaddrinfo
11214         isn't needed on Solaris 8.
11215
11216         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
11217         problem to Solaris 8 encountered with coreutils 7.2, which
11218         resulted in a message "fnmatch.c:292: warning: passing argument 4
11219         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
11220         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
11221
11222 2009-04-03  Simon Josefsson  <simon@josefsson.org>
11223
11224         * m4/ld-version-script.m4: Add FIXME comment.
11225
11226 2009-04-02  Simon Josefsson  <simon@josefsson.org>
11227
11228         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
11229         SOVERSION variable.
11230
11231 2009-04-02  Bruno Haible  <bruno@clisp.org>
11232
11233         * Makefile (info, html, dvi, pdf): Combine the rules.
11234         Suggested by Jim Meyering.
11235
11236 2009-04-01  Bruno Haible  <bruno@clisp.org>
11237
11238         * Makefile (info, html, dvi, pdf): New targets.
11239         Reported by Reuben Thomas <rrt@sc3d.org>.
11240
11241 2009-04-01  Bruno Haible  <bruno@clisp.org>
11242
11243         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
11244         can be put into PATH.
11245         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
11246
11247 2009-04-01  Bruno Haible  <bruno@clisp.org>
11248
11249         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
11250
11251 2009-04-01  Bruno Haible  <bruno@clisp.org>
11252
11253         Rename module 'visibility'.
11254         * modules/lib-symbol-visibility: Renamed from modules/visibility.
11255         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
11256         * doc/gnulib.texi: Update.
11257         * MODULES.html.sh (Misc): Update.
11258         * NEWS: Mention the change.
11259
11260 2009-04-01  Simon Josefsson  <simon@josefsson.org>
11261
11262         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
11263         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
11264         Eric Blake <ebb9@byu.net> for review.
11265         * MODULES.html.sh: Add lib-msvc-compat.
11266         * doc/gnulib.texi: Link to new section.
11267         * m4/ld-output-def.m4: New file.
11268         * doc/ld-output-def.texi: New file.
11269
11270 2009-04-01  Simon Josefsson  <simon@josefsson.org>
11271
11272         Rename ld-version-script to lib-symbol-versions.  Suggested by
11273         Bruno Haible <bruno@clisp.org>.
11274         * modules/ld-version-script: Renamed to lib-symbol-versions.
11275         * doc/ld-version-script.texi: Fix module name.
11276         * MODULES.html.sh: Add lib-symbol-versions.
11277
11278 2009-03-31  Simon Josefsson  <simon@josefsson.org>
11279
11280         * modules/u64-tests: New file.
11281         * tests/test-u64.c: New file.
11282
11283 2009-03-04  Simon Josefsson  <simon@josefsson.org>
11284
11285         * MODULES.html.sh: Mention u64.
11286         * modules/u64: New module.
11287         * modules/crypto/sha512: Depend on u64 module instead of providing
11288         u64.h.
11289
11290 2009-03-27  Eric Blake  <ebb9@byu.net>
11291
11292         test-strerror: make debugging EAI_SYSTEM easier
11293         * modules/getaddrinfo-tests (Depends-on): Add strerror.
11294         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
11295         failure was EAI_SYSTEM.
11296
11297 2009-03-25  Bruno Haible  <bruno@clisp.org>
11298
11299         Fix a problem with --enable-relocatable on Solaris 7.
11300         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
11301         since 2008-02-24.
11302
11303 2009-03-25  Eric Blake  <ebb9@byu.net>
11304
11305         test-sockets: avoid gcc warning
11306         * tests/test-sockets.c (main): Silence compiler warning.
11307
11308 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
11309
11310         New modules nproc, pthread, contributed by Glen Lenker.
11311
11312         * MODULES.html.sh: Add pthread, nproc.
11313         * lib/nproc.c: New file.
11314         * lib/nproc.h: New file.
11315         * lib/pthread.in.h: New file.
11316         * m4/pthread.m4: New file.
11317         * modules/nproc: New file.
11318         * modules/pthread: New file.
11319
11320 2009-03-24  Simon Josefsson  <simon@josefsson.org>
11321
11322         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
11323         New variable.
11324
11325 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
11326
11327         filevercmp: handle simple~ and numbered.~3~ backup suffixes
11328         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
11329         * tests/test-filevercmp.c: Add tests for backup suffixes.
11330
11331 2009-03-24  Simon Josefsson  <simon@josefsson.org>
11332
11333         * modules/stdlib (Depends-on): Add stdint, needed when defining
11334         struct random_data on, for example, HP-UX 10.20.  Reported by
11335         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11336
11337 2009-03-24  Simon Josefsson  <simon@josefsson.org>
11338
11339         * lib/readline.c (readline): Call fflush on stdout after printing
11340         prompt.
11341
11342 2009-03-20  Bruno Haible  <bruno@clisp.org>
11343
11344         Remove dependency from 'close' module to -lws2_32 on native Windows.
11345         * lib/close-hook.h: New file.
11346         * lib/close-hook.c: New file.
11347         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
11348         w32sock.h.
11349         (_gl_close_fd_maybe_socket): Remove function.
11350         (rpl_close): Invoke execute_all_close_hooks instead of
11351         _gl_close_fd_maybe_socket.
11352         * lib/sockets.c: Include close-hook.h, w32sock.h.
11353         (close_fd_maybe_socket): New function, essentially from lib/close.c.
11354         (close_sockets_hook): New variable.
11355         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
11356         (gl_sockets_cleanup): Unregister it.
11357         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
11358         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
11359         * modules/close-hook: New file.
11360         * modules/close (Files): Remove lib/w32sock.h.
11361         (Depends-on): Add close-hook.
11362         (Link): Remove section.
11363         * modules/sockets (Files): Add lib/w32sock.h.
11364         (Depends-on): Add close-hook.
11365         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
11366         invocation.
11367         * NEWS: Mention that LIB_CLOSE is gone.
11368
11369 2009-03-23  Eric Blake  <ebb9@byu.net>
11370
11371         signal-tests: test previous patch
11372         * tests/test-signal.c: New file.
11373         * modules/signal-tests: Likewise.
11374
11375         signal.h: always support 'volatile sig_atomic_t'
11376         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
11377         (gl_SIGNAL_H_DEFAULTS): Add a default.
11378         * modules/signal (Makefile.am): Substitute if needed.
11379         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
11380         users can blindly add volatile.
11381         * doc/posix-headers/signal.texi (signal.h): Document it.
11382         Reported by Matthew Woehlke.
11383
11384 2009-03-23  Jim Meyering  <meyering@redhat.com>
11385
11386         pathmax: PATH_MAX: use pathconf only when available
11387         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
11388         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
11389         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
11390         This avoids a link failure in a PSP cross-compilation environment
11391         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
11392
11393         * lib/vasnprintf.c (divide): Fix typo in comment.
11394
11395 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11396
11397         * gnulib-tool (func_filter_filelist): Fix comment.
11398
11399 2009-03-20  Bruno Haible  <bruno@clisp.org>
11400
11401         Make sockets.h self-contained.
11402         * lib/sockets.c: Include sockets.h first.
11403         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
11404
11405 2009-03-19  Eric Blake  <ebb9@byu.net>
11406
11407         doc: mention more functions added in cygwin 1.7.0
11408         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
11409         addition.
11410         * doc/posix-functions/log2f.texi: Likewise.
11411
11412 2009-03-19  Jim Meyering  <meyering@redhat.com>
11413
11414         fsusage: avoid syntax error due to statement-before-declaration
11415         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
11416         after all declarations.  Reported by Matthew Woehlke in
11417         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
11418
11419 2009-03-18  Eric Blake  <ebb9@byu.net>
11420
11421         build-aux/compile: sync from automake
11422         * build-aux/compile: New file, from automake.
11423         * config/srclist.txt: Mention build-aux/compile.
11424
11425 2009-03-17  Bruno Haible  <bruno@clisp.org>
11426
11427         * lib/git-merge-changelog.c: Fix typo in comment.
11428         Reported by Reuben Thomas <rrt@sc3d.org>.
11429
11430 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
11431
11432         * m4/regex.m4: update and improve help for
11433         --without-included-regex.
11434
11435 2009-03-17  Simon Josefsson  <simon@josefsson.org>
11436
11437         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
11438         failure on missing include files.
11439
11440 2009-03-17  Eric Blake  <ebb9@byu.net>
11441
11442         doc: mention more functions added in cygwin 1.7.0
11443         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
11444         addition.
11445         * doc/posix-functions/fwscanf.texi: Likewise.
11446         * doc/posix-functions/swprintf.texi: Likewise.
11447         * doc/posix-functions/swscanf.texi: Likewise.
11448         * doc/posix-functions/vfwprintf.texi: Likewise.
11449         * doc/posix-functions/vfwscanf.texi: Likewise.
11450         * doc/posix-functions/vswprintf.texi: Likewise.
11451         * doc/posix-functions/vswscanf.texi: Likewise.
11452         * doc/posix-functions/vwprintf.texi: Likewise.
11453         * doc/posix-functions/vwscanf.texi: Likewise.
11454         * doc/posix-functions/wcscasecmp.texi: Likewise.
11455         * doc/posix-functions/wcsdup.texi: Likewise.
11456         * doc/posix-functions/wcsftime.texi: Likewise.
11457         * doc/posix-functions/wcsncasecmp.texi: Likewise.
11458         * doc/posix-functions/wprintf.texi: Likewise.
11459         * doc/posix-functions/wscanf.texi: Likewise.
11460         * doc/glibc-functions/gethostbyname2.texi: Likewise.
11461
11462 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11463
11464         maint.mk: really add $(AM_MAKEFLAGS)
11465         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
11466         was inadvertently omitted in the last commit.
11467         Spotted by Bruno Haible.
11468
11469         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
11470         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
11471         $(AM_MAKEFLAGS)' rather than plain `make'.
11472
11473         gnulib-tool: execute $MAKE not make
11474         * gnulib-tool: Default $MAKE to 'make'.
11475         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
11476         than make.  Initialize $MAKE in the do-autobuild script.
11477
11478         gnulib-tool: use $MAKE not make in generated files
11479         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
11480         make, in generated files.  Initialize $MAKE in the do-autobuild
11481         script.
11482
11483         * top/GNUmakefile (_have-git-version-gen): Fix typo.
11484
11485         GNUmakefile: disable parallelism only for multiple, recursive targets
11486         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
11487         additions in the Makefile.
11488         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
11489         by Automake.
11490         (.NOTPARALLEL): Only disable parallel builds if multiple targets
11491         are listed on the command line and at least one of them is
11492         listed in $(ALL_RECURSIVE_TARGETS).
11493
11494 2009-03-14  Bruno Haible  <bruno@clisp.org>
11495
11496         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
11497         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
11498         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
11499         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
11500         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
11501         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
11502         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
11503         unistr/u8-uctomb.
11504         * modules/unistr/u8-strchr (Depends-on): Likewise.
11505         * modules/unistr/u8-strrchr (Depends-on): Likewise.
11506         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
11507         unistr/u16-uctomb.
11508         * modules/unistr/u16-strchr (Depends-on): Likewise.
11509         * modules/unistr/u16-strrchr (Depends-on): Likewise.
11510
11511 2009-03-12  Bruno Haible  <bruno@clisp.org>
11512
11513         Work around select() bug on Interix 3.5.
11514         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
11515         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
11516         * m4/select.m4: New file.
11517         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
11518         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
11519         * modules/select (Files): Add m4/select.m4.
11520         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
11521         * modules/nanosleep (Depends-on): Add select.
11522         * modules/poll (Depends-on): Likewise.
11523         * doc/posix-functions/select.texi: Mention the Interix bug.
11524         Reported by Markus Duft <mduft@gentoo.org>.
11525
11526         * lib/select.c: Renamed from lib/winsock-select.c.
11527         * modules/select (Files): Add lib/select.c, remove
11528         lib/winsock-select.c.
11529         (configure.ac): Update.
11530
11531 2009-03-12  Jim Meyering  <meyering@redhat.com>
11532
11533         avoid gcc warnings about unused macro definitions
11534         * lib/readtokens.c (STREQ): Remove unused definition.
11535         * lib/xmalloc.c (SIZE_MAX): Likewise.
11536         * lib/openat-die.c (N_): Likewise.
11537         * lib/mountlist.c (SIZE_MAX): Remove definition.
11538         Instead, include <stdint.h>.
11539         * lib/readutmp.c: Likewise.
11540         * modules/readutmp (Depends-on): Add stdint.
11541         * modules/mountlist (Depends-on): Add stdint.
11542         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
11543
11544 2009-03-10  Bruno Haible  <bruno@clisp.org>
11545
11546         Tests for module 'mbmemcasecoll'.
11547         * modules/mbmemcasecoll-tests: New file.
11548         * tests/test-mbmemcasecoll1.sh: New file.
11549         * tests/test-mbmemcasecoll2.sh: New file.
11550         * tests/test-mbmemcasecoll3.sh: New file.
11551         * tests/test-mbmemcasecoll.c: New file.
11552
11553         New module 'mbmemcasecoll'.
11554         * lib/mbmemcasecoll.h: New file.
11555         * lib/mbmemcasecoll.c: New file.
11556         * modules/mbmemcasecoll: New file.
11557
11558         * tests/test-mbmemcasecmp.h: New file, extracted from
11559         tests/test-mbmemcasecmp.c.
11560         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
11561         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
11562         (main): Update.
11563         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
11564
11565 2009-03-09  Bruno Haible  <bruno@clisp.org>
11566
11567         Tests for module 'mbmemcasecmp'.
11568         * modules/mbmemcasecmp-tests: New file.
11569         * tests/test-mbmemcasecmp1.sh: New file.
11570         * tests/test-mbmemcasecmp2.sh: New file.
11571         * tests/test-mbmemcasecmp3.sh: New file.
11572         * tests/test-mbmemcasecmp.c: New file.
11573
11574         New module 'mbmemcasecmp'.
11575         * lib/mbmemcasecmp.h: New file.
11576         * lib/mbmemcasecmp.c: New file.
11577         * modules/mbmemcasecmp: New file.
11578
11579 2009-03-09  Bruno Haible  <bruno@clisp.org>
11580
11581         Tests for module 'unicase/ulc-casecoll'.
11582         * modules/unicase/ulc-casecoll-tests: New file.
11583         * tests/unicase/test-ulc-casecoll1.sh: New file.
11584         * tests/unicase/test-ulc-casecoll2.sh: New file.
11585         * tests/unicase/test-ulc-casecoll.c: New file.
11586
11587         New module 'unicase/ulc-casecoll'.
11588         * lib/unicase.h (ulc_casecoll): New declaration.
11589         * lib/unicase/ulc-casecoll.c: New file.
11590         * modules/unicase/ulc-casecoll: New file.
11591
11592         New module 'unicase/ulc-casexfrm'.
11593         * lib/unicase.h (ulc_casexfrm): New declaration.
11594         * lib/unicase/ulc-casexfrm.c: New file.
11595         * modules/unicase/ulc-casexfrm: New file.
11596
11597 2009-03-09  Bruno Haible  <bruno@clisp.org>
11598
11599         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
11600         invocations.
11601
11602         * m4/mbscasecmp.m4: Remove file.
11603         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
11604         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
11605
11606         * m4/mbscasestr.m4: Remove file.
11607         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
11608         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
11609
11610         * m4/mbschr.m4: Remove file.
11611         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
11612         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
11613
11614         * m4/mbscspn.m4: Remove file.
11615         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
11616         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
11617
11618         * m4/mbslen.m4: Remove file.
11619         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
11620         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
11621
11622         * m4/mbsncasecmp.m4: Remove file.
11623         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
11624         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
11625
11626         * m4/mbsnlen.m4: Remove file.
11627         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
11628         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
11629
11630         * m4/mbspbrk.m4: Remove file.
11631         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
11632         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
11633
11634         * m4/mbspcasecmp.m4: Remove file.
11635         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
11636         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
11637
11638         * m4/mbsrchr.m4: Remove file.
11639         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
11640         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
11641
11642         * m4/mbssep.m4: Remove file.
11643         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
11644         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
11645
11646         * m4/mbsspn.m4: Remove file.
11647         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
11648         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
11649
11650         * m4/mbsstr.m4: Remove file.
11651         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
11652         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
11653
11654         * m4/mbstok_r.m4: Remove file.
11655         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
11656         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
11657
11658         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
11659
11660         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
11661         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
11662
11663         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
11664
11665 2009-03-08  Bruno Haible  <bruno@clisp.org>
11666
11667         Tests for module 'unicase/ulc-casecmp'.
11668         * modules/unicase/ulc-casecmp-tests: New file.
11669         * tests/unicase/test-ulc-casecmp1.sh: New file.
11670         * tests/unicase/test-ulc-casecmp2.sh: New file.
11671         * tests/unicase/test-ulc-casecmp.c: New file.
11672
11673         New module 'unicase/ulc-casecmp'.
11674         * lib/unicase.h (ulc_casecmp): New declaration.
11675         * lib/unicase/ulc-casecmp.c: New file.
11676         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
11677         'const SRC_UNIT *'.
11678         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
11679         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
11680         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
11681         * modules/unicase/ulc-casecmp: New file.
11682
11683         Tests for module 'unicase/u32-is-cased'.
11684         * modules/unicase/u32-is-cased-tests: New file.
11685         * tests/unicase/test-u32-is-cased.c: New file.
11686
11687         Tests for module 'unicase/u16-is-cased'.
11688         * modules/unicase/u16-is-cased-tests: New file.
11689         * tests/unicase/test-u16-is-cased.c: New file.
11690
11691         Tests for module 'unicase/u8-is-cased'.
11692         * modules/unicase/u8-is-cased-tests: New file.
11693         * tests/unicase/test-u8-is-cased.c: New file.
11694         * tests/unicase/test-is-cased.h: New file.
11695
11696         New module 'unicase/u32-is-cased'.
11697         * lib/unicase/u32-is-cased.c: New file.
11698         * modules/unicase/u32-is-cased: New file.
11699
11700         New module 'unicase/u16-is-cased'.
11701         * lib/unicase/u16-is-cased.c: New file.
11702         * modules/unicase/u16-is-cased: New file.
11703
11704         New module 'unicase/u8-is-cased'.
11705         * lib/unicase/u8-is-cased.c: New file.
11706         * lib/unicase/u-is-cased.h: New file.
11707         * modules/unicase/u8-is-cased: New file.
11708
11709         Tests for module 'unicase/u32-is-casefolded'.
11710         * modules/unicase/u32-is-casefolded-tests: New file.
11711         * tests/unicase/test-u32-is-casefolded.c: New file.
11712
11713         Tests for module 'unicase/u16-is-casefolded'.
11714         * modules/unicase/u16-is-casefolded-tests: New file.
11715         * tests/unicase/test-u16-is-casefolded.c: New file.
11716
11717         Tests for module 'unicase/u8-is-casefolded'.
11718         * modules/unicase/u8-is-casefolded-tests: New file.
11719         * tests/unicase/test-u8-is-casefolded.c: New file.
11720         * tests/unicase/test-is-casefolded.h: New file.
11721
11722         New module 'unicase/u32-is-casefolded'.
11723         * lib/unicase/u32-is-casefolded.c: New file.
11724         * modules/unicase/u32-is-casefolded: New file.
11725
11726         New module 'unicase/u16-is-casefolded'.
11727         * lib/unicase/u16-is-casefolded.c: New file.
11728         * modules/unicase/u16-is-casefolded: New file.
11729
11730         New module 'unicase/u8-is-casefolded'.
11731         * lib/unicase/u8-is-casefolded.c: New file.
11732         * modules/unicase/u8-is-casefolded: New file.
11733
11734         Tests for module 'unicase/u32-is-titlecase'.
11735         * modules/unicase/u32-is-titlecase-tests: New file.
11736         * tests/unicase/test-u32-is-titlecase.c: New file.
11737
11738         Tests for module 'unicase/u16-is-titlecase'.
11739         * modules/unicase/u16-is-titlecase-tests: New file.
11740         * tests/unicase/test-u16-is-titlecase.c: New file.
11741
11742         Tests for module 'unicase/u8-is-titlecase'.
11743         * modules/unicase/u8-is-titlecase-tests: New file.
11744         * tests/unicase/test-u8-is-titlecase.c: New file.
11745         * tests/unicase/test-is-titlecase.h: New file.
11746
11747         New module 'unicase/u32-is-titlecase'.
11748         * lib/unicase/u32-is-titlecase.c: New file.
11749         * modules/unicase/u32-is-titlecase: New file.
11750
11751         New module 'unicase/u16-is-titlecase'.
11752         * lib/unicase/u16-is-titlecase.c: New file.
11753         * modules/unicase/u16-is-titlecase: New file.
11754
11755         New module 'unicase/u8-is-titlecase'.
11756         * lib/unicase/u8-is-titlecase.c: New file.
11757         * modules/unicase/u8-is-titlecase: New file.
11758
11759         Tests for module 'unicase/u32-is-lowercase'.
11760         * modules/unicase/u32-is-lowercase-tests: New file.
11761         * tests/unicase/test-u32-is-lowercase.c: New file.
11762
11763         Tests for module 'unicase/u16-is-lowercase'.
11764         * modules/unicase/u16-is-lowercase-tests: New file.
11765         * tests/unicase/test-u16-is-lowercase.c: New file.
11766
11767         Tests for module 'unicase/u8-is-lowercase'.
11768         * modules/unicase/u8-is-lowercase-tests: New file.
11769         * tests/unicase/test-u8-is-lowercase.c: New file.
11770         * tests/unicase/test-is-lowercase.h: New file.
11771
11772         New module 'unicase/u32-is-lowercase'.
11773         * lib/unicase/u32-is-lowercase.c: New file.
11774         * modules/unicase/u32-is-lowercase: New file.
11775
11776         New module 'unicase/u16-is-lowercase'.
11777         * lib/unicase/u16-is-lowercase.c: New file.
11778         * modules/unicase/u16-is-lowercase: New file.
11779
11780         New module 'unicase/u8-is-lowercase'.
11781         * lib/unicase/u8-is-lowercase.c: New file.
11782         * modules/unicase/u8-is-lowercase: New file.
11783
11784         Tests for module 'unicase/u32-is-uppercase'.
11785         * modules/unicase/u32-is-uppercase-tests: New file.
11786         * tests/unicase/test-u32-is-uppercase.c: New file.
11787
11788         Tests for module 'unicase/u16-is-uppercase'.
11789         * modules/unicase/u16-is-uppercase-tests: New file.
11790         * tests/unicase/test-u16-is-uppercase.c: New file.
11791
11792         Tests for module 'unicase/u8-is-uppercase'.
11793         * modules/unicase/u8-is-uppercase-tests: New file.
11794         * tests/unicase/test-u8-is-uppercase.c: New file.
11795         * tests/unicase/test-is-uppercase.h: New file.
11796
11797         New module 'unicase/u32-is-uppercase'.
11798         * lib/unicase/u32-is-uppercase.c: New file.
11799         * modules/unicase/u32-is-uppercase: New file.
11800
11801         New module 'unicase/u16-is-uppercase'.
11802         * lib/unicase/u16-is-uppercase.c: New file.
11803         * modules/unicase/u16-is-uppercase: New file.
11804
11805         New module 'unicase/u8-is-uppercase'.
11806         * lib/unicase/u8-is-uppercase.c: New file.
11807         * modules/unicase/u8-is-uppercase: New file.
11808
11809         New module 'unicase/u32-is-invariant'.
11810         * lib/unicase/u32-is-invariant.c: New file.
11811         * modules/unicase/u32-is-invariant: New file.
11812
11813         New module 'unicase/u16-is-invariant'.
11814         * lib/unicase/u16-is-invariant.c: New file.
11815         * modules/unicase/u16-is-invariant: New file.
11816
11817         New module 'unicase/u8-is-invariant'.
11818         * lib/unicase/u8-is-invariant.c: New file.
11819         * lib/unicase/invariant.h: New file.
11820         * lib/unicase/u-is-invariant.h: New file.
11821         * modules/unicase/u8-is-invariant: New file.
11822
11823         Tests for module 'unicase/u32-casecoll'.
11824         * modules/unicase/u32-casecoll-tests: New file.
11825         * tests/unicase/test-u32-casecoll.c: New file.
11826
11827         Tests for module 'unicase/u16-casecoll'.
11828         * modules/unicase/u16-casecoll-tests: New file.
11829         * tests/unicase/test-u16-casecoll.c: New file.
11830
11831         Tests for module 'unicase/u8-casecoll'.
11832         * modules/unicase/u8-casecoll-tests: New file.
11833         * tests/unicase/test-u8-casecoll.c: New file.
11834
11835         New module 'unicase/u32-casecoll'.
11836         * lib/unicase/u32-casecoll.c: New file.
11837         * modules/unicase/u32-casecoll: New file.
11838
11839         New module 'unicase/u16-casecoll'.
11840         * lib/unicase/u16-casecoll.c: New file.
11841         * modules/unicase/u16-casecoll: New file.
11842
11843         New module 'unicase/u8-casecoll'.
11844         * lib/unicase/u8-casecoll.c: New file.
11845         * lib/unicase/u-casecoll.h: New file.
11846         * modules/unicase/u8-casecoll: New file.
11847
11848         New module 'unicase/u32-casexfrm'.
11849         * lib/unicase/u32-casexfrm.c: New file.
11850         * modules/unicase/u32-casexfrm: New file.
11851
11852         New module 'unicase/u16-casexfrm'.
11853         * lib/unicase/u16-casexfrm.c: New file.
11854         * modules/unicase/u16-casexfrm: New file.
11855
11856         New module 'unicase/u8-casexfrm'.
11857         * lib/unicase/u8-casexfrm.c: New file.
11858         * lib/unicase/u-casexfrm.h: New file.
11859         * modules/unicase/u8-casexfrm: New file.
11860
11861         Tests for module 'unicase/u32-casecmp'.
11862         * modules/unicase/u32-casecmp-tests: New file.
11863         * tests/unicase/test-u32-casecmp.c: New file.
11864
11865         Tests for module 'unicase/u16-casecmp'.
11866         * modules/unicase/u16-casecmp-tests: New file.
11867         * tests/unicase/test-u16-casecmp.c: New file.
11868
11869         Tests for module 'unicase/u8-casecmp'.
11870         * modules/unicase/u8-casecmp-tests: New file.
11871         * tests/unicase/test-u8-casecmp.c: New file.
11872         * tests/unicase/test-casecmp.h: New file.
11873
11874         New module 'unicase/u32-casecmp'.
11875         * lib/unicase/u32-casecmp.c: New file.
11876         * modules/unicase/u32-casecmp: New file.
11877
11878         New module 'unicase/u16-casecmp'.
11879         * lib/unicase/u16-casecmp.c: New file.
11880         * modules/unicase/u16-casecmp: New file.
11881
11882         New module 'unicase/u8-casecmp'.
11883         * lib/unicase/u8-casecmp.c: New file.
11884         * lib/unicase/u-casecmp.h: New file.
11885         * modules/unicase/u8-casecmp: New file.
11886
11887         Tests for module 'unicase/u32-casefold'.
11888         * modules/unicase/u32-casefold-tests: New file.
11889         * tests/unicase/test-u32-casefold.c: New file.
11890
11891         Tests for module 'unicase/u16-casefold'.
11892         * modules/unicase/u16-casefold-tests: New file.
11893         * tests/unicase/test-u16-casefold.c: New file.
11894
11895         Tests for module 'unicase/u8-casefold'.
11896         * modules/unicase/u8-casefold-tests: New file.
11897         * tests/unicase/test-u8-casefold.c: New file.
11898
11899         New module 'unicase/u32-casefold'.
11900         * lib/unicase/u32-casefold.c: New file.
11901         * modules/unicase/u32-casefold: New file.
11902
11903         New module 'unicase/u16-casefold'.
11904         * lib/unicase/u16-casefold.c: New file.
11905         * modules/unicase/u16-casefold: New file.
11906
11907         New module 'unicase/u8-casefold'.
11908         * lib/unicase/u8-casefold.c: New file.
11909         * lib/unicase/u-casefold.h: New file.
11910         * modules/unicase/u8-casefold: New file.
11911
11912         New module 'unicase/tocasefold'.
11913         * lib/unicase/casefold.h: New file.
11914         * lib/unicase/tocasefold.c: New file.
11915         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
11916         * modules/unicase/tocasefold: New file.
11917
11918         Tests for module 'unicase/u32-totitle'.
11919         * modules/unicase/u32-totitle-tests: New file.
11920         * tests/unicase/test-u32-totitle.c: New file.
11921
11922         Tests for module 'unicase/u16-totitle'.
11923         * modules/unicase/u16-totitle-tests: New file.
11924         * tests/unicase/test-u16-totitle.c: New file.
11925
11926         Tests for module 'unicase/u8-totitle'.
11927         * modules/unicase/u8-totitle-tests: New file.
11928         * tests/unicase/test-u8-totitle.c: New file.
11929
11930         New module 'unicase/u32-totitle'.
11931         * lib/unicase/u32-totitle.c: New file.
11932         * modules/unicase/u32-totitle: New file.
11933
11934         New module 'unicase/u16-totitle'.
11935         * lib/unicase/u16-totitle.c: New file.
11936         * modules/unicase/u16-totitle: New file.
11937
11938         New module 'unicase/u8-totitle'.
11939         * lib/unicase/u8-totitle.c: New file.
11940         * lib/unicase/u-totitle.h: New file.
11941         * modules/unicase/u8-totitle: New file.
11942
11943         Tests for module 'unicase/u32-tolower'.
11944         * modules/unicase/u32-tolower-tests: New file.
11945         * tests/unicase/test-u32-tolower.c: New file.
11946
11947         Tests for module 'unicase/u16-tolower'.
11948         * modules/unicase/u16-tolower-tests: New file.
11949         * tests/unicase/test-u16-tolower.c: New file.
11950
11951         Tests for module 'unicase/u8-tolower'.
11952         * modules/unicase/u8-tolower-tests: New file.
11953         * tests/unicase/test-u8-tolower.c: New file.
11954
11955         New module 'unicase/u32-tolower'.
11956         * lib/unicase/u32-tolower.c: New file.
11957         * modules/unicase/u32-tolower: New file.
11958
11959         New module 'unicase/u16-tolower'.
11960         * lib/unicase/u16-tolower.c: New file.
11961         * modules/unicase/u16-tolower: New file.
11962
11963         New module 'unicase/u8-tolower'.
11964         * lib/unicase/u8-tolower.c: New file.
11965         * modules/unicase/u8-tolower: New file.
11966
11967         Tests for module 'unicase/u32-toupper'.
11968         * modules/unicase/u32-toupper-tests: New file.
11969         * tests/unicase/test-u32-toupper.c: New file.
11970
11971         Tests for module 'unicase/u16-toupper'.
11972         * modules/unicase/u16-toupper-tests: New file.
11973         * tests/unicase/test-u16-toupper.c: New file.
11974
11975         Tests for module 'unicase/u8-toupper'.
11976         * modules/unicase/u8-toupper-tests: New file.
11977         * tests/unicase/test-u8-toupper.c: New file.
11978
11979         New module 'unicase/u32-toupper'.
11980         * lib/unicase/u32-toupper.c: New file.
11981         * modules/unicase/u32-toupper: New file.
11982
11983         New module 'unicase/u16-toupper'.
11984         * lib/unicase/u16-toupper.c: New file.
11985         * modules/unicase/u16-toupper: New file.
11986
11987         New module 'unicase/u8-toupper'.
11988         * lib/unicase/u8-toupper.c: New file.
11989         * modules/unicase/u8-toupper: New file.
11990
11991         New module 'unicase/u32-casemap'.
11992         * lib/unicase/u32-casemap.c: New file.
11993         * modules/unicase/u32-casemap: New file.
11994
11995         New module 'unicase/u16-casemap'.
11996         * lib/unicase/u16-casemap.c: New file.
11997         * modules/unicase/u16-casemap: New file.
11998
11999         New module 'unicase/u8-casemap'.
12000         * lib/unicase/unicasemap.h: New file.
12001         * lib/unicase/u8-casemap.c: New file.
12002         * lib/unicase/u-casemap.h: New file.
12003         * modules/unicase/u8-casemap: New file.
12004
12005         New module 'unicase/special-casing'.
12006         * lib/unicase/special-casing.h: New file.
12007         * lib/unicase/special-casing.c: New file.
12008         * lib/unicase/special-casing-table.gperf: New file, generated by
12009         gen-uni-tables.c.
12010         * modules/unicase/special-casing: New file.
12011
12012         Tests for module 'unicase/locale-language'.
12013         * modules/unicase/locale-language-tests: New file.
12014         * tests/unicase/test-locale-language.sh: New file.
12015         * tests/unicase/test-locale-language.c: New file.
12016
12017         New module 'unicase/locale-language'.
12018         * lib/unicase/locale-language.c: New file.
12019         * lib/unicase/locale-languages.gperf: New file.
12020         * modules/unicase/locale-language: New file.
12021
12022         Generate more tables for case conversion and case folding.
12023         * lib/gen-uni-tables.c (SCC_*): New enum items.
12024         (struct special_casing_rule): New type.
12025         (casing_rules, num_casing_rules, allocated_casing_rules): New
12026         variables.
12027         (add_casing_rule, fill_casing_rules): New functions.
12028         (struct casefold_rule): New type.
12029         (casefolding_rules, num_casefolding_rules,
12030         allocated_casefolding_rules): New variables.
12031         (fill_casefolding_rules): New function.
12032         (unicode_casefold): New variable.
12033         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
12034         sort_casing_rules, output_casing_rules): New functions.
12035         (main): Accept to more arguments: SpecialCasing.txt and
12036         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
12037         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
12038         Output mapping for casefolding.
12039
12040         * lib/unicase.h: Include stdbool.h, uninorm.h.
12041         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
12042         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
12043         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
12044         arguments.
12045         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
12046         resultp arguments.
12047         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
12048         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
12049         resultp arguments.
12050         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
12051         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
12052         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
12053         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
12054         declarations.
12055         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
12056
12057 2009-03-08  Bruno Haible  <bruno@clisp.org>
12058
12059         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
12060         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
12061         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
12062         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
12063
12064 2009-03-07  Bruno Haible  <bruno@clisp.org>
12065
12066         Adjust u*_normcmp, u*_normcoll API.
12067         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
12068         u16_normcoll, u32_normcoll): Change failure conventions.
12069         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
12070         errno and return -1.
12071         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
12072
12073 2009-03-07  Bruno Haible  <bruno@clisp.org>
12074
12075         Tests for module 'uninorm/u32-normcoll'.
12076         * modules/uninorm/u32-normcoll-tests: New file.
12077         * tests/uninorm/test-u32-normcoll.c: New file.
12078
12079         Tests for module 'uninorm/u16-normcoll'.
12080         * modules/uninorm/u16-normcoll-tests: New file.
12081         * tests/uninorm/test-u16-normcoll.c: New file.
12082
12083         Tests for module 'uninorm/u8-normcoll'.
12084         * modules/uninorm/u8-normcoll-tests: New file.
12085         * tests/uninorm/test-u8-normcoll.c: New file.
12086
12087 2009-03-07  Bruno Haible  <bruno@clisp.org>
12088
12089         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
12090         tests/uninorm/test-u32-normcmp.c.
12091         * tests/uninorm/test-u32-normcmp.c: Include it.
12092         (test_nonascii): New function, extracted from main. Add some more
12093         tests.
12094         (main): Invoke test_ascii and test_nonascii.
12095         * modules/uninorm/u32-normcmp-tests (Files): Add
12096         tests/uninorm/test-u32-normcmp.h.
12097         (Depends-on): Remove uninorm/u32-normcmp.
12098
12099         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
12100         tests/uninorm/test-u16-normcmp.c.
12101         * tests/uninorm/test-u16-normcmp.c: Include it.
12102         (test_nonascii): New function, extracted from main. Add some more
12103         tests.
12104         (main): Invoke test_ascii and test_nonascii.
12105         * modules/uninorm/u16-normcmp-tests (Files): Add
12106         tests/uninorm/test-u16-normcmp.h.
12107         (Depends-on): Remove uninorm/u16-normcmp.
12108
12109         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
12110         tests/uninorm/test-u8-normcmp.c.
12111         * tests/uninorm/test-u8-normcmp.c: Include it.
12112         (test_nonascii): New function, extracted from main. Add some more
12113         tests.
12114         (main): Invoke test_ascii and test_nonascii.
12115         * modules/uninorm/u8-normcmp-tests (Files): Add
12116         tests/uninorm/test-u8-normcmp.h.
12117         (Depends-on): Remove uninorm/u8-normcmp.
12118
12119 2009-03-07  Bruno Haible  <bruno@clisp.org>
12120
12121         New module 'uninorm/u32-normcoll'.
12122         * lib/uninorm/u32-normcoll.c: New file.
12123         * modules/uninorm/u32-normcoll: New file.
12124
12125         New module 'uninorm/u16-normcoll'.
12126         * lib/uninorm/u16-normcoll.c: New file.
12127         * modules/uninorm/u16-normcoll: New file.
12128
12129         New module 'uninorm/u8-normcoll'.
12130         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
12131         declarations.
12132         * lib/uninorm/u8-normcoll.c: New file.
12133         * lib/uninorm/u-normcoll.h: New file.
12134         * modules/uninorm/u8-normcoll: New file.
12135
12136         New module 'uninorm/u32-normxfrm'.
12137         * lib/uninorm/u32-normxfrm.c: New file.
12138         * modules/uninorm/u32-normxfrm: New file.
12139
12140         New module 'uninorm/u16-normxfrm'.
12141         * lib/uninorm/u16-normxfrm.c: New file.
12142         * modules/uninorm/u16-normxfrm: New file.
12143
12144         New module 'uninorm/u8-normxfrm'.
12145         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
12146         declarations.
12147         * lib/uninorm/u8-normxfrm.c: New file.
12148         * lib/uninorm/u-normxfrm.h: New file.
12149         * modules/uninorm/u8-normxfrm: New file.
12150
12151 2009-03-07  Bruno Haible  <bruno@clisp.org>
12152
12153         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
12154         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
12155         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
12156
12157 2009-03-07  Bruno Haible  <bruno@clisp.org>
12158
12159         New module 'memxfrm'.
12160         * lib/memxfrm.h: New file.
12161         * lib/memxfrm.c: New file.
12162         * modules/memxfrm: New file.
12163
12164 2009-03-07  Bruno Haible  <bruno@clisp.org>
12165
12166         New module 'memcmp2'.
12167         * lib/memcmp2.h: New file.
12168         * lib/memcmp2.c: New file.
12169         * modules/memcmp2: New file.
12170
12171 2009-03-07  Bruno Haible  <bruno@clisp.org>
12172
12173         Tests for module 'uninorm/decomposing-form'.
12174         * modules/uninorm/decomposing-form-tests: New file.
12175         * tests/uninorm/test-decomposing-form.c: New file.
12176
12177         New module 'uninorm/decomposing-form'.
12178         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
12179         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
12180         Add 'decomposing_variant' field.
12181         * lib/uninorm/decomposing-form.c: New file.
12182         * lib/uninorm/nfc.c (uninorm_nfc): Update.
12183         * lib/uninorm/nfd.c (uninorm_nfd): Update.
12184         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
12185         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
12186         * modules/uninorm/decomposing-form: New file.
12187         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
12188         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
12189
12190 2009-03-07  Bruno Haible  <bruno@clisp.org>
12191
12192         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
12193         strings.
12194
12195 2009-03-06  Bruno Haible  <bruno@clisp.org>
12196
12197         Tests for module 'uninorm/u32-normcmp'.
12198         * tests/uninorm/test-u32-normcmp.c: New file.
12199         * modules/uninorm/u32-normcmp-tests: New file.
12200
12201         Tests for module 'uninorm/u16-normcmp'.
12202         * tests/uninorm/test-u16-normcmp.c: New file.
12203         * modules/uninorm/u16-normcmp-tests: New file.
12204
12205         Tests for module 'uninorm/u8-normcmp'.
12206         * tests/uninorm/test-u8-normcmp.c: New file.
12207         * modules/uninorm/u8-normcmp-tests: New file.
12208
12209         New module 'uninorm/u32-normcmp'.
12210         * lib/uninorm/u32-normcmp.c: New file.
12211         * modules/uninorm/u32-normcmp: New file.
12212
12213         New module 'uninorm/u16-normcmp'.
12214         * lib/uninorm/u16-normcmp.c: New file.
12215         * modules/uninorm/u16-normcmp: New file.
12216
12217         New module 'uninorm/u8-normcmp'.
12218         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
12219         declarations.
12220         * lib/uninorm/u8-normcmp.c: New file.
12221         * lib/uninorm/u-normcmp.h: New file.
12222         * modules/uninorm/u8-normcmp: New file.
12223
12224 2009-03-06  Bruno Haible  <bruno@clisp.org>
12225
12226         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
12227         Reported by Eric Blake.
12228
12229 2009-03-06  Eric Blake  <ebb9@byu.net>
12230             Bruno Haible  <bruno@clisp.org>
12231
12232         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
12233         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
12234         condition.
12235         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
12236         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
12237         condition.
12238         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
12239
12240 2009-03-06  Eric Blake  <ebb9@byu.net>
12241
12242         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
12243         to avoid compiler warnings.
12244         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
12245
12246 2009-03-05  Bruno Haible  <bruno@clisp.org>
12247
12248         * tests/test-ftell.c (main): Disable test beyond end of file on
12249         FreeMiNT.
12250         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
12251
12252 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
12253
12254         * lib/filevercmp.c: Move hidden files up in ordering.
12255         * tests/test-filevercmp.c: Add tests for hidden files.
12256
12257 2009-03-04  Bruno Haible  <bruno@clisp.org>
12258
12259         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
12260         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
12261         AM_CFLAGS.
12262         Reported by Simon Josefsson.
12263
12264 2009-03-03  Bruno Haible  <bruno@clisp.org>
12265
12266         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
12267         Reported by Simon Josefsson.
12268
12269         * doc/ld-version-script.texi: Update node reference.
12270
12271 2009-03-03  Bruno Haible  <bruno@clisp.org>
12272
12273         * modules/visibility (License): Change to 'unlimited'.
12274         Suggested by Simon Josefsson.
12275
12276 2009-03-03  Jim Meyering  <meyering@redhat.com>
12277
12278         unlinkdir: cannot_unlink_dir may modify process state
12279         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
12280         it's neither thread-safe nor appropriate for use in a library.
12281
12282 2009-03-03  Eric Blake  <ebb9@byu.net>
12283
12284         test-closein: silence test under Darwin
12285         * tests/test-closein.sh: Ignore stderr from cat, since we don't
12286         care if it dies from EPIPE or EBADF.
12287
12288 2009-03-03  Bruno Haible  <bruno@clisp.org>
12289
12290         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
12291         earlier.
12292         * doc/visibility.texi: Fix @node and @section.
12293
12294 2009-03-03  Simon Josefsson  <simon@josefsson.org>
12295
12296         * doc/gnulib.texi: Link to sections for ld version script and
12297         visibility.
12298         * doc/visibility.texi: Add @node and @section.
12299         * modules/ld-version-script: New module.
12300         * m4/ld-version-script.m4: New file.
12301         * doc/ld-version-script.texi: New file.
12302
12303 2009-03-02  David Lutterkort  <lutter@redhat.com>
12304
12305         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
12306         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12307
12308 2009-03-02  Bruno Haible  <bruno@clisp.org>
12309
12310         * doc/visibility.texi: Mention libtool's -export-symbols option.
12311
12312 2009-03-02  Jim Meyering  <meyering@redhat.com>
12313
12314         announce-gen: new option: --no-print-checksums
12315         * build-aux/announce-gen (usage): Describe it.
12316         (print_checksums): Print a newline here, not in the [*] footnote.
12317         (main): Honor it.
12318
12319 2009-03-01  Bruno Haible  <bruno@clisp.org>
12320
12321         Use socklen_t in the native Windows replacements prototypes.
12322         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
12323         instead of 'int'.
12324         * lib/getsockopt.c (rpl_getsockopt): Likewise.
12325         * lib/setsockopt.c (rpl_setsockopt): Likewise.
12326         * modules/getsockopt (Depends-on): Add socklen.
12327         * modules/setsockopt (Depends-on): Add socklen.
12328
12329 2009-03-01  Bruno Haible  <bruno@clisp.org>
12330
12331         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
12332         least 4.2.
12333
12334 2009-03-01  Eric Blake  <ebb9@byu.net>
12335             Bruno Haible  <bruno@clisp.org>
12336
12337         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
12338         error messages.
12339         * lib/wait-process.c (wait_subprocess): Omit error message about
12340         deadly signal sent to the child of termsigp != NULL.
12341
12342 2009-03-01  Eric Blake  <ebb9@byu.net>
12343
12344         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
12345
12346 2009-03-01  Bruno Haible  <bruno@clisp.org>
12347
12348         Avoid a gcc warning.
12349         * tests/test-sched.c (b): Make global.
12350         Reported by Eric Blake.
12351
12352 2009-01-19  Martin Lambers  <marlam@marlam.de>
12353
12354         Provide POSIX semantics for socket timeout options on W32.
12355         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
12356         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
12357         * modules/setsockopt: Depend on sys_time module for struct timeval.
12358         * modules/getsockopt: Depend on sys_time module for struct timeval.
12359
12360 2009-03-01  Simon Josefsson  <simon@josefsson.org>
12361
12362         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
12363         __USE_GNU, for consistency with netdb.in.h.
12364         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
12365
12366 2009-03-01  Bruno Haible  <bruno@clisp.org>
12367
12368         More support for FreeMiNT.
12369         * lib/fseeko.c (rpl_fseeko): Complete last commit.
12370         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
12371
12372 2009-03-01  Bruno Haible  <bruno@clisp.org>
12373
12374         More support for FreeMiNT.
12375         * lib/fpurge.c (fpurge): Correct last commit.
12376         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
12377
12378 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12379
12380         Fix unportable awk script in vc-list-files.
12381         * build-aux/vc-list-files: In the replacement awk script, use
12382         substr with a second argument of 1, not zero.
12383         Report by Simon Josefsson.
12384
12385 2009-02-28  Bruno Haible  <bruno@clisp.org>
12386
12387         More support for FreeMiNT.
12388         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
12389         to FreeMiNT today.
12390         * lib/fwriting.c (fwriting): Likewise.
12391         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
12392
12393 2009-02-28  Bruno Haible  <bruno@clisp.org>
12394
12395         * tests/test-freadseek.c (main): Disable test beyond end of file on
12396         FreeMiNT.
12397         * tests/test-ftello.c (main): Likewise.
12398         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
12399
12400 2009-02-28  Bruno Haible  <bruno@clisp.org>
12401
12402         Add tentative support for FreeMiNT.
12403         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
12404         * lib/fpurge.c (fpurge): Likewise.
12405         * lib/freadable.c (freadable): Likewise.
12406         * lib/freading.c (freading): Likewise.
12407         * lib/freadptr.c (freadptr): Likewise.
12408         * lib/freadseek.c (freadptrinc): Likewise.
12409         * lib/fseeko.c (rpl_fseeko): Likewise.
12410         * lib/fseterr.c (fseterr): Likewise.
12411         * lib/fwritable.c (fwritable): Likewise.
12412         * lib/fwriting.c (fwriting): Likewise.
12413         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
12414         Hourihane.
12415         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
12416
12417 2009-02-28  Bruno Haible  <bruno@clisp.org>
12418
12419         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
12420         SIGCHLD.
12421         Reported by Jim Meyering.
12422
12423 2009-02-28  Bruno Haible  <bruno@clisp.org>
12424
12425         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
12426         Mention the results of these tests on various platforms.
12427         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
12428         order.
12429         * doc/posix-functions/printf.texi: Likewise.
12430         * doc/posix-functions/snprintf.texi: Likewise.
12431         * doc/posix-functions/sprintf.texi: Likewise.
12432         * doc/posix-functions/vfprintf.texi: Likewise.
12433         * doc/posix-functions/vprintf.texi: Likewise.
12434         * doc/posix-functions/vsnprintf.texi: Likewise.
12435         * doc/posix-functions/vsprintf.texi: Likewise.
12436         * doc/glibc-functions/obstack_printf.texi: Likewise.
12437         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12438
12439 2009-02-28  Bruno Haible  <bruno@clisp.org>
12440
12441         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
12442         Reported by Loïc Minier <lool@dooz.org>.
12443
12444 2009-02-27  Bruno Haible  <bruno@clisp.org>
12445
12446         * gnulib-tool (func_import): Make the sed expression used to create the
12447         sed script for updating the .gitignore file POSIX compliant.
12448         Reported by Eric Blake.
12449
12450 2009-02-27  Bruno Haible  <bruno@clisp.org>
12451
12452         * gnulib-tool (sed): Don't alias as "sed --posix".
12453         Reported by Eric Blake.
12454
12455 2009-02-27  Bruno Haible  <bruno@clisp.org>
12456
12457         Avoid test link errors.
12458         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
12459         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
12460         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
12461         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
12462         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12463
12464 2009-02-27  Bruno Haible  <bruno@clisp.org>
12465
12466         Avoid spurious "(cached)" in configure output.
12467         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
12468         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
12469         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
12470         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
12471         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
12472         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
12473         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
12474         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
12475         Reported by Eric Blake.
12476
12477 2009-02-27  Eric Blake  <ebb9@byu.net>
12478
12479         printf: fix regression in previous patch
12480         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
12481
12482 2009-02-27  Bruno Haible  <bruno@clisp.org>
12483
12484         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
12485         value.
12486         * lib/stdint.in.h: Likewise.
12487         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
12488
12489 2009-02-27  Eric Blake  <ebb9@byu.net>
12490
12491         doc: mention more functions added in cygwin 1.7.0
12492         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
12493         addition.
12494         * doc/posix-functions/open_wmemstream.texi: Likewise.
12495         * doc/posix-functions/wcsnlen.texi: Likewise.
12496         * doc/posix-functions/wcsnrtombs.texi: Likewise.
12497         * doc/posix-functions/wcstod.texi: Likewise.
12498         * doc/posix-functions/wcstof.texi: Likewise.
12499         * doc/posix-functions/wcstoimax.texi: Likewise.
12500         * doc/posix-functions/wcstok.texi: Likewise.
12501         * doc/posix-functions/wcstoumax.texi: Likewise.
12502
12503         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
12504         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
12505         * doc/posix-functions/fprintf.texi: Update.
12506         * doc/posix-functions/printf.texi: Update.
12507         * doc/posix-functions/snprintf.texi: Update.
12508         * doc/posix-functions/sprintf.texi: Update.
12509         * doc/posix-functions/vfprintf.texi: Update.
12510         * doc/posix-functions/vprintf.texi: Update.
12511         * doc/posix-functions/vsnprintf.texi: Update.
12512         * doc/posix-functions/vsprintf.texi: Update.
12513         * doc/glibc-functions/obstack_printf.texi: Update.
12514         * doc/glibc-functions/obstack_vprintf.texi: Update.
12515
12516 2009-02-26  Eric Blake  <ebb9@byu.net>
12517
12518         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
12519         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
12520         compilation bug by using runtime conversion.
12521         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
12522         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
12523         * modules/ceill-tests (Files): Use nan.h.
12524         * modules/floorl-tests (Files): Likewise.
12525         * modules/frexpl-tests (Files): Likewise.
12526         * modules/isnanl-tests (Files): Likewise.
12527         * modules/ldexpl-tests (Files): Likewise.
12528         * modules/roundl-tests (Files): Likewise.
12529         * modules/truncl-tests (Files): Likewise.
12530         * tests/test-ceill.c (main): Use a working NaN.
12531         * tests/test-floorl.c (main): Likewise.
12532         * tests/test-frexpl.c (main): Likewise.
12533         * tests/test-isnan.c (test_long_double): Likewise.
12534         * tests/test-isnanl.h (main): Likewise.
12535         * tests/test-ldexpl.h (main): Likewise.
12536         * tests/test-roundl.h (main): Likewise.
12537         * tests/test-truncl.h (main): Likewise.
12538         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
12539
12540 2009-02-26  Eric Blake  <ebb9@byu.net>
12541             Bruno Haible  <bruno@clisp.org>
12542
12543         Work around a *printf bug with %ls on Solaris.
12544         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
12545         precision is specified, sprintf stops converting the wide string
12546         argument when the number of bytes that have been produced by this
12547         conversion equals or exceeds the precision.
12548         * doc/posix-functions/fprintf.texi: Update.
12549         * doc/posix-functions/printf.texi: Update.
12550         * doc/posix-functions/snprintf.texi: Update.
12551         * doc/posix-functions/sprintf.texi: Update.
12552         * doc/posix-functions/vfprintf.texi: Update.
12553         * doc/posix-functions/vprintf.texi: Update.
12554         * doc/posix-functions/vsnprintf.texi: Update.
12555         * doc/posix-functions/vsprintf.texi: Update.
12556         * doc/glibc-functions/obstack_printf.texi: Update.
12557         * doc/glibc-functions/obstack_vprintf.texi: Update.
12558
12559 2009-02-26  Eric Blake  <ebb9@byu.net>
12560
12561         stdlib: favor compiler check of random.h
12562         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
12563         to avoid an ObjC random.h installed by Swarm.
12564
12565 2009-02-26  Bruno Haible  <bruno@clisp.org>
12566
12567         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
12568         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
12569         Reported by Gary V. Vaughan <gary@gnu.org>.
12570
12571 2009-02-26  Bruno Haible  <bruno@clisp.org>
12572
12573         Fix *printf behaviour regarding the %ls directive.
12574         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
12575         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
12576         NEED_PRINTF_DIRECTIVE_LS.
12577         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
12578         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
12579         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12580         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
12581         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
12582         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
12583         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
12584         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12585         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12586         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12587         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12588         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
12589         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12590         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12591         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12592         * doc/posix-functions/fprintf.texi: Update.
12593         * doc/posix-functions/printf.texi: Update.
12594         * doc/posix-functions/snprintf.texi: Update.
12595         * doc/posix-functions/sprintf.texi: Update.
12596         * doc/posix-functions/vfprintf.texi: Update.
12597         * doc/posix-functions/vprintf.texi: Update.
12598         * doc/posix-functions/vsnprintf.texi: Update.
12599         * doc/posix-functions/vsprintf.texi: Update.
12600         * doc/glibc-functions/obstack_printf.texi: Update.
12601         * doc/glibc-functions/obstack_vprintf.texi: Update.
12602         Reported by Eric Blake.
12603
12604 2009-02-25  Bruno Haible  <bruno@clisp.org>
12605
12606         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
12607         with known value.
12608         Reported by Gary V. Vaughan <gary@gnu.org>.
12609
12610 2009-02-25  Bruno Haible  <bruno@clisp.org>
12611
12612         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
12613         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
12614         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
12615         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
12616         Reported by Gary V. Vaughan <gary@gnu.org>.
12617
12618 2009-02-25  Bruno Haible  <bruno@clisp.org>
12619
12620         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
12621         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
12622         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
12623         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
12624         Reported by Gary V. Vaughan <gary@gnu.org>.
12625
12626 2009-02-25  Eric Blake  <ebb9@byu.net>
12627
12628         tests: skip fseek/ftell tests if ungetc is broken
12629         * m4/ungetc.m4: New file.
12630         * modules/fseek-tests: Split test, so ungetc dependency is
12631         separate from rest of test.
12632         * modules/fseeko-tests: Likewise.
12633         * modules/ftell-tests: Likewise.
12634         * modules/ftello-tests: Likewise.
12635         * tests/test-fseek.c (main): Isolate ungetc dependency.
12636         * tests/test-fseeko.c (main): Likewise.
12637         * tests/test-ftell.c (main): Likewise.
12638         * tests/test-ftello.c (main): Likewise.
12639         * tests/test-fseek2.sh: New file.
12640         * tests/test-fseeko2.sh: Likewise.
12641         * tests/test-ftell2.sh: Likewise.
12642         * tests/test-ftello2.sh: Likewise.
12643
12644 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
12645
12646         test-getaddrinfo: fix usage of skip return code 77
12647         * tests/test-gettaddrinfo.c: Return skip code 77 only
12648         for first occurance of skip (4x77 is not 77)
12649
12650 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
12651
12652         strtod: avoid C99 decl-after-statement
12653         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
12654
12655 2009-02-24  Eric Blake  <ebb9@byu.net>
12656
12657         strtod: detect HP-UX 11.31 bug
12658         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
12659         Reported by Gary V. Vaughan.
12660
12661 2009-02-23  Bruno Haible  <bruno@clisp.org>
12662
12663         Fix invalid read past end of memory block.
12664         * lib/vasnprintf.c (DCHAR_SET): Define.
12665         (local_wcslen): Define only when needed.
12666         (local_strnlen, local_wcsnlen): New functions.
12667         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
12668         directives that involve a conversion ourselves.
12669         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
12670         wcsnlen, mbrtowc, wcrtomb.
12671         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
12672         * tests/test-vasprintf-posix.c (test_function): Likewise.
12673         * tests/test-snprintf-posix.h (test_function): Likewise.
12674         * tests/test-sprintf-posix.h (test_function): Likewise.
12675         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12676
12677 2009-02-22  Bruno Haible  <bruno@clisp.org>
12678
12679         Implement new clarified decomposition of Hangul syllables.
12680         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
12681         of type LTV, return only a pairwise decomposition.
12682         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
12683         Likewise.
12684         * tests/uninorm/test-decomposition.c (main): Updated expected result.
12685         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
12686         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
12687
12688 2009-02-22  Bruno Haible  <bruno@clisp.org>
12689
12690         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
12691         zero-length results and shrink excess allocated memory.
12692         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
12693         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
12694         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
12695         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
12696         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
12697         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
12698         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
12699         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
12700         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
12701         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
12702         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
12703         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
12704
12705 2009-02-21  Bruno Haible  <bruno@clisp.org>
12706
12707         * doc/gnulib.texi: Include safe-alloc.texi earlier.
12708         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
12709         spaces after a period. Put a space between a macro name and its
12710         argument list. Trivial rewordings.
12711         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
12712         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
12713         (main): Return 0 explicitly.
12714
12715 2009-02-21  Bruno Haible  <bruno@clisp.org>
12716
12717         Tests for module 'uninorm/filter'.
12718         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
12719         * modules/uninorm/filter-tests: New file.
12720
12721         New module 'uninorm/filter'.
12722         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
12723         uninorm_filter_flush, uninorm_filter_free): New declarations.
12724         * lib/uninorm/uninorm-filter.c: New file.
12725         * modules/uninorm/filter: New file.
12726
12727 2009-02-21  Bruno Haible  <bruno@clisp.org>
12728
12729         Tests for module 'uninorm/nfkc'.
12730         * tests/uninorm/test-nfkc.c: New file.
12731         * tests/uninorm/test-u8-nfkc.c: New file.
12732         * tests/uninorm/test-u16-nfkc.c: New file.
12733         * tests/uninorm/test-u32-nfkc.c: New file.
12734         * tests/uninorm/test-u32-nfkc-big.sh: New file.
12735         * tests/uninorm/test-u32-nfkc-big.c: New file.
12736         * modules/uninorm/nfkc-tests: New file.
12737
12738         New module 'uninorm/nfkc'.
12739         * lib/uninorm/nfkc.c: New file.
12740         * modules/uninorm/nfkc: New file.
12741
12742         Tests for module 'uninorm/nfkd'.
12743         * tests/uninorm/test-nfkd.c: New file.
12744         * tests/uninorm/test-u8-nfkd.c: New file.
12745         * tests/uninorm/test-u16-nfkd.c: New file.
12746         * tests/uninorm/test-u32-nfkd.c: New file.
12747         * tests/uninorm/test-u32-nfkd-big.sh: New file.
12748         * tests/uninorm/test-u32-nfkd-big.c: New file.
12749         * modules/uninorm/nfkd-tests: New file.
12750
12751         New module 'uninorm/nfkd'.
12752         * lib/uninorm/nfkd.c: New file.
12753         * modules/uninorm/nfkd: New file.
12754
12755         Tests for module 'uninorm/nfc'.
12756         * tests/uninorm/test-nfc.c: New file.
12757         * tests/uninorm/test-u8-nfc.c: New file.
12758         * tests/uninorm/test-u16-nfc.c: New file.
12759         * tests/uninorm/test-u32-nfc.c: New file.
12760         * tests/uninorm/test-u32-nfc-big.sh: New file.
12761         * tests/uninorm/test-u32-nfc-big.c: New file.
12762         * modules/uninorm/nfc-tests: New file.
12763
12764         New module 'uninorm/nfc'.
12765         * lib/uninorm/nfc.c: New file.
12766         * modules/uninorm/nfc: New file.
12767
12768         Tests for module 'uninorm/nfd'.
12769         * tests/uninorm/test-nfd.c: New file.
12770         * tests/uninorm/test-u8-nfd.c: New file.
12771         * tests/uninorm/test-u16-nfd.c: New file.
12772         * tests/uninorm/test-u32-nfd.c: New file.
12773         * tests/uninorm/test-u32-nfd-big.sh: New file.
12774         * tests/uninorm/test-u32-nfd-big.c: New file.
12775         * tests/uninorm/test-u32-normalize-big.h: New file.
12776         * tests/uninorm/test-u32-normalize-big.c: New file.
12777         * tests/uninorm/NormalizationTest.txt: New file, created from
12778         Unicode 5.1.0 NormalizationTest.txt.
12779         * modules/uninorm/nfd-tests: New file.
12780
12781         New module 'uninorm/nfd'.
12782         * lib/uninorm/nfd.c: New file.
12783         * modules/uninorm/nfd: New file.
12784
12785         New module 'uninorm/u32-normalize'.
12786         * lib/uninorm/u32-normalize.c: New file.
12787         * modules/uninorm/u32-normalize: New file.
12788
12789         New module 'uninorm/u16-normalize'.
12790         * lib/uninorm/u16-normalize.c: New file.
12791         * modules/uninorm/u16-normalize: New file.
12792
12793         New module 'uninorm/u8-normalize'.
12794         * lib/uninorm/u8-normalize.c: New file.
12795         * lib/uninorm/normalize-internal.h: New file.
12796         * lib/uninorm/u-normalize-internal.h: New file.
12797         * modules/uninorm/u8-normalize: New file.
12798
12799         New module 'uninorm/decompose-internal'.
12800         * lib/uninorm/decompose-internal.c: New file.
12801         * modules/uninorm/decompose-internal: New file.
12802
12803         Tests for module 'uninorm/composition'.
12804         * tests/uninorm/test-composition.c: New file.
12805         * modules/uninorm/composition-tests: New file.
12806
12807         New module 'uninorm/composition'.
12808         * lib/uninorm/composition.c: New file.
12809         * lib/uninorm/composition-table.gperf: New file, generated by
12810         gen-uni-tables.
12811         * modules/uninorm/composition: New file.
12812
12813         Tests for module 'uninorm/compat-decomposition'.
12814         * tests/uninorm/test-compat-decomposition.c: New file.
12815         * modules/uninorm/compat-decomposition-tests: New file.
12816
12817         New module 'uninorm/compat-decomposition'.
12818         * lib/uninorm/decompose-internal.h: New file.
12819         * lib/uninorm/compat-decomposition.c: New file.
12820         * modules/uninorm/compat-decomposition: New file.
12821
12822         Tests for module 'uninorm/canonical-decomposition'.
12823         * tests/uninorm/test-canonical-decomposition.c: New file.
12824         * modules/uninorm/canonical-decomposition-tests: New file.
12825
12826         New module 'uninorm/canonical-decomposition'.
12827         * lib/uninorm/canonical-decomposition.c: New file.
12828         * modules/uninorm/canonical-decomposition: New file.
12829
12830         Tests for module 'uninorm/decomposition'.
12831         * tests/uninorm/test-decomposition.c: New file.
12832         * modules/uninorm/decomposition-tests: New file.
12833
12834         New module 'uninorm/decomposition'.
12835         * lib/uninorm/decomposition.c: New file.
12836         * modules/uninorm/decomposition: New file.
12837
12838         New module 'uninorm/decomposition-table'.
12839         * lib/uninorm/decomposition-table.h: New file.
12840         * lib/uninorm/decomposition-table.c: New file.
12841         * lib/uninorm/decomposition-table1.h: New file, generated by
12842         gen-uni-tables.
12843         * lib/uninorm/decomposition-table2.h: New file, generated by
12844         gen-uni-tables.
12845         * modules/uninorm/decomposition-table: New file.
12846
12847         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
12848         (UC_DECOMP_*): New enumeration items.
12849         (get_decomposition): New function.
12850         (struct decomp_table): New type.
12851         (output_decomposition, output_decomposition_tables): New functions.
12852         (unicode_composition_exclusions): New variable.
12853         (fill_composition_exclusions, debug_output_composition_tables): New
12854         functions.
12855         (main): Accept one more argument. Invoke fill_composition_exclusions.
12856         Output decomposition and composition tables.
12857
12858         New module 'uninorm/base'.
12859         * lib/uninorm.h: New file.
12860         * lib/unictype.h: Update comment.
12861         * modules/uninorm/base: New file.
12862
12863 2009-02-21  David Lutterkort  <lutter@redhat.com>
12864
12865         Tests for module 'safe-alloc'.
12866         * tests/test-safe-alloc.c: New file.
12867         * modules/safe-alloc-tests: New file.
12868
12869         New module 'safe-alloc'.
12870         * lib/safe-alloc.h: New file.
12871         * lib/safe-alloc.c: New file.
12872         * m4/safe-alloc.m4: New file.
12873         * modules/safe-alloc: New file.
12874         * doc/safe-alloc.texi: New file.
12875         * doc/gnulib.texi: Include it.
12876         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
12877         safe-alloc.
12878
12879 2009-02-18  Bruno Haible  <bruno@clisp.org>
12880
12881         Fix link error on non-glibc systems.
12882         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
12883         variable.
12884         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12885
12886 2009-02-18  Jim Meyering  <meyering@redhat.com>
12887
12888         fts: avoid used-uninitialized error due to recent change
12889         * lib/fts.c (fts_read): Guard uses of the new member,
12890         parent->fts_n_dirs_remaining, since it's not relevant for
12891         the parent of a directory specified on the command-line.
12892
12893 2009-02-17  James Youngman  <jay@gnu.org>
12894             Bruno Haible  <bruno@clisp.org>
12895
12896         * m4/include_next.m4: Reformulate comment.
12897
12898 2009-02-16  Jim Meyering  <meyering@redhat.com>
12899
12900         fts: add #if guards so that the fts_lgpl module still builds
12901         * lib/fts.c: Guard just-added hash-table-using parts with
12902         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
12903         Reported by Simon Josefsson.
12904
12905 2009-02-15  Bruno Haible  <bruno@clisp.org>
12906
12907         * modules/array-mergesort-tests: New file.
12908         * tests/test-array-mergesort.c: New file.
12909
12910         New module 'array-mergesort'.
12911         * modules/array-mergesort: New file.
12912         * lib/array-mergesort.h: New file.
12913
12914 2009-02-15  Bruno Haible  <bruno@clisp.org>
12915
12916         Fix 2009-02-07 commit.
12917         * lib/gen-uni-tables.c (output_predicate, output_category,
12918         output_combclass, output_bidi_category, output_decimal_digit,
12919         output_digit, output_numeric, output_mirror, output_scripts,
12920         output_ident_category, output_simple_mapping): Fix format directives.
12921         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
12922
12923 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
12924
12925         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
12926         fixes are available from IBM.
12927
12928 2009-02-13  Jim Meyering  <meyering@redhat.com>
12929
12930         fts: arrange not to stat non-directories in more cases
12931         This makes GNU find (when it doesn't need to stat each file)
12932         *much* more efficient at traversing reiserfs file systems.
12933         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
12934         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
12935         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
12936         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
12937         (leaf_optimization_applies): New function.
12938         (LCO_hash, LCO_compare): New helper functions.
12939         (link_count_optimize_ok): New function.
12940         (fts_stat): Initialize new member (if dir).
12941         (fts_read): Decrement parent's fts_n_dirs_remaining count if
12942         we've just stat'ed a directory.  Skip the stat call when possible.
12943         ---
12944         Note this AFS-related exchange:
12945         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
12946         and note find's pioctl call in find/fstype.c.
12947         But that is necessary only if you want to enable the
12948         optimization for AFS, and for now, I don't.
12949
12950         fts: move a function definition "up" (no semantic change)
12951         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
12952         "up" to precede upcoming use of a related function.
12953
12954 2009-02-11  Jim Meyering  <meyering@redhat.com>
12955
12956         fts: correct internal computation of nlinks (optimization-related)
12957         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
12958         whether the current entry is a directory, so don't test it.
12959
12960 2009-02-10  Bruno Haible  <bruno@clisp.org>
12961
12962         Tests for module 'uniwbrk/ulc-wordbreaks'.
12963         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
12964         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
12965         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
12966
12967         Tests for module 'uniwbrk/u32-wordbreaks'.
12968         * modules/uniwbrk/u32-wordbreaks-tests: New file.
12969         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
12970
12971         Tests for module 'uniwbrk/u16-wordbreaks'.
12972         * modules/uniwbrk/u16-wordbreaks-tests: New file.
12973         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
12974
12975         Tests for module 'uniwbrk/u8-wordbreaks'.
12976         * modules/uniwbrk/u8-wordbreaks-tests: New file.
12977         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
12978
12979 2009-02-10  Bruno Haible  <bruno@clisp.org>
12980
12981         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
12982         property.
12983         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
12984         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
12985         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
12986
12987 2009-02-10  Simon Josefsson  <simon@josefsson.org>
12988
12989         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
12990         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
12991
12992 2009-02-10  Bruno Haible  <bruno@clisp.org>
12993
12994         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
12995         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
12996         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
12997         * lib/unilbrk/u8-possible-linebreaks.c: Update.
12998         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
12999         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
13000
13001 2009-02-09  Simon Josefsson  <simon@josefsson.org>
13002
13003         * lib/sockets.h (gl_fd_to_handle): New function.
13004
13005         * tests/test-sockets.c: Call gl_fd_to_handle.
13006
13007 2009-02-09  Bruno Haible  <bruno@clisp.org>
13008
13009         * doc/havelib.texi: Document the conventions on bi-arch systems.
13010
13011 2009-02-08  Bruno Haible  <bruno@clisp.org>
13012
13013         Document the AC_LIB_LINKFLAGS macro.
13014         * doc/havelib.texi: New file, mostly written on 2005-05-24.
13015         * doc/gnulib.texi: Include it.
13016
13017 2009-02-08  Bruno Haible  <bruno@clisp.org>
13018
13019         Fix wrong order of sections, compared to TOC.
13020         * doc/gnulib.texi: Include relocatable-maint.texi after the
13021         "Regular expressions" node, not before.
13022
13023 2009-02-08  Bruno Haible  <bruno@clisp.org>
13024
13025         Tests for module 'unicase/totitle'.
13026         * modules/unicase/totitle-tests: New file.
13027
13028         Tests for module 'unicase/tolower'.
13029         * modules/unicase/tolower-tests: New file.
13030
13031         Tests for module 'unicase/toupper'.
13032         * modules/unicase/toupper-tests: New file.
13033         * tests/unicase/test-mapping-part1.h: New file.
13034         * tests/unicase/test-mapping-part2.h: New file.
13035
13036         New module 'unicase/totitle'.
13037         * modules/unicase/totitle: New file.
13038         * lib/unicase/totitle.c: New file.
13039
13040         New module 'unicase/tolower'.
13041         * modules/unicase/tolower: New file.
13042         * lib/unicase/tolower.c: New file.
13043
13044         New module 'unicase/toupper'.
13045         * modules/unicase/toupper: New file.
13046         * lib/unicase/toupper.c: New file.
13047         * lib/unicase/simple-mapping.h: New file.
13048
13049         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
13050         (mapping_table): New structure.
13051         (output_simple_mapping): New function.
13052         (main): Invoke output_simple_mapping_test and output_simple_mapping.
13053         * modules/gen-uni-tables (Description): Update.
13054         * lib/unicase/toupper.h: New file, automatically generated by
13055         gen-uni-tables.
13056         * lib/unicase/tolower.h: New file, automatically generated by
13057         gen-uni-tables.
13058         * lib/unicase/totitle.h: New file, automatically generated by
13059         gen-uni-tables.
13060         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
13061         gen-uni-tables.
13062         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
13063         gen-uni-tables.
13064         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
13065         gen-uni-tables.
13066
13067         New module 'unicase/base'.
13068         * modules/unicase/base: New file.
13069         * lib/unicase.h: New file.
13070
13071 2009-02-08  Bruno Haible  <bruno@clisp.org>
13072
13073         New module 'uniwbrk/ulc-wordbreaks'.
13074         * modules/uniwbrk/ulc-wordbreaks: New file.
13075         * lib/uniwbrk/ulc-wordbreaks.c: New file.
13076
13077         New module 'uniwbrk/u32-wordbreaks'.
13078         * modules/uniwbrk/u32-wordbreaks: New file.
13079         * lib/uniwbrk/u32-wordbreaks.c: New file.
13080
13081         New module 'uniwbrk/u16-wordbreaks'.
13082         * modules/uniwbrk/u16-wordbreaks: New file.
13083         * lib/uniwbrk/u16-wordbreaks.c: New file.
13084
13085         New module 'uniwbrk/u8-wordbreaks'.
13086         * modules/uniwbrk/u8-wordbreaks: New file.
13087         * lib/uniwbrk/u8-wordbreaks.c: New file.
13088         * lib/uniwbrk/u-wordbreaks.h: New file.
13089
13090         New module 'uniwbrk/table'.
13091         * modules/uniwbrk/table: New file.
13092         * lib/uniwbrk/wbrktable.h: New file.
13093         * lib/uniwbrk/wbrktable.c: New file.
13094
13095         New module 'uniwbrk/wordbreak-property'.
13096         * modules/uniwbrk/wordbreak-property: New file.
13097         * lib/uniwbrk/wordbreak-property.c: New file.
13098
13099         * lib/gen-uni-tables.c (WBP_*): New enum items.
13100         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
13101         (unicode_org_wbp): New variable.
13102         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
13103         New functions.
13104         (wbp_table): New structure.
13105         (output_wbp, output_wbrk_tables): New functions.
13106         (main): Accept additional argument. Invoke fill_org_wbp,
13107         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
13108         output_wbrk_tables.
13109         * modules/gen-uni-tables (Description): Update.
13110         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
13111         gen-uni-tables.
13112
13113         New module 'uniwbrk/base'.
13114         * modules/uniwbrk/base: New file.
13115         * lib/uniwbrk.h: New file.
13116
13117 2009-02-08  Bruno Haible  <bruno@clisp.org>
13118
13119         Update to Unicode 5.1.0.
13120         * lib/gen-uni-tables.c (is_property_alphabetic): Include
13121         U+2185..U+2188.
13122         (is_property_default_ignorable_code_point): Don't include characters
13123         of category Cc or Cs and not-a-characters.
13124         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
13125         U+0D79, U+109E, U+109F, U+A60C.
13126         * lib/unictype/bidi_of.h: Regenerated.
13127         * lib/unictype/blocks.h: Regenerated.
13128         * lib/unictype/categ_C.h: Regenerated.
13129         * lib/unictype/categ_Cf.h: Regenerated.
13130         * lib/unictype/categ_Cn.h: Regenerated.
13131         * lib/unictype/categ_L.h: Regenerated.
13132         * lib/unictype/categ_Ll.h: Regenerated.
13133         * lib/unictype/categ_Lm.h: Regenerated.
13134         * lib/unictype/categ_Lo.h: Regenerated.
13135         * lib/unictype/categ_Lu.h: Regenerated.
13136         * lib/unictype/categ_M.h: Regenerated.
13137         * lib/unictype/categ_Mc.h: Regenerated.
13138         * lib/unictype/categ_Me.h: Regenerated.
13139         * lib/unictype/categ_Mn.h: Regenerated.
13140         * lib/unictype/categ_N.h: Regenerated.
13141         * lib/unictype/categ_Nd.h: Regenerated.
13142         * lib/unictype/categ_Nl.h: Regenerated.
13143         * lib/unictype/categ_No.h: Regenerated.
13144         * lib/unictype/categ_P.h: Regenerated.
13145         * lib/unictype/categ_Pd.h: Regenerated.
13146         * lib/unictype/categ_Pe.h: Regenerated.
13147         * lib/unictype/categ_Pf.h: Regenerated.
13148         * lib/unictype/categ_Pi.h: Regenerated.
13149         * lib/unictype/categ_Po.h: Regenerated.
13150         * lib/unictype/categ_Ps.h: Regenerated.
13151         * lib/unictype/categ_S.h: Regenerated.
13152         * lib/unictype/categ_Sk.h: Regenerated.
13153         * lib/unictype/categ_Sm.h: Regenerated.
13154         * lib/unictype/categ_So.h: Regenerated.
13155         * lib/unictype/categ_of.h: Regenerated.
13156         * lib/unictype/combining.h: Regenerated.
13157         * lib/unictype/ctype_alnum.h: Regenerated.
13158         * lib/unictype/ctype_alpha.h: Regenerated.
13159         * lib/unictype/ctype_graph.h: Regenerated.
13160         * lib/unictype/ctype_lower.h: Regenerated.
13161         * lib/unictype/ctype_print.h: Regenerated.
13162         * lib/unictype/ctype_punct.h: Regenerated.
13163         * lib/unictype/ctype_upper.h: Regenerated.
13164         * lib/unictype/decdigit.h: Regenerated.
13165         * lib/unictype/digit.h: Regenerated.
13166         * lib/unictype/mirror.h: Regenerated.
13167         * lib/unictype/numeric.h: Regenerated.
13168         * lib/unictype/pr_alphabetic.h: Regenerated.
13169         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
13170         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
13171         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
13172         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
13173         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
13174         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
13175         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
13176         * lib/unictype/pr_combining.h: Regenerated.
13177         * lib/unictype/pr_dash.h: Regenerated.
13178         * lib/unictype/pr_decimal_digit.h: Regenerated.
13179         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
13180         * lib/unictype/pr_deprecated.h: Regenerated.
13181         * lib/unictype/pr_diacritic.h: Regenerated.
13182         * lib/unictype/pr_extender.h: Regenerated.
13183         * lib/unictype/pr_format_control.h: Regenerated.
13184         * lib/unictype/pr_grapheme_base.h: Regenerated.
13185         * lib/unictype/pr_grapheme_extend.h: Regenerated.
13186         * lib/unictype/pr_grapheme_link.h: Regenerated.
13187         * lib/unictype/pr_id_continue.h: Regenerated.
13188         * lib/unictype/pr_id_start.h: Regenerated.
13189         * lib/unictype/pr_ideographic.h: Regenerated.
13190         * lib/unictype/pr_ignorable_control.h: Regenerated.
13191         * lib/unictype/pr_lowercase.h: Regenerated.
13192         * lib/unictype/pr_math.h: Regenerated.
13193         * lib/unictype/pr_numeric.h: Regenerated.
13194         * lib/unictype/pr_other_alphabetic.h: Regenerated.
13195         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
13196         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
13197         * lib/unictype/pr_other_id_continue.h: Regenerated.
13198         * lib/unictype/pr_other_lowercase.h: Regenerated.
13199         * lib/unictype/pr_other_math.h: Regenerated.
13200         * lib/unictype/pr_punctuation.h: Regenerated.
13201         * lib/unictype/pr_sentence_terminal.h: Regenerated.
13202         * lib/unictype/pr_soft_dotted.h: Regenerated.
13203         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
13204         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
13205         * lib/unictype/pr_unified_ideograph.h: Regenerated.
13206         * lib/unictype/pr_uppercase.h: Regenerated.
13207         * lib/unictype/pr_xid_continue.h: Regenerated.
13208         * lib/unictype/pr_xid_start.h: Regenerated.
13209         * lib/unictype/pr_zero_width.h: Regenerated.
13210         * lib/unictype/scripts.h: Regenerated.
13211         * lib/unictype/scripts_byname.gperf: Regenerated.
13212         * lib/unictype/sy_java_ident.h: Regenerated.
13213         * lib/unilbrk/lbrkprop1.h: Regenerated.
13214         * lib/unilbrk/lbrkprop2.h: Regenerated.
13215         * tests/unictype/test-categ_C.c: Regenerated.
13216         * tests/unictype/test-categ_Cf.c: Regenerated.
13217         * tests/unictype/test-categ_Cn.c: Regenerated.
13218         * tests/unictype/test-categ_L.c: Regenerated.
13219         * tests/unictype/test-categ_Ll.c: Regenerated.
13220         * tests/unictype/test-categ_Lm.c: Regenerated.
13221         * tests/unictype/test-categ_Lo.c: Regenerated.
13222         * tests/unictype/test-categ_Lu.c: Regenerated.
13223         * tests/unictype/test-categ_M.c: Regenerated.
13224         * tests/unictype/test-categ_Mc.c: Regenerated.
13225         * tests/unictype/test-categ_Me.c: Regenerated.
13226         * tests/unictype/test-categ_Mn.c: Regenerated.
13227         * tests/unictype/test-categ_N.c: Regenerated.
13228         * tests/unictype/test-categ_Nd.c: Regenerated.
13229         * tests/unictype/test-categ_Nl.c: Regenerated.
13230         * tests/unictype/test-categ_No.c: Regenerated.
13231         * tests/unictype/test-categ_P.c: Regenerated.
13232         * tests/unictype/test-categ_Pd.c: Regenerated.
13233         * tests/unictype/test-categ_Pe.c: Regenerated.
13234         * tests/unictype/test-categ_Pf.c: Regenerated.
13235         * tests/unictype/test-categ_Pi.c: Regenerated.
13236         * tests/unictype/test-categ_Po.c: Regenerated.
13237         * tests/unictype/test-categ_Ps.c: Regenerated.
13238         * tests/unictype/test-categ_S.c: Regenerated.
13239         * tests/unictype/test-categ_Sk.c: Regenerated.
13240         * tests/unictype/test-categ_Sm.c: Regenerated.
13241         * tests/unictype/test-categ_So.c: Regenerated.
13242         * tests/unictype/test-ctype_alnum.c: Regenerated.
13243         * tests/unictype/test-ctype_alpha.c: Regenerated.
13244         * tests/unictype/test-ctype_graph.c: Regenerated.
13245         * tests/unictype/test-ctype_lower.c: Regenerated.
13246         * tests/unictype/test-ctype_print.c: Regenerated.
13247         * tests/unictype/test-ctype_punct.c: Regenerated.
13248         * tests/unictype/test-ctype_upper.c: Regenerated.
13249         * tests/unictype/test-decdigit.h: Regenerated.
13250         * tests/unictype/test-digit.h: Regenerated.
13251         * tests/unictype/test-numeric.h: Regenerated.
13252         * tests/unictype/test-pr_alphabetic.c: Regenerated.
13253         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
13254         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
13255         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
13256         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
13257         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
13258         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
13259         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
13260         * tests/unictype/test-pr_combining.c: Regenerated.
13261         * tests/unictype/test-pr_dash.c: Regenerated.
13262         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
13263         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
13264         * tests/unictype/test-pr_deprecated.c: Regenerated.
13265         * tests/unictype/test-pr_diacritic.c: Regenerated.
13266         * tests/unictype/test-pr_extender.c: Regenerated.
13267         * tests/unictype/test-pr_format_control.c: Regenerated.
13268         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
13269         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
13270         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
13271         * tests/unictype/test-pr_id_continue.c: Regenerated.
13272         * tests/unictype/test-pr_id_start.c: Regenerated.
13273         * tests/unictype/test-pr_ideographic.c: Regenerated.
13274         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
13275         * tests/unictype/test-pr_lowercase.c: Regenerated.
13276         * tests/unictype/test-pr_math.c: Regenerated.
13277         * tests/unictype/test-pr_numeric.c: Regenerated.
13278         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
13279         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
13280         Regenerated.
13281         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
13282         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
13283         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
13284         * tests/unictype/test-pr_other_math.c: Regenerated.
13285         * tests/unictype/test-pr_punctuation.c: Regenerated.
13286         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
13287         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
13288         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
13289         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
13290         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
13291         * tests/unictype/test-pr_uppercase.c: Regenerated.
13292         * tests/unictype/test-pr_xid_continue.c: Regenerated.
13293         * tests/unictype/test-pr_xid_start.c: Regenerated.
13294         * tests/unictype/test-pr_zero_width.c: Regenerated.
13295
13296         Update to Unicode 5.1.0.
13297         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
13298         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
13299         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
13300         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
13301         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
13302         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
13303         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
13304         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
13305         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
13306         (nonspacing_table_ind): Update.
13307         * tests/uniwidth/test-uc_width2.sh: Update expected result.
13308
13309         Update to Unicode 5.1.0.
13310         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
13311         code transform.
13312         * lib/uniname/uniname.c (unicode_character_name,
13313         unicode_name_character): Add the range 0x1Fxxx to the code transform.
13314         * lib/uniname/uninames.h: Regenerated.
13315         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
13316
13317 2009-02-07  Bruno Haible  <bruno@clisp.org>
13318
13319         Merge gen-ctype and gen-lbrk into a single program.
13320         * lib/gen-uni-tables.c: New file, incorporating
13321         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
13322         Add directory prefixes to the names of the generated files.
13323         * lib/unictype/gen-ctype.c: Remove file.
13324         * lib/unilbrk/gen-lbrk.c: Remove file.
13325         * modules/gen-uni-tables: New file.
13326         * modules/unictype/gen-ctype: Remove file.
13327         * modules/unilbrk/gen-lbrk: Remove file.
13328
13329 2009-02-07  Bruno Haible  <bruno@clisp.org>
13330
13331         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
13332
13333         New module 'unistr/u32-strcoll'.
13334         * modules/unistr/u32-strcoll: New file.
13335         * lib/unistr/u32-strcoll.c: New file.
13336
13337         New module 'unistr/u16-strcoll'.
13338         * modules/unistr/u16-strcoll: New file.
13339         * lib/unistr/u16-strcoll.c: New file.
13340
13341         New module 'unistr/u8-strcoll'.
13342         * modules/unistr/u8-strcoll: New file.
13343         * lib/unistr/u8-strcoll.c: New file.
13344         * lib/unistr/u-strcoll.h: New file.
13345
13346 2009-02-07  Bruno Haible  <bruno@clisp.org>
13347
13348         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
13349         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
13350         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
13351         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
13352         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
13353         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
13354
13355 2009-02-07  Bruno Haible  <bruno@clisp.org>
13356
13357         Make 64-bit clean.
13358         * lib/unictype/gen-ctype.c (output_predicate, output_category,
13359         output_combclass, output_bidi_category, output_decimal_digit,
13360         output_digit, output_numeric, output_mirror, output_scripts,
13361         output_ident_category): Use proper width specifier in format strings.
13362
13363 2009-02-07  Bruno Haible  <bruno@clisp.org>
13364
13365         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
13366         failure behaviour.
13367
13368 2009-02-07  Jim Meyering  <meyering@redhat.com>
13369
13370         regex: avoid compilation failure with upcoming gcc-4.4
13371         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
13372         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
13373         "... error: integer overflow in preprocessor expression".
13374
13375 2009-02-05  Ben Pfaff  <blp@gnu.org>
13376
13377         Fix link errors on Windows when close module is used.
13378         * modules/close: Add $(LIB_CLOSE) to Link section.
13379         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
13380         $(LIB_CLOSE) on Windows.
13381
13382 2009-02-05  Jim Meyering  <meyering@redhat.com>
13383
13384         still avoid unused-parameter warnings, but do it cleanly
13385         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
13386         (get_fs_usage): Cast to void instead.
13387         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
13388         (dev_from_mount_options, read_file_system_list): Cast to void.
13389         Prompted by Bruno Haible.
13390
13391 2009-02-04  Jim Meyering  <meyering@redhat.com>
13392
13393         fsusage.c: correct copyright year
13394         * lib/fsusage.c: Reflect year in which the change is pushed into
13395
13396         avoid misc. warnings
13397         * lib/fsusage.c (UNUSED_PARAM): Define.
13398         (get_fs_usage): Mark parameter "disk" as unused.
13399         * lib/getugroups.c (getgrent): Use "void" in prototype.
13400         * lib/mountlist.c: Mark unused parameters.
13401         (read_file_system_list): Declare a local with "const".
13402         * lib/nanosleep.c (getnow): Declare static.
13403         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
13404
13405         dirfd: set errno upon failure
13406         * lib/dirfd.c: Include <errno.h>.
13407         Set errno to ENOTSUP when returning -1.
13408         * modules/dirfd (Depends-on): Add errno.
13409         Suggested by John Kodis <kodis@comcast.net>.
13410
13411 2009-02-01  Bruno Haible  <bruno@clisp.org>
13412
13413         Don't assume sizeof (long) >= sizeof (void *).
13414         * lib/memcmp.c: Include stdint.h.
13415         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
13416         srcp2 to 'const byte *'.
13417         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
13418         types to uintptr_t.
13419         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
13420         * modules/memcmp (Depends-on): Add stdint.
13421         Reported by Ozkan Sezer <sezeroz@gmail.com>.
13422
13423 2009-01-30  Eric Blake  <ebb9@byu.net>
13424
13425         fix more require-before-expand issues
13426         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
13427         expand, AC_PROG_AWK.
13428         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
13429
13430 2009-01-28  Eric Blake  <ebb9@byu.net>
13431
13432         version-etc: use consistent URL formatting
13433         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
13434         Improve formatting.  Use fputs for string without %.
13435
13436 2009-01-28  Jim Meyering  <meyering@redhat.com>
13437
13438         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
13439         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
13440         "underquoted definition of NAME" from autoconf-2.59.
13441
13442 2009-01-28  Bruno Haible  <bruno@clisp.org>
13443
13444         * doc/gnulib.texi: Add "Obsolete modules" to index.
13445
13446 2009-01-28  Jim Meyering  <meyering@redhat.com>
13447
13448         useless-if-before-free: recognize more variants
13449         * build-aux/useless-if-before-free: Also recognize e.g.,
13450         if (NULL != p) free (p);
13451
13452 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
13453
13454         test-getaddrinfo: skip (don't fail) this test when there's no network
13455         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
13456         on the presumption that it means you lack network access.
13457
13458 2009-01-26  Jim Meyering  <meyering@redhat.com>
13459
13460         fflush: avoid warnings on modern systems
13461         * lib/fflush.c (rpl_fflush): Move declarations of locals,
13462         pos and result, into scopes where they're used.
13463
13464 2009-01-26  Eric Blake  <ebb9@byu.net>
13465
13466         Silence warning reintroduced by recent extensions patch.
13467         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
13468         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
13469         autoconf.
13470
13471         Backport improved autoconf semantics of AC_DEFUN_ONCE.
13472         * m4/00gnulib.m4: New file.
13473         * gnulib-tool (func_get_filelist): Always use it.
13474         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
13475         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
13476
13477 2009-01-25  Bruno Haible  <bruno@clisp.org>
13478
13479         Make test-quotearg work on MacOS X and AIX.
13480         * tests/test-quotearg.sh: New file.
13481         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
13482         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
13483         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
13484         include <libintl.h>.
13485         (fake_locale): Remove variable.
13486         (gettext, dgettext, dcgettext): Remove functions.
13487         (main): Instead of setting a fake locale, set a real locale. Call
13488         textdomain and bindtextdomain.
13489         * modules/quotearg-tests (Files): Add the new files.
13490         (Depends-on): Add gettext, setenv, unsetenv.
13491         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
13492         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
13493         Augment TESTS_ENVIRONMENT.
13494
13495 2009-01-25  Bruno Haible  <bruno@clisp.org>
13496
13497         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
13498         fr_FR.ISO8859-1 locale on MacOS X.
13499         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
13500         ja_JP.eucJP locale on MacOS X.
13501         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
13502         zh_CN.GB18030 locale on MacOS X.
13503
13504 2009-01-25  Bruno Haible  <bruno@clisp.org>
13505
13506         Avoid link errors on MacOS X 10.3.
13507         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
13508         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
13509
13510 2009-01-25  Bruno Haible  <bruno@clisp.org>
13511
13512         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
13513         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
13514         * modules/pipe (Files): Remove m4/posix_spawn.m4.
13515         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
13516         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
13517         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
13518         posix_spawnattr_init, posix_spawnattr_setsigmask,
13519         posix_spawnattr_setflags, posix_spawnattr_destroy.
13520
13521         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
13522         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
13523         * modules/execute (Files): Remove m4/posix_spawn.m4.
13524         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
13525         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
13526         posix_spawnattr_init, posix_spawnattr_setsigmask,
13527         posix_spawnattr_setflags, posix_spawnattr_destroy.
13528
13529 2009-01-25  Bruno Haible  <bruno@clisp.org>
13530
13531         * lib/glthread/threadlib.c: Include <stdlib.h>.
13532
13533 2009-01-25  Bruno Haible  <bruno@clisp.org>
13534
13535         * lib/glthread/threadlib.c (dummy): New declaration.
13536
13537 2009-01-25  Bruno Haible  <bruno@clisp.org>
13538
13539         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
13540         multibyte characters also for the GB18030 encoding. Don't crash when
13541         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
13542
13543 2009-01-25  Bruno Haible  <bruno@clisp.org>
13544
13545         Avoid redefining 'struct random_data' on OSF/1 5.1.
13546         * lib/stdlib.in.h: Include <random.h> if it exists.
13547         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
13548         HAVE_RANDOM_H. Include <random.h> when testing whether
13549         'struct random_data' exists.
13550         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
13551
13552 2009-01-25  Bruno Haible  <bruno@clisp.org>
13553
13554         Don't install charset.alias on MacOS X >= 10.3.
13555         * lib/localcharset.c (DARWIN7): New macro.
13556         (get_charset_aliases): Hardcode the result for Darwin7.
13557         * modules/localcharset (install-exec-local): Don't install
13558         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
13559
13560 2009-01-25  Bruno Haible  <bruno@clisp.org>
13561
13562         Don't install charset.alias on mingw and Cygwin.
13563         * modules/localcharset (install-exec-local): Don't install
13564         charset.alias on mingw and Cygwin, if the file does not yet exist.
13565         The result for these platforms is hardcoded in localcharset.c.
13566
13567 2009-01-25  Bruno Haible  <bruno@clisp.org>
13568
13569         Make it possible again to use AC_GNU_SOURCE together with gnulib.
13570         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
13571         before requiring AC_USE_SYSTEM_EXTENSIONS.
13572
13573 2009-01-25  Jim Meyering  <meyering@redhat.com>
13574
13575         c-strtod: avoid warnings
13576         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
13577         "assignment discards qualifiers from pointer target type" warnings.
13578
13579 2009-01-24  Bruno Haible  <bruno@clisp.org>
13580
13581         Add support for non-UTF-8 locales on MacOS X.
13582         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
13583         canonical encodings. For Darwin 7 and newer, don't map traditional
13584         encodings to UTF-8.
13585         Reported by Vincent Lefevre <vincent@vinc17.org>
13586         at <http://savannah.gnu.org/bugs/?25235>.
13587
13588 2009-01-24  Bruno Haible  <bruno@clisp.org>
13589
13590         * doc/gnulib.texi (Obsolete modules): New section.
13591         Reported by Mike Frysinger <vapier@gentoo.org>.
13592
13593 2009-01-24  Bruno Haible  <bruno@clisp.org>
13594
13595         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
13596         (%.dvi): New rule.
13597
13598 2009-01-24  Bruno Haible  <bruno@clisp.org>
13599
13600         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
13601         Reported by Eric Blake.
13602
13603 2009-01-24  Bruno Haible  <bruno@clisp.org>
13604
13605         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
13606         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
13607         Reported by Gary V. Vaughan <gary@gnu.org>.
13608
13609 2009-01-24  Bruno Haible  <bruno@clisp.org>
13610
13611         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
13612
13613 2009-01-23  Bruno Haible  <bruno@clisp.org>
13614
13615         Make c-strtod, c-strtold usable in libraries.
13616         * lib/c-strtod.c: Include string.h instead of xalloc.h.
13617         (C_STRTOD): Call strdup instead of xstrdup.
13618         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
13619         * modules/c-strtold (Depends-on): Likewise.
13620         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
13621         * NEWS: Mention the change.
13622         Reported by Michael Gold <mgold@ncf.ca>.
13623
13624 2009-01-23  Jim Meyering  <meyering@redhat.com>
13625
13626         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
13627         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
13628         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
13629
13630 2009-01-23  Simon Josefsson  <simon@josefsson.org>
13631
13632         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
13633         GNU CoreUtils.
13634         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
13635         * modules/version-etc (Description): Update.
13636
13637 2009-01-22  Bruno Haible  <bruno@clisp.org>
13638
13639         Cache the C locale object.
13640         * lib/c-strtod.c (c_locale_cache): New variable.
13641         (c_locale): New function.
13642         (C_STRTOD): Use it, and don't call freelocale.
13643         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
13644         Suggested by Paolo Bonzini.
13645
13646 2009-01-21  Bruno Haible  <bruno@clisp.org>
13647
13648         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
13649         conditions other than overflow.
13650
13651 2009-01-21  Bruno Haible  <bruno@clisp.org>
13652
13653         * lib/c-strtod.c: Include errno.h.
13654         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
13655         value from STRTOD_L and STRTOD.
13656
13657 2009-01-21  Bruno Haible  <bruno@clisp.org>
13658         and Jim Meyering  <meyering@redhat.com>
13659
13660         nanosleep: skip configure test (fail it) for apple universal builds
13661         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
13662         universal builds, assume that nanosleep does not work.
13663         * modules/nanosleep (Depends-on): Add multiarch.
13664
13665         mktime: skip configure test (fail it) for apple universal builds
13666         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
13667         universal builds, assume that mktime does not work.
13668         * modules/mktime (Depends-on): Add multiarch.
13669
13670 2009-01-21  Eric Blake  <ebb9@byu.net>
13671
13672         multiarch: avoid expand-before-require warning
13673         * modules/multiarch (configure.ac): Require, rather than expand,
13674         gl_MULTIARCH.
13675         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
13676         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
13677         enforce that all clients require it.  Partial reversion of
13678         2008-12-29 patch.
13679
13680         error: avoid expand-before-require warning
13681         * modules/errno (configure.ac): Require, rather than expand,
13682         gl_HEADER_ERRNO_H.
13683         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
13684         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
13685         enforce that all clients require it.
13686
13687         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
13688         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
13689         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
13690         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
13691
13692 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
13693
13694         Revert:
13695         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
13696
13697         regex: do not depend on obsolete modules.
13698         * modules/regex: Remove memcmp and memmove.
13699
13700 2009-01-20  Bruno Haible  <bruno@clisp.org>
13701
13702         Make the 'link' module link on Windows NT 4.
13703         * lib/link.c (_WIN32_WINNT): Don't define.
13704         (CreateHardLinkFuncType): New type.
13705         (CreateHardLinkFunc, initialized): New variables.
13706         (initialize): New function.
13707         (link): Invoke CreateHardLink indirectly through the function pointer.
13708
13709 2009-01-20  Bruno Haible  <bruno@clisp.org>
13710
13711         Fix compilation failure on mingw.
13712         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
13713
13714 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
13715
13716         * doc/c-strtod.texi: Mention a couple of restrictions.
13717
13718 2009-01-20  Jim Meyering  <meyering@redhat.com>
13719
13720         gettimeofday: move more declarations out of functions
13721         * lib/gettimeofday.c: Move extern declarations of tzset and
13722         gmtime out of containing functions.  Prompted by Bruno Haible.
13723
13724 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
13725
13726         regex: do not depend on obsolete modules.
13727         * modules/regex: Remove memcmp and memmove.
13728
13729 2009-01-19  Bruno Haible  <bruno@clisp.org>
13730
13731         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
13732         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
13733         gl_BIGENDIAN, not AC_C_BIGENDIAN.
13734         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
13735         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
13736
13737 2009-01-19  Bruno Haible  <bruno@clisp.org>
13738
13739         * tests/test-link.c: Include <errno.h>.
13740         (main): Exit with code 77 when a hard link cannot be created due to
13741         the file system.
13742         * tests/test-link.sh: Skip test when a hard link cannot be created due
13743         to the file system.
13744         Suggested by Eric Blake.
13745
13746 2009-01-19  Martin Lambers  <marlam@marlam.de>
13747
13748         * modules/link-tests: New file.
13749         * tests/test-link.sh: New file.
13750         * tests/test-link.c: New file.
13751
13752 2009-01-19  Eric Blake  <ebb9@byu.net>
13753
13754         doc: mention another function added in cygwin 1.7.0
13755         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
13756         Another new function in cygwin 1.7.
13757
13758 2009-01-19  Bruno Haible  <bruno@clisp.org>
13759
13760         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
13761         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
13762         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
13763         gl_BIGENDIAN, not AC_C_BIGENDIAN.
13764         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
13765         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
13766         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13767         * m4/md4.m4 (gl_MD4): Likewise.
13768         * m4/md5.m4 (gl_MD5): Likewise.
13769         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
13770         * m4/sha1.m4 (gl_SHA1): Likewise.
13771         * m4/sha256.m4 (gl_SHA256): Likewise.
13772         * m4/sha512.m4 (gl_SHA512): Likewise.
13773
13774 2009-01-19  Bruno Haible  <bruno@clisp.org>
13775
13776         * modules/uniname/uniname-tests (Depends-on): Add progname.
13777         * tests/uniname/test-uninames.c: Include progname.h.
13778         (main): Call set_program_name.
13779
13780         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
13781         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
13782         (main): Call set_program_name.
13783
13784         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
13785         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
13786         (main): Call set_program_name.
13787
13788         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
13789         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
13790         (main): Call set_program_name.
13791
13792         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
13793         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
13794         (main): Call set_program_name.
13795
13796         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
13797         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
13798         (main): Call set_program_name.
13799
13800         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
13801         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
13802         (main): Call set_program_name.
13803
13804         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
13805         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
13806         (main): Call set_program_name.
13807
13808         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
13809         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
13810         (main): Call set_program_name.
13811
13812 2009-01-19  Eric Blake  <ebb9@byu.net>
13813
13814         test-unistd: test previous patch
13815         * tests/test-unistd.c: Test *_FILENO macros.
13816
13817         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
13818         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
13819         Guarantee a definition.
13820         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
13821         * modules/unistd-safer (Depends-on): Add dependency on unistd.
13822         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
13823         * lib/dup-safer.c (STDERR_FILENO): Likewise.
13824         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
13825         Likewise.
13826         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
13827         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
13828         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
13829         Likewise.
13830         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
13831         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
13832         (STDERR_FILENO): Likewise.
13833         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
13834         (STDERR_FILENO): Likewise.
13835         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
13836         (STDERR_FILENO): Likewise.
13837         Reported by Elbert Pol.
13838
13839 2009-01-19  Eric Blake  <ebb9@byu.net>
13840
13841         doc: mention more functions added in cygwin 1.7.0
13842         * doc/posix-functions/abort.texi (abort): Update wording related
13843         to cygwin.
13844         * doc/posix-functions/daylight.texi (daylight): Likewise.
13845         * doc/posix-functions/optarg.texi (optarg): Likewise.
13846         * doc/posix-functions/optarg.texi (opterr): Likewise.
13847         * doc/posix-functions/optarg.texi (optind): Likewise.
13848         * doc/posix-functions/optarg.texi (optopt): Likewise.
13849         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
13850         worked in 1.5.x, and was withdrawn in 1.7.
13851         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
13852         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
13853         cygwin versions.
13854         * doc/posix-functions/perror.texi (perror): Likewise.
13855         * doc/posix-functions/printf.texi (printf): Likewise.
13856         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
13857         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
13858         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
13859         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
13860         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13861         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
13862         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
13863         Likewise.
13864         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
13865         Likewise.
13866         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
13867         this function.
13868         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
13869         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
13870         Likewise.
13871         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
13872         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
13873         * doc/posix-functions/confstr.texi (confstr): Likewise.
13874         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
13875         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
13876         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
13877         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
13878         * doc/posix-functions/fputws.texi (fputws): Likewise.
13879         * doc/posix-functions/fwide.texi (fwide): Likewise.
13880         * doc/posix-functions/getwc.texi (getwc): Likewise.
13881         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
13882         * doc/posix-functions/putwc.texi (putwc): Likewise.
13883         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
13884         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
13885         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
13886         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
13887         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
13888         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
13889         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
13890         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
13891         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
13892         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
13893         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
13894
13895 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
13896
13897         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
13898         * lib/ioctl.c: Include <sys/ioctl.h>.
13899
13900 2009-01-19  Simon Josefsson  <simon@josefsson.org>
13901
13902         * modules/getdate-tests (Depends-on): Add progname.
13903         * tests/test-getdate.c: Use progname module, to avoid link errors
13904         on non-glibc systems.
13905
13906 2009-01-18  Simon Josefsson  <simon@josefsson.org>
13907
13908         * modules/filenamecat-tests (Depends-on): Add progname.
13909         * modules/fstrcmp-tests (Depends-on): Likewise.
13910
13911         * tests/test-filenamecat.c: Use progname module, to avoid link
13912         errors on non-glibc systems.
13913         * tests/test-fstrcmp.c: Likewise.
13914
13915 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
13916
13917         gettimeofday: avoid warning: nested extern declaration of 'localtime'
13918         * lib/gettimeofday.c: Move extern declaration out of function.
13919
13920 2009-01-18  Bruno Haible  <bruno@clisp.org>
13921
13922         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
13923         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
13924         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
13925
13926 2009-01-18  Bruno Haible  <bruno@clisp.org>
13927
13928         * lib/strftime.c (MEMPCPY): Remove unused macro.
13929         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
13930
13931 2009-01-18  Martin Lambers  <marlam@marlam.de>
13932
13933         New module 'link'.
13934         * lib/unistd.in.h (link): New declaration.
13935         * lib/link.c: New file.
13936         * m4/link.m4: New file.
13937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
13938         HAVE_LINK.
13939         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
13940         * modules/link: New file.
13941         * doc/posix-functions/link.texi: Mention the new module.
13942
13943 2009-01-18  Bruno Haible  <bruno@clisp.org>
13944
13945         * tests/test-avltree_list.c (main): Call set_program_name.
13946         * tests/test-avltree_oset.c (main): Likewise.
13947         * tests/test-obstack-printf.c: Include progname.h.
13948         (main): Call set_program_name.
13949         * tests/test-quotearg.c: Include progname.h.
13950         (main): Call set_program_name.
13951         * tests/test-xmemdup0.c: Include progname.h.
13952         (main): Call set_program_name.
13953
13954 2009-01-18  Bruno Haible  <bruno@clisp.org>
13955
13956         New module 'alphasort'.
13957         * lib/dirent.in.h (alphasort): New declaration.
13958         * lib/alphasort.c: New file, from glibc with modifications.
13959         * m4/alphasort.m4: New file.
13960         * modules/alphasort: New file.
13961         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
13962         HAVE_ALPHASORT.
13963         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
13964         HAVE_ALPHASORT.
13965         * doc/posix-functions/alphasort.texi: Mention the new module and the
13966         portability problems.
13967
13968 2009-01-18  Bruno Haible  <bruno@clisp.org>
13969
13970         New module 'scandir'.
13971         * lib/dirent.in.h (scandir): New declaration.
13972         * lib/scandir.c: New file, from glibc with modifications.
13973         * m4/scandir.m4: New file.
13974         * modules/scandir: New file.
13975         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
13976         HAVE_SCANDIR.
13977         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
13978         HAVE_SCANDIR.
13979         * doc/posix-functions/scandir.texi: Mention the new module and the
13980         portability problems.
13981
13982 2009-01-17  Bruno Haible  <bruno@clisp.org>
13983
13984         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
13985         Update documentation.
13986         (func_remove_suffix): Escape all dots in the suffix. Update
13987         documentation.
13988         (func_filter_filelist): Update documentation.
13989         Reported by Ralf Wildenhues.
13990
13991 2009-01-17  Bruno Haible  <bruno@clisp.org>
13992
13993         * modules/dprintf-posix-tests: New file.
13994         * tests/test-dprintf-posix.sh: New file.
13995         * tests/test-dprintf-posix.c: New file.
13996
13997         New modules 'dprintf', 'dprintf-posix'.
13998         * lib/stdio.in.h (dprintf): New declaration.
13999         * lib/dprintf.c: New file.
14000         * m4/dprintf.m4: New file.
14001         * m4/dprintf-posix.m4: New file.
14002         * modules/dprintf: New file.
14003         * modules/dprintf-posix: New file.
14004         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
14005         HAVE_DPRINTF, REPLACE_DPRINTF.
14006         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
14007         HAVE_DPRINTF, REPLACE_DPRINTF.
14008         * doc/posix-functions/dprintf.texi: Mention the new modules.
14009
14010 2009-01-17  Bruno Haible  <bruno@clisp.org>
14011
14012         * modules/vdprintf-posix-tests: New file.
14013         * tests/test-vdprintf-posix.sh: New file.
14014         * tests/test-vdprintf-posix.c: New file.
14015
14016         New modules 'vdprintf', 'vdprintf-posix'.
14017         * lib/stdio.in.h (vdprintf): New declaration.
14018         * lib/vdprintf.c: New file.
14019         * m4/vdprintf.m4: New file.
14020         * m4/vdprintf-posix.m4: New file.
14021         * modules/vdprintf: New file.
14022         * modules/vdprintf-posix: New file.
14023         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
14024         HAVE_VDPRINTF, REPLACE_VDPRINTF.
14025         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
14026         HAVE_VDPRINTF, REPLACE_VDPRINTF.
14027         * doc/posix-functions/vdprintf.texi: Mention the new modules.
14028
14029 2009-01-17  Bruno Haible  <bruno@clisp.org>
14030
14031         Fix replacement of fopen on mingw.
14032         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
14033         mingw.
14034
14035 2009-01-17  Bruno Haible  <bruno@clisp.org>
14036
14037         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
14038         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
14039
14040 2009-01-17  Bruno Haible  <bruno@clisp.org>
14041
14042         Avoid test-fflush2.sh failure on mingw.
14043         * tests/test-fflush2.c: Include binary-io.h.
14044         (main): Put standard input into binary mode.
14045         * modules/fflush-tests (Depends-on): Add binary-io.
14046
14047 2009-01-17  Bruno Haible  <bruno@clisp.org>
14048
14049         * lib/wchar.in.h: In another particular situation, include only the
14050         system's <wchar.h> file.
14051         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
14052         Reported by Albert Chin-A-Young <china@thewrittenword.com>
14053         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
14054
14055 2009-01-17  Bruno Haible  <bruno@clisp.org>
14056
14057         Support for stripping executables in --enable-relocatable.
14058         * build-aux/install-reloc: Expect one more argument, or an environment
14059         variable RELOC_STRIP_PROG. If set, strip the destination program and
14060         its wrapper.
14061         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
14062         RELOC_STRIP_PROG.
14063         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
14064         to set RELOCATABLE_STRIP.
14065         * NEWS: Mention the new Makefile requirement.
14066
14067 2009-01-17  Bruno Haible  <bruno@clisp.org>
14068
14069         * build-aux/install-reloc: Remove debugging information left over by
14070         C compiler on MacOS X.
14071
14072 2009-01-17  Bruno Haible  <bruno@clisp.org>
14073
14074         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
14075         * lib/progreloc.c (find_executable): Fix type of pointer passed to
14076         _NSGetExecutablePath.
14077
14078 2009-01-16  Jim Meyering  <meyering@redhat.com>
14079
14080         strerror: avoid warnings about discarding "const"
14081         * lib/strerror.c (rpl_strerror): Instead of returning a const
14082         string from each and every "case", use a variable, and add a single
14083         cast after the switch.
14084
14085 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
14086
14087         * lib/arpa_inet.in.h: Add extern "C" block for C++.
14088
14089 2009-01-16  Bruno Haible  <bruno@clisp.org>
14090
14091         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
14092         array initializer syntax that also works in C++ mode.
14093         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14094
14095 2009-01-16  Jim Meyering  <meyering@redhat.com>
14096
14097         poll: suppress a warning
14098         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
14099         to ignore "...unsigned expression < 0 is always false" warnings.
14100
14101 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
14102
14103         poll: remove declarations of unused variables
14104         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
14105         sockbuf and optlen.
14106
14107 2009-01-15  Bruno Haible  <bruno@clisp.org>
14108
14109         Make fflush-after-ungetc POSIX compliant on BSD systems.
14110         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
14111         (clear_ungetc_buffer): Implement also for other systems.
14112         (rpl_fflush): On glibc systems, invoke
14113         clear_ungetc_buffer_preserving_position. Otherwise, invoke
14114         clear_ungetc_buffer after fetching the stream's position, not before.
14115
14116 2009-01-15  Bruno Haible  <bruno@clisp.org>
14117
14118         Make fflush-after-ungetc POSIX compliant on glibc systems.
14119         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
14120         after ungetc.
14121         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
14122         (rpl_fflush): On glibc systems, simply call the system's fflush
14123         function after clearing the ungetc buffer.
14124         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
14125         Instead, lseek only to the end of file, then use the system's fseeko
14126         for the rest. On glibc systems, reset the EOF indicator bit.
14127
14128 2009-01-15  Jim Meyering  <meyering@redhat.com>
14129
14130         openmp.m4: revert quote-adding change, for portability to older autoconf
14131         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
14132         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
14133         Simon Josefsson noticed the problem when using autoconf-2.61.
14134
14135 2009-01-15  Bruno Haible  <bruno@clisp.org>
14136
14137         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
14138         * tests/test-fflush2.c (ASSERT): Always fail.
14139         (main): Add two tests for fflush() after ungetc(), taking into account
14140         the Austin Group's clarification.
14141         Suggested by Eric Blake.
14142
14143 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
14144
14145         mktime.m4: remove K&R-style function prototypes
14146         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
14147         for the Sun C++ compiler.
14148
14149 2009-01-14  Bruno Haible  <bruno@clisp.org>
14150
14151         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
14152         while including <wchar.h>.
14153         * lib/wchar.in.h: In two particular situations on HP-UX, include only
14154         the system's <wchar.h> file.
14155         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14156
14157 2009-01-14  Bruno Haible  <bruno@clisp.org>
14158
14159         * m4/csharp.m4: Don't mention gettext on the serial number line.
14160         * m4/csharpexec.m4: Likewise.
14161         * m4/eaccess.m4: Likewise.
14162         * m4/javaexec.m4: Likewise.
14163         * m4/sig_atomic_t.m4: Likewise.
14164         * m4/tmpdir.m4: Likewise.
14165         * m4/intldir.m4: Bump gettext version.
14166         * m4/lib-ld.m4: Likewise.
14167
14168 2009-01-14  Bruno Haible  <bruno@clisp.org>
14169
14170         * lib/progname.c (set_program_name): Add more comments.
14171         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
14172
14173 2009-01-14  Simon Josefsson  <simon@josefsson.org>
14174
14175         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
14176         were sys/stat.h does not define it.
14177
14178 2009-01-14  Jim Meyering  <meyering@redhat.com>
14179
14180         many *.m4 files: improve m4 quoting
14181         99% of this change was performed by running the following commands:
14182         git ls-files | grep '\.m4$' | xargs perl -pi \
14183           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
14184           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
14185           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
14186           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
14187         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
14188         The remainder were to add Copyright dates, increment serial numbers,
14189         undo some changes in comments, exclude m4/intl.m4, and add quotes
14190         around the "1" in ",1" where the unusual spacing prohibited the
14191         above regexps from doing the job.  For more details, see
14192         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
14193         * m4/acl.m4: Modified.
14194         * m4/afs.m4: Likewise.
14195         * m4/alloca.m4: Likewise.
14196         * m4/argp.m4: Likewise.
14197         * m4/argz.m4: Likewise.
14198         * m4/atexit.m4: Likewise.
14199         * m4/bison-i18n.m4: Likewise.
14200         * m4/bison.m4: Likewise.
14201         * m4/byteswap.m4: Likewise.
14202         * m4/c-stack.m4: Likewise.
14203         * m4/c-strtod.m4: Likewise.
14204         * m4/calloc.m4: Likewise.
14205         * m4/canonicalize-lgpl.m4: Likewise.
14206         * m4/chown.m4: Likewise.
14207         * m4/clock_time.m4: Likewise.
14208         * m4/codeset.m4: Likewise.
14209         * m4/copy-file.m4: Likewise.
14210         * m4/csharp.m4: Likewise.
14211         * m4/csharpcomp.m4: Likewise.
14212         * m4/csharpexec.m4: Likewise.
14213         * m4/d-ino.m4: Likewise.
14214         * m4/d-type.m4: Likewise.
14215         * m4/dirfd.m4: Likewise.
14216         * m4/double-slash-root.m4: Likewise.
14217         * m4/eaccess.m4: Likewise.
14218         * m4/eealloc.m4: Likewise.
14219         * m4/environ.m4: Likewise.
14220         * m4/errno_h.m4: Likewise.
14221         * m4/euidaccess.m4: Likewise.
14222         * m4/execute.m4: Likewise.
14223         * m4/fatal-signal.m4: Likewise.
14224         * m4/fchdir.m4: Likewise.
14225         * m4/fcntl_h.m4: Likewise.
14226         * m4/fileblocks.m4: Likewise.
14227         * m4/filenamecat.m4: Likewise.
14228         * m4/findprog.m4: Likewise.
14229         * m4/flexmember.m4: Likewise.
14230         * m4/fnmatch.m4: Likewise.
14231         * m4/fopen.m4: Likewise.
14232         * m4/fpending.m4: Likewise.
14233         * m4/fprintf-posix.m4: Likewise.
14234         * m4/free.m4: Likewise.
14235         * m4/frexp.m4: Likewise.
14236         * m4/frexpl.m4: Likewise.
14237         * m4/fsusage.m4: Likewise.
14238         * m4/ftruncate.m4: Likewise.
14239         * m4/gc-camellia.m4: Likewise.
14240         * m4/gc-random.m4: Likewise.
14241         * m4/gc.m4: Likewise.
14242         * m4/getaddrinfo.m4: Likewise.
14243         * m4/getcwd-abort-bug.m4: Likewise.
14244         * m4/getcwd-path-max.m4: Likewise.
14245         * m4/getdate.m4: Likewise.
14246         * m4/getdomainname.m4: Likewise.
14247         * m4/getgroups.m4: Likewise.
14248         * m4/gethostname.m4: Likewise.
14249         * m4/gethrxtime.m4: Likewise.
14250         * m4/getline.m4: Likewise.
14251         * m4/getloadavg.m4: Likewise.
14252         * m4/getndelim2.m4: Likewise.
14253         * m4/getpass.m4: Likewise.
14254         * m4/gettext.m4: Likewise.
14255         * m4/gettime.m4: Likewise.
14256         * m4/gettimeofday.m4: Likewise.
14257         * m4/gnulib-common.m4: Likewise.
14258         * m4/group-member.m4: Likewise.
14259         * m4/host-os.m4: Likewise.
14260         * m4/iconv.m4: Likewise.
14261         * m4/iconv_open.m4: Likewise.
14262         * m4/inet_ntop.m4: Likewise.
14263         * m4/inet_pton.m4: Likewise.
14264         * m4/inline.m4: Likewise.
14265         * m4/intldir.m4: Likewise.
14266         * m4/intlmacosx.m4: Likewise.
14267         * m4/intmax.m4: Likewise.
14268         * m4/intmax_t.m4: Likewise.
14269         * m4/inttypes.m4: Likewise.
14270         * m4/inttypes_h.m4: Likewise.
14271         * m4/inttypes-pri.m4: Likewise.
14272         * m4/isapipe.m4: Likewise.
14273         * m4/isnand.m4: Likewise.
14274         * m4/isnanf.m4: Likewise.
14275         * m4/isnanl.m4: Likewise.
14276         * m4/javacomp.m4: Likewise.
14277         * m4/javaexec.m4: Likewise.
14278         * m4/jm-winsz1.m4: Likewise.
14279         * m4/jm-winsz2.m4: Likewise.
14280         * m4/lchown.m4: Likewise.
14281         * m4/lcmessage.m4: Likewise.
14282         * m4/ldexpl.m4: Likewise.
14283         * m4/lib-ld.m4: Likewise.
14284         * m4/lib-link.m4: Likewise.
14285         * m4/libsigsegv.m4: Likewise.
14286         * m4/link-follow.m4: Likewise.
14287         * m4/localcharset.m4: Likewise.
14288         * m4/locale-fr.m4: Likewise.
14289         * m4/locale-ja.m4: Likewise.
14290         * m4/locale-tr.m4: Likewise.
14291         * m4/locale-zh.m4: Likewise.
14292         * m4/lock.m4: Likewise.
14293         * m4/longlong.m4: Likewise.
14294         * m4/ls-mntd-fs.m4: Likewise.
14295         * m4/lstat.m4: Likewise.
14296         * m4/malloc.m4: Likewise.
14297         * m4/mathl.m4: Likewise.
14298         * m4/mbrtowc.m4: Likewise.
14299         * m4/mbstate_t.m4: Likewise.
14300         * m4/mbswidth.m4: Likewise.
14301         * m4/memchr.m4: Likewise.
14302         * m4/memcmp.m4: Likewise.
14303         * m4/memcpy.m4: Likewise.
14304         * m4/memmem.m4: Likewise.
14305         * m4/memmove.m4: Likewise.
14306         * m4/mempcpy.m4: Likewise.
14307         * m4/memrchr.m4: Likewise.
14308         * m4/memset.m4: Likewise.
14309         * m4/minmax.m4: Likewise.
14310         * m4/mkdir-slash.m4: Likewise.
14311         * m4/mkdtemp.m4: Likewise.
14312         * m4/mktime.m4: Likewise.
14313         * m4/mmap-anon.m4: Likewise.
14314         * m4/mountlist.m4: Likewise.
14315         * m4/nanosleep.m4: Likewise.
14316         * m4/nls.m4: Likewise.
14317         * m4/nocrash.m4: Likewise.
14318         * m4/open.m4: Likewise.
14319         * m4/openat.m4: Likewise.
14320         * m4/openmp.m4: Likewise.
14321         * m4/pathmax.m4: Likewise.
14322         * m4/perl.m4: Likewise.
14323         * m4/physmem.m4: Likewise.
14324         * m4/pipe.m4: Likewise.
14325         * m4/po.m4: Likewise.
14326         * m4/poll.m4: Likewise.
14327         * m4/posixtm.m4: Likewise.
14328         * m4/posixver.m4: Likewise.
14329         * m4/printf-frexp.m4: Likewise.
14330         * m4/printf-frexpl.m4: Likewise.
14331         * m4/printf-posix.m4: Likewise.
14332         * m4/printf-posix-rpl.m4: Likewise.
14333         * m4/printf.m4: Likewise.
14334         * m4/progtest.m4: Likewise.
14335         * m4/putenv.m4: Likewise.
14336         * m4/readline.m4: Likewise.
14337         * m4/readlink.m4: Likewise.
14338         * m4/readutmp.m4: Likewise.
14339         * m4/realloc.m4: Likewise.
14340         * m4/regex.m4: Likewise.
14341         * m4/relocatable.m4: Likewise.
14342         * m4/relocatable-lib.m4: Likewise.
14343         * m4/rename-dest-slash.m4: Likewise.
14344         * m4/rename.m4: Likewise.
14345         * m4/rmdir-errno.m4: Likewise.
14346         * m4/rmdir.m4: Likewise.
14347         * m4/roundf.m4: Likewise.
14348         * m4/roundl.m4: Likewise.
14349         * m4/rpmatch.m4: Likewise.
14350         * m4/save-cwd.m4: Likewise.
14351         * m4/selinux-selinux-h.m4: Likewise.
14352         * m4/setenv.m4: Likewise.
14353         * m4/settime.m4: Likewise.
14354         * m4/sig2str.m4: Likewise.
14355         * m4/sig_atomic_t.m4: Likewise.
14356         * m4/signalblocking.m4: Likewise.
14357         * m4/signbit.m4: Likewise.
14358         * m4/sigpipe.m4: Likewise.
14359         * m4/sockets.m4: Likewise.
14360         * m4/sockpfaf.m4: Likewise.
14361         * m4/st_dm_mode.m4: Likewise.
14362         * m4/stat-time.m4: Likewise.
14363         * m4/stdbool.m4: Likewise.
14364         * m4/stdint.m4: Likewise.
14365         * m4/stdint_h.m4: Likewise.
14366         * m4/stpcpy.m4: Likewise.
14367         * m4/stpncpy.m4: Likewise.
14368         * m4/strcase.m4: Likewise.
14369         * m4/strchrnul.m4: Likewise.
14370         * m4/strcspn.m4: Likewise.
14371         * m4/strdup.m4: Likewise.
14372         * m4/strftime.m4: Likewise.
14373         * m4/strndup.m4: Likewise.
14374         * m4/strnlen.m4: Likewise.
14375         * m4/strpbrk.m4: Likewise.
14376         * m4/strptime.m4: Likewise.
14377         * m4/strsep.m4: Likewise.
14378         * m4/strtod.m4: Likewise.
14379         * m4/strtoimax.m4: Likewise.
14380         * m4/strtok_r.m4: Likewise.
14381         * m4/strtol.m4: Likewise.
14382         * m4/strtoll.m4: Likewise.
14383         * m4/strtoul.m4: Likewise.
14384         * m4/strtoull.m4: Likewise.
14385         * m4/strtoumax.m4: Likewise.
14386         * m4/strverscmp.m4: Likewise.
14387         * m4/threadlib.m4: Likewise.
14388         * m4/timegm.m4: Likewise.
14389         * m4/tm_gmtoff.m4: Likewise.
14390         * m4/tmpdir.m4: Likewise.
14391         * m4/tmpfile.m4: Likewise.
14392         * m4/tzset.m4: Likewise.
14393         * m4/uintmax_t.m4: Likewise.
14394         * m4/unlinkdir.m4: Likewise.
14395         * m4/unlocked-io.m4: Likewise.
14396         * m4/uptime.m4: Likewise.
14397         * m4/userspec.m4: Likewise.
14398         * m4/utimbuf.m4: Likewise.
14399         * m4/utime.m4: Likewise.
14400         * m4/utimes-null.m4: Likewise.
14401         * m4/utimes.m4: Likewise.
14402         * m4/vararrays.m4: Likewise.
14403         * m4/vasnprintf.m4: Likewise.
14404         * m4/vfprintf-posix.m4: Likewise.
14405         * m4/vprintf-posix.m4: Likewise.
14406         * m4/wait-process.m4: Likewise.
14407         * m4/wchar_t.m4: Likewise.
14408         * m4/wint_t.m4: Likewise.
14409         * m4/write-any-file.m4: Likewise.
14410         * m4/yield.m4: Likewise.
14411
14412 2009-01-13  Bruno Haible  <bruno@clisp.org>
14413
14414         Avoid test-copy-file.sh failures when ACL support insufficient.
14415         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
14416         TESTS_ENVIRONMENT.
14417         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
14418         Reported by Jim Meyering.
14419
14420 2009-01-13  Bruno Haible  <bruno@clisp.org>
14421
14422         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
14423         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
14424         * modules/unistdio/u8-printf-parse (Files): Likewise.
14425         * modules/unistdio/u32-printf-parse (Files): Likewise.
14426         * modules/unistdio/ulc-printf-parse (Files): Likewise.
14427
14428 2009-01-13  Simon Josefsson  <simon@josefsson.org>
14429
14430         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
14431         and m4/inttypes_h.m4 too.
14432
14433 2009-01-12  Eric Blake  <ebb9@byu.net>
14434
14435         tests: IRIX 6.2 cc can't compile -0.0 into .data
14436         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
14437         rather than at compile-time.
14438         * tests/test-floorl.c (minus_zero): Likewise.
14439         * tests/test-frexpl.c (minus_zero): Likewise.
14440         * tests/test-isnan.c (minus_zerol): Likewise.
14441         * tests/test-isnanl.h (minus_zero): Likewise.
14442         * tests/test-ldexpl.c (minus_zero): Likewise.
14443         * tests/test-roundl.c (minus_zero): Likewise.
14444         * tests/test-signbit.c (minus_zerol): Likewise.
14445         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
14446         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
14447         * tests/test-truncl.c (minus_zero): Likewise.
14448         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
14449         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
14450         Reported by Tom G. Christensen and Nelson H. F. Beebe.
14451
14452 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
14453
14454         regex: fix glibc bug 9697
14455         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
14456         handling.
14457
14458 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
14459
14460         regex: fix glibc bug 697
14461         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
14462         being NULL also if there are no backreferences.
14463
14464 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
14465
14466         regex: merge glibc changes
14467         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
14468         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
14469         re_string_skip_chars, re_string_reconstruct): Likewise.
14470         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
14471
14472 2009-01-07  Jim Meyering  <meyering@redhat.com>
14473
14474         poll: filter through cppi
14475         * lib/poll.c: Indent cpp directives to reflect nesting.
14476
14477 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
14478
14479         poll: don't return uninitialized
14480         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
14481
14482 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
14483
14484         avoid compile failure on AIX 6.1
14485         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
14486         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
14487
14488 2009-01-04  Jim Meyering  <meyering@redhat.com>
14489
14490         remove duplicate inclusion of <stdio.h>
14491         * tests/test-fprintf-posix.c: Likewise.
14492         * tests/test-printf-posix.c: Likewise.
14493         * tests/test-snprintf-posix.c: Likewise.
14494         * tests/test-sprintf-posix.c: Likewise.
14495         * tests/test-vasprintf-posix.c: Likewise.
14496         * tests/test-vfprintf-posix.c: Likewise.
14497         * tests/test-vprintf-posix.c: Likewise.
14498         * tests/test-vsnprintf-posix.c: Likewise.
14499         * tests/test-vsprintf-posix.c: Likewise.
14500
14501 2009-01-03  Jim Meyering  <meyering@redhat.com>
14502
14503         gnulib-tool: fix sed-based filtering
14504         * gnulib-tool (func_filter_filelist): Remove extra backslash
14505         in sed_fff_filter definition.
14506
14507 2009-01-02  Jim Meyering  <meyering@redhat.com>
14508
14509         strftime: avoid compilation failure on Solaris 2.6
14510         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
14511         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
14512         Don't #define mbrlen or mbsinit, since now they're guaranteed to
14513         be available.  Reported by Tom G. Christensen.  Details in
14514         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
14515
14516 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14517             Bruno Haible  <bruno@clisp.org>
14518
14519         Speed up gnulib-tool by doing more string processing through shell
14520         built-ins.
14521         * gnulib-tool (fast_func_append): New variable.
14522         (func_remove_prefix, func_remove_suffix): New functions.
14523         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
14524         (func_filter_filelist): New function.
14525         (func_get_dependencies): Use func_remove_suffix instead of sed.
14526         (func_get_automake_snippet): Use func_filter_filelist instead of a
14527         subshell and sed invocation.
14528
14529 2009-01-01  Bruno Haible  <bruno@clisp.org>
14530
14531         Fix a security bug.
14532         * gnulib-tool (func_import, import, update): Don't allow the characters
14533         '"', '$', '`', '\' in macro arguments that become part of commands that
14534         are evaluated.
14535
14536 2009-01-01  Bruno Haible  <bruno@clisp.org>
14537
14538         * gnulib-tool (func_reset_sigpipe): Add more comments.
14539
14540 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14541
14542         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
14543         func_emit_tests_Makefile_am, func_import): Abort loops early if we
14544         already know the answer.
14545
14546 2009-01-01  Jim Meyering  <meyering@redhat.com>
14547
14548         * lib/version-etc.c (version_etc_va): Update copyright year.
14549
14550 2008-12-30  Bruno Haible  <bruno@clisp.org>
14551
14552         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
14553         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
14554         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
14555
14556 2008-12-29  Eric Blake  <ebb9@byu.net>
14557
14558         multiarch: avoid autoconf AC_REQUIRE bug
14559         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
14560         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
14561         2.63 and older.
14562         Reported by Bruno Haible, and analyzed in
14563         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
14564
14565 2008-12-29  Bruno Haible  <bruno@clisp.org>
14566
14567         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
14568         files in subdirectories correctly.
14569         Reported by Ralf Wildenhues.
14570
14571 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14572
14573         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
14574         rather than 'join FILE -', for Solaris join.
14575
14576 2008-12-29  Bruno Haible  <bruno@clisp.org>
14577
14578         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
14579         quoting.
14580         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
14581         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
14582         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
14583         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
14584         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14585         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
14586         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
14587         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
14588         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
14589         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
14590         * m4/nls.m4 (AM_NLS): Likewise.
14591         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
14592         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
14593         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
14594         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
14595         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
14596         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
14597         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
14598         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
14599         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
14600         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
14601         * m4/xsize.m4 (gl_XSIZE): Likewise.
14602         Suggested by Jim Meyering.
14603
14604 2008-11-17  Bruce Korb  <bkorb@gnu.org>
14605
14606         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
14607         * lib/parse-duration.c: use a switch instead of cascading if's.
14608
14609 2008-12-29  Eric Blake  <ebb9@byu.net>
14610
14611         wchar.h: supply WEOF on Irix 5.3
14612         * lib/wchar.in.h (wint_t): Also supply WEOF.
14613         * lib/wctype.in.h (wint_t): Likewise.
14614         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
14615         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
14616         Reported by Tom G. Christensen.
14617
14618 2008-12-26  Bruno Haible  <bruno@clisp.org>
14619
14620         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
14621         i486, i586, i686.
14622
14623 2008-12-26  Bruno Haible  <bruno@clisp.org>
14624
14625         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
14626
14627 2008-12-26  Bruno Haible  <bruno@clisp.org>
14628
14629         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
14630         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
14631         not __STDC_CONSTANT_MACROS.
14632         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
14633
14634 2008-12-25  Bruno Haible  <bruno@clisp.org>
14635
14636         Add support for universal builds to vasnprintf.
14637         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
14638         universal builds, guess no.
14639         * modules/vasnprintf-posix (Depends-on): Add multiarch.
14640         * modules/vasprintf-posix (Depends-on): Likewise.
14641         * modules/fprintf-posix (Depends-on): Likewise.
14642         * modules/vfprintf-posix (Depends-on): Likewise.
14643         * modules/snprintf-posix (Depends-on): Likewise.
14644         * modules/vsnprintf-posix (Depends-on): Likewise.
14645         * modules/sprintf-posix (Depends-on): Likewise.
14646         * modules/vsprintf-posix (Depends-on): Likewise.
14647         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
14648         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14649         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14650         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14651         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14652         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14653         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14654
14655         Add support for universal builds to <inttypes.h>.
14656         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
14657         _SCNu64_PREFIX): In Apple
14658         universal builds, define directly, using _LP64.
14659         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
14660         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
14661         * modules/inttypes (Depends-on): Add multiarch.
14662         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
14663
14664         Add support for universal builds to <stdint.h>.
14665         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
14666         universal builds, define directly, using _LP64.
14667         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
14668         Apple universal builds, don't test for the size and suffix of ptrdiff_t
14669         and size_t.
14670         * modules/stdint (Depends-on): Add multiarch.
14671         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
14672
14673         New module 'multiarch'.
14674         * modules/multiarch: New file.
14675         * m4/multiarch.m4: New file.
14676
14677 2008-12-25  Bruno Haible  <bruno@clisp.org>
14678
14679         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
14680
14681 2008-12-25  Bruno Haible  <bruno@clisp.org>
14682
14683         * modules/btowc (License): Relicense under LGPLv2+.
14684         * modules/mbsinit (License): Likewise.
14685         * modules/mbrtowc (License): Likewise.
14686         * modules/wcrtomb (License): Likewise.
14687         * modules/streq (License): Likewise.
14688         Reported by David Lutterkort <lutter@redhat.com>.
14689
14690 2008-12-23  Bruno Haible  <bruno@clisp.org>
14691
14692         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
14693
14694 2008-12-23  Bruno Haible  <bruno@clisp.org>
14695
14696         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
14697         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
14698         GETADDRINFO_LIB, not in LIBS.
14699         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
14700         * modules/canon-host (Link): Likewise.
14701         * NEWS: Mention the change.
14702         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
14703         GETADDRINFO_LIB.
14704
14705 2008-12-22  Bruno Haible  <bruno@clisp.org>
14706
14707         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
14708         * doc/posix-functions/iswalpha_l.texi: Likewise.
14709         * doc/posix-functions/iswblank_l.texi: Likewise.
14710         * doc/posix-functions/iswcntrl_l.texi: Likewise.
14711         * doc/posix-functions/iswctype_l.texi: Likewise.
14712         * doc/posix-functions/iswdigit_l.texi: Likewise.
14713         * doc/posix-functions/iswgraph_l.texi: Likewise.
14714         * doc/posix-functions/iswlower_l.texi: Likewise.
14715         * doc/posix-functions/iswprint_l.texi: Likewise.
14716         * doc/posix-functions/iswpunct_l.texi: Likewise.
14717         * doc/posix-functions/iswspace_l.texi: Likewise.
14718         * doc/posix-functions/iswupper_l.texi: Likewise.
14719         * doc/posix-functions/iswxdigit_l.texi: Likewise.
14720         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
14721         * doc/posix-functions/open_wmemstream.texi: Likewise.
14722         * doc/posix-functions/swscanf.texi: Likewise.
14723         * doc/posix-functions/towctrans_l.texi: Likewise.
14724         * doc/posix-functions/towlower.texi: Likewise.
14725         * doc/posix-functions/towlower_l.texi: Likewise.
14726         * doc/posix-functions/towupper.texi: Likewise.
14727         * doc/posix-functions/towupper_l.texi: Likewise.
14728         * doc/posix-functions/vfwprintf.texi: Likewise.
14729         * doc/posix-functions/vfwscanf.texi: Likewise.
14730         * doc/posix-functions/vswscanf.texi: Likewise.
14731         * doc/posix-functions/vwprintf.texi: Likewise.
14732         * doc/posix-functions/vwscanf.texi: Likewise.
14733         * doc/posix-functions/wcpcpy.texi: Likewise.
14734         * doc/posix-functions/wcpncpy.texi: Likewise.
14735         * doc/posix-functions/wcscasecmp.texi: Likewise.
14736         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
14737         * doc/posix-functions/wcscoll_l.texi: Likewise.
14738         * doc/posix-functions/wcsdup.texi: Likewise.
14739         * doc/posix-functions/wcsncasecmp.texi: Likewise.
14740         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
14741         * doc/posix-functions/wcsnlen.texi: Likewise.
14742         * doc/posix-functions/wcsnrtombs.texi: Likewise.
14743         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
14744         * doc/posix-functions/wctrans_l.texi: Likewise.
14745         * doc/posix-functions/wctype_l.texi: Likewise.
14746         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
14747         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
14748         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
14749         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
14750         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
14751         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
14752         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
14753         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
14754         * doc/glibc-functions/wcschrnul.texi: Likewise.
14755         * doc/glibc-functions/wcsftime_l.texi: Likewise.
14756         * doc/glibc-functions/wcstod_l.texi: Likewise.
14757         * doc/glibc-functions/wcstof_l.texi: Likewise.
14758         * doc/glibc-functions/wcstol_l.texi: Likewise.
14759         * doc/glibc-functions/wcstold_l.texi: Likewise.
14760         * doc/glibc-functions/wcstoll_l.texi: Likewise.
14761         * doc/glibc-functions/wcstoq.texi: Likewise.
14762         * doc/glibc-functions/wcstoul_l.texi: Likewise.
14763         * doc/glibc-functions/wcstoull_l.texi: Likewise.
14764         * doc/glibc-functions/wcstouq.texi: Likewise.
14765         * doc/glibc-functions/wmempcpy.texi: Likewise.
14766
14767 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
14768             Eric Blake  <ebb9@byu.net>
14769             Paolo Bonzini  <bonzini@gnu.org>
14770             Bruno Haible  <bruno@clisp.org>
14771
14772         Make c-stack work on Haiku.
14773         * lib/c-stack.c (SA_ONSTACK): Define fallback.
14774         (c_stack_action): Use SA_ONSTACK flag.
14775
14776 2008-12-22  Bruno Haible  <bruno@clisp.org>
14777
14778         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
14779
14780 2008-12-22  Bruno Haible  <bruno@clisp.org>
14781
14782         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
14783         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
14784         being overridden.
14785         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
14786         New macros.
14787         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
14788         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
14789         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
14790         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
14791
14792 2008-12-22  Bruno Haible  <bruno@clisp.org>
14793
14794         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
14795         from test code.
14796
14797 2008-12-22  Eric Blake  <ebb9@byu.net>
14798
14799         Avoid gcc warnings on cygwin.
14800         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
14801         Avoid unused variable.
14802         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
14803         Likewise.
14804
14805 2008-12-22  Bruno Haible  <bruno@clisp.org>
14806
14807         Remove HAVE_MBRTOWC conditionals.
14808         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
14809         (mbscasecmp): Assume mbrtowc function.
14810         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
14811         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
14812         * lib/mbschr.c: Include mbuiter.h unconditionally.
14813         (mbschr): Assume mbrtowc function.
14814         * lib/mbscspn.c: Include mbuiter.h unconditionally.
14815         (mbscspn): Assume mbrtowc function.
14816         * lib/mbslen.c: Include mbuiter.h unconditionally.
14817         (mbslen): Assume mbrtowc function.
14818         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
14819         (mbsncasecmp): Assume mbrtowc function.
14820         * lib/mbsnlen.c: Include mbiter.h unconditionally.
14821         (mbsnlen): Assume mbrtowc function.
14822         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
14823         (mbspbrk): Assume mbrtowc function.
14824         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
14825         (mbspcasecmp): Assume mbrtowc function.
14826         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
14827         (mbsrchr): Assume mbrtowc function.
14828         * lib/mbssep.c: Include mbuiter.h unconditionally.
14829         (mbssep): Assume mbrtowc function.
14830         * lib/mbsspn.c: Include mbuiter.h unconditionally.
14831         (mbsspn): Assume mbrtowc function.
14832         * lib/mbsstr.c: Include mbuiter.h unconditionally.
14833         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
14834         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
14835         (mbstok_r): Assume mbrtowc function.
14836         * lib/propername.c: Include mbuiter.h unconditionally.
14837         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
14838         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
14839         (trim2): Assume mbrtowc function.
14840         * lib/mbswidth.c (mbsinit): Remove fallback definition.
14841         (mbsnwidth): Assume mbrtowc function.
14842         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
14843         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
14844         fallback definitions.
14845         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
14846
14847 2008-12-22  Bruno Haible  <bruno@clisp.org>
14848
14849         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
14850
14851 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
14852
14853         * modules/regex: Request emulations for the mb*/wc* functions we need.
14854         * m4/regex.m4: Don't look for those functions here.
14855         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
14856
14857 2008-12-22  Bruno Haible  <bruno@clisp.org>
14858
14859         * modules/fnmatch (Depends-on): Remove duplicated dependency.
14860
14861 2008-12-21  Bruno Haible  <bruno@clisp.org>
14862
14863         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
14864         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
14865         (Include): Remove conditionalization.
14866         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
14867         (Include): Remove conditionalization.
14868         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
14869         (Include): Remove conditionalization.
14870         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
14871         * m4/mbfile.m4 (gl_MBFILE): Likewise.
14872         * NEWS: Mention the change.
14873         Reported by Alan Hourihane <alanh@fairlite.co.uk>
14874         via Sergey Poznyakoff <gray@gnu.org.ua>.
14875
14876 2008-12-21  Bruno Haible  <bruno@clisp.org>
14877
14878         * MODULES.html.sh (Extended multibyte and wide character utilities
14879         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
14880         wcrtomb, wcsrtombs.
14881         (Support for systems lacking POSIX:2008): Add accept, bind, close,
14882         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
14883         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
14884         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
14885
14886 2008-12-21  Bruno Haible  <bruno@clisp.org>
14887
14888         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
14889
14890 2008-12-21  Bruno Haible  <bruno@clisp.org>
14891
14892         * modules/wcsnrtombs-tests: New file.
14893         * tests/test-wcsnrtombs1.sh: New file.
14894         * tests/test-wcsnrtombs2.sh: New file.
14895         * tests/test-wcsnrtombs3.sh: New file.
14896         * tests/test-wcsnrtombs4.sh: New file.
14897         * tests/test-wcsnrtombs.c: New file.
14898
14899         New module 'wcsnrtombs'.
14900         * lib/wchar.in.h (wcsnrtombs): New declaration.
14901         * lib/wcsnrtombs.c: New file.
14902         * lib/wcsrtombs-state.c: New file.
14903         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
14904         (internal_state): Remove variable.
14905         * m4/wcsnrtombs.m4: New file.
14906         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
14907         compilation units.
14908         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
14909         HAVE_WCSNRTOMBS.
14910         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
14911         HAVE_WCSNRTOMBS.
14912         * modules/wcsnrtombs: New file.
14913         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
14914         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
14915
14916 2008-12-21  Bruno Haible  <bruno@clisp.org>
14917
14918         * modules/wcsrtombs-tests: New file.
14919         * tests/test-wcsrtombs1.sh: New file.
14920         * tests/test-wcsrtombs2.sh: New file.
14921         * tests/test-wcsrtombs3.sh: New file.
14922         * tests/test-wcsrtombs4.sh: New file.
14923         * tests/test-wcsrtombs.c: New file.
14924
14925         New module 'wcsrtombs'.
14926         * lib/wchar.in.h (wcsrtombs): New declaration.
14927         * lib/wcsrtombs.c: New file.
14928         * m4/wcsrtombs.m4: New file.
14929         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
14930         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
14931         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
14932         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
14933         * modules/wcsrtombs: New file.
14934         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
14935         bugs.
14936
14937 2008-12-21  Bruno Haible  <bruno@clisp.org>
14938
14939         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
14940         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
14941         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
14942         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
14943         if not correct.
14944         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
14945         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
14946         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
14947         m4/locale-zh.m4, m4/codeset.m4.
14948         * doc/posix-functions/wcrtomb.texi: Document the bug.
14949
14950 2008-12-21  Bruno Haible  <bruno@clisp.org>
14951
14952         Work around a btowc() bug on IRIX 6.5.
14953         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
14954         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
14955         REPLACE_WTOBC if not.
14956         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
14957         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
14958         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
14959
14960 2008-12-21  Bruno Haible  <bruno@clisp.org>
14961
14962         * modules/wcrtomb-tests: New file.
14963         * tests/test-wcrtomb.sh: New file.
14964         * tests/test-wcrtomb.c: New file.
14965
14966         New module 'wcrtomb'.
14967         * lib/wchar.in.h (wcrtomb): New declaration.
14968         * lib/wcrtomb.c: New file.
14969         * m4/wcrtomb.m4: New file.
14970         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
14971         HAVE_WCRTOMB.
14972         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
14973         HAVE_WCRTOMB.
14974         * modules/wcrtomb: New file.
14975         * doc/posix-functions/wcrtomb.texi: Mention the new module.
14976
14977 2008-12-21  Bruno Haible  <bruno@clisp.org>
14978
14979         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
14980         * modules/mbsrtowcs (Files): Likewise.
14981         * modules/wctob (Files): Likewise.
14982         * modules/c-strcase-tests (Files): Likewise.
14983         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
14984         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
14985         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
14986         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
14987         * modules/vasnprintf-posix-tests (Files): Likewise.
14988
14989 2008-12-21  William Pursell  <bill.pursell@gmail.com>
14990
14991         gitlog-to-changelog: pass all command-line arguments to git-log
14992         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
14993         it is sometimes convenient to filter the commits in various ways.
14994         gitlog-to-changelog only allows --since to specify a start date,
14995         but git-log itself supports many other filtering mechanisms.
14996         At the moment, I want to filter by branch name.  Rather than
14997         adding a --branch option to gitlog-to-changelog, it seems more
14998         flexible to simply pass all options directly to git-log and let
14999         git do the work.  Notice that this effectively makes --since a
15000         redundant option for gitlog-to-changelog, but removing it would
15001         require current usage to change since calls would then require
15002         an additional '--'.
15003
15004 2008-12-21  Bruno Haible  <bruno@clisp.org>
15005
15006         * modules/mbsnrtowcs-tests: New file.
15007         * tests/test-mbsnrtowcs1.sh: New file.
15008         * tests/test-mbsnrtowcs2.sh: New file.
15009         * tests/test-mbsnrtowcs3.sh: New file.
15010         * tests/test-mbsnrtowcs4.sh: New file.
15011         * tests/test-mbsnrtowcs.c: New file.
15012
15013         New module 'mbsnrtowcs'.
15014         * lib/wchar.in.h (mbsnrtowcs): New declaration.
15015         * lib/mbsnrtowcs.c: New file.
15016         * lib/mbsrtowcs-state.c: New file.
15017         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
15018         (internal_state): Remove variable.
15019         * m4/mbsnrtowcs.m4: New file.
15020         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
15021         compilation units.
15022         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
15023         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
15024         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
15025         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
15026         * modules/mbsnrtowcs: New file.
15027         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
15028         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
15029         portability problem.
15030
15031 2008-12-21  Bruno Haible  <bruno@clisp.org>
15032
15033         Work around mbsrtowcs bug.
15034         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
15035         (gl_FUNC_MBSRTOWCS): Invoke it.
15036         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
15037         m4/locale-zh.m4.
15038         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
15039
15040 2008-12-21  Bruno Haible  <bruno@clisp.org>
15041
15042         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
15043
15044 2008-12-21  Bruno Haible  <bruno@clisp.org>
15045
15046         Update doc for AIX.
15047         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
15048         16-bit wchar_t type.
15049         * doc/posix-functions/btowc.texi: Likewise.
15050         * doc/posix-functions/fgetwc.texi: Likewise.
15051         * doc/posix-functions/fgetws.texi: Likewise.
15052         * doc/posix-functions/fputwc.texi: Likewise.
15053         * doc/posix-functions/fputws.texi: Likewise.
15054         * doc/posix-functions/fwide.texi: Likewise.
15055         * doc/posix-functions/fwprintf.texi: Likewise.
15056         * doc/posix-functions/fwscanf.texi: Likewise.
15057         * doc/posix-functions/getwchar.texi: Likewise.
15058         * doc/posix-functions/getwc.texi: Likewise.
15059         * doc/posix-functions/iswalnum.texi: Likewise.
15060         * doc/posix-functions/iswalpha.texi: Likewise.
15061         * doc/posix-functions/iswblank.texi: Likewise.
15062         * doc/posix-functions/iswcntrl.texi: Likewise.
15063         * doc/posix-functions/iswctype.texi: Likewise.
15064         * doc/posix-functions/iswdigit.texi: Likewise.
15065         * doc/posix-functions/iswgraph.texi: Likewise.
15066         * doc/posix-functions/iswlower.texi: Likewise.
15067         * doc/posix-functions/iswprint.texi: Likewise.
15068         * doc/posix-functions/iswpunct.texi: Likewise.
15069         * doc/posix-functions/iswspace.texi: Likewise.
15070         * doc/posix-functions/iswupper.texi: Likewise.
15071         * doc/posix-functions/iswxdigit.texi: Likewise.
15072         * doc/posix-functions/mbrtowc.texi: Likewise.
15073         * doc/posix-functions/mbsrtowcs.texi: Likewise.
15074         * doc/posix-functions/mbstowcs.texi: Likewise.
15075         * doc/posix-functions/mbtowc.texi: Likewise.
15076         * doc/posix-functions/putwchar.texi: Likewise.
15077         * doc/posix-functions/putwc.texi: Likewise.
15078         * doc/posix-functions/swprintf.texi: Likewise.
15079         * doc/posix-functions/tolower.texi: Likewise.
15080         * doc/posix-functions/toupper.texi: Likewise.
15081         * doc/posix-functions/towctrans.texi: Likewise.
15082         * doc/posix-functions/ungetwc.texi: Likewise.
15083         * doc/posix-functions/vswprintf.texi: Likewise.
15084         * doc/posix-functions/wcrtomb.texi: Likewise.
15085         * doc/posix-functions/wcscat.texi: Likewise.
15086         * doc/posix-functions/wcschr.texi: Likewise.
15087         * doc/posix-functions/wcscmp.texi: Likewise.
15088         * doc/posix-functions/wcscoll.texi: Likewise.
15089         * doc/posix-functions/wcscpy.texi: Likewise.
15090         * doc/posix-functions/wcscspn.texi: Likewise.
15091         * doc/posix-functions/wcsftime.texi: Likewise.
15092         * doc/posix-functions/wcslen.texi: Likewise.
15093         * doc/posix-functions/wcsncat.texi: Likewise.
15094         * doc/posix-functions/wcsncmp.texi: Likewise.
15095         * doc/posix-functions/wcsncpy.texi: Likewise.
15096         * doc/posix-functions/wcspbrk.texi: Likewise.
15097         * doc/posix-functions/wcsrchr.texi: Likewise.
15098         * doc/posix-functions/wcsrtombs.texi: Likewise.
15099         * doc/posix-functions/wcsspn.texi: Likewise.
15100         * doc/posix-functions/wcsstr.texi: Likewise.
15101         * doc/posix-functions/wcstod.texi: Likewise.
15102         * doc/posix-functions/wcstof.texi: Likewise.
15103         * doc/posix-functions/wcstoimax.texi: Likewise.
15104         * doc/posix-functions/wcstok.texi: Likewise.
15105         * doc/posix-functions/wcstold.texi: Likewise.
15106         * doc/posix-functions/wcstoll.texi: Likewise.
15107         * doc/posix-functions/wcstol.texi: Likewise.
15108         * doc/posix-functions/wcstombs.texi: Likewise.
15109         * doc/posix-functions/wcstoull.texi: Likewise.
15110         * doc/posix-functions/wcstoul.texi: Likewise.
15111         * doc/posix-functions/wcstoumax.texi: Likewise.
15112         * doc/posix-functions/wcswidth.texi: Likewise.
15113         * doc/posix-functions/wcsxfrm.texi: Likewise.
15114         * doc/posix-functions/wctob.texi: Likewise.
15115         * doc/posix-functions/wctomb.texi: Likewise.
15116         * doc/posix-functions/wctrans.texi: Likewise.
15117         * doc/posix-functions/wctype.texi: Likewise.
15118         * doc/posix-functions/wcwidth.texi: Likewise.
15119         * doc/posix-functions/wmemchr.texi: Likewise.
15120         * doc/posix-functions/wmemcmp.texi: Likewise.
15121         * doc/posix-functions/wmemcpy.texi: Likewise.
15122         * doc/posix-functions/wmemmove.texi: Likewise.
15123         * doc/posix-functions/wmemset.texi: Likewise.
15124         * doc/posix-functions/wprintf.texi: Likewise.
15125         * doc/posix-functions/wscanf.texi: Likewise.
15126
15127 2008-12-21  Bruno Haible  <bruno@clisp.org>
15128
15129         Update doc for HP-UX 11.11.
15130         * doc/posix-functions/btowc.texi: Clarify that the function is missing
15131         in HP-UX version 11.00, not in all versions of HP-UX 11.
15132         * doc/posix-functions/fwide.texi: Likewise.
15133         * doc/posix-functions/fwprintf.texi: Likewise.
15134         * doc/posix-functions/fwscanf.texi: Likewise.
15135         * doc/posix-functions/inet_ntop.texi: Likewise.
15136         * doc/posix-functions/inet_pton.texi: Likewise.
15137         * doc/posix-functions/mbrlen.texi: Likewise.
15138         * doc/posix-functions/mbrtowc.texi: Likewise.
15139         * doc/posix-functions/mbsinit.texi: Likewise.
15140         * doc/posix-functions/mbsrtowcs.texi: Likewise.
15141         * doc/posix-functions/swprintf.texi: Likewise.
15142         * doc/posix-functions/swscanf.texi: Likewise.
15143         * doc/posix-functions/towctrans.texi: Likewise.
15144         * doc/posix-functions/vfwprintf.texi: Likewise.
15145         * doc/posix-functions/vswprintf.texi: Likewise.
15146         * doc/posix-functions/vwprintf.texi: Likewise.
15147         * doc/posix-functions/wcrtomb.texi: Likewise.
15148         * doc/posix-functions/wcsrtombs.texi: Likewise.
15149         * doc/posix-functions/wcsstr.texi: Likewise.
15150         * doc/posix-functions/wctob.texi: Likewise.
15151         * doc/posix-functions/wctrans.texi: Likewise.
15152         * doc/posix-functions/wmemchr.texi: Likewise.
15153         * doc/posix-functions/wmemcmp.texi: Likewise.
15154         * doc/posix-functions/wmemcpy.texi: Likewise.
15155         * doc/posix-functions/wmemmove.texi: Likewise.
15156         * doc/posix-functions/wmemset.texi: Likewise.
15157         * doc/posix-functions/wprintf.texi: Likewise.
15158         * doc/posix-functions/wscanf.texi: Likewise.
15159
15160 2008-12-21  Bruno Haible  <bruno@clisp.org>
15161
15162         Work around a portability problem.
15163         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
15164         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
15165
15166 2008-12-20  Bruno Haible  <bruno@clisp.org>
15167
15168         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
15169         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
15170         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
15171         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
15172         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
15173
15174         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
15175         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
15176         set.
15177         (GNULIB_defined_mbstate_t): New macro.
15178         (mbsinit): Redefine if REPLACE_MBSINIT is set.
15179         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
15180         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
15181         reuses the system's mbrtowc function but works around the bugs.
15182         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
15183         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
15184         macros.
15185         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
15186         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
15187         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
15188         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
15189         REPLACE_MBSINIT if mbsinit needs to be overridden.
15190         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
15191         REPLACE_MBSINIT, REPLACE_MBRTOWC.
15192         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
15193         REPLACE_MBSINIT, REPLACE_MBRTOWC.
15194         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
15195         m4/locale-zh.m4.
15196         (Depends): Add mbsinit.
15197         * modules/mbsinit (Depends): Add mbrtowc.
15198         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
15199
15200 2008-12-20  Bruno Haible  <bruno@clisp.org>
15201
15202         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
15203         so that there are no conversion errors on AIX.
15204         * tests/test-mbsrtowcs.c (main): LIkewise.
15205
15206 2008-12-20  Bruno Haible  <bruno@clisp.org>
15207
15208         Work around wctob bug on Solaris <= 9.
15209         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
15210         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
15211         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
15212         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
15213         * modules/wctob (Files): Add m4/locale-fr.m4.
15214         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
15215
15216 2008-12-20  Bruno Haible  <bruno@clisp.org>
15217
15218         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
15219         /dev/null.
15220         * tests/test-select-in.sh: Likewise.
15221         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15222
15223 2008-12-20  Bruno Haible  <bruno@clisp.org>
15224
15225         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
15226         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
15227         Cygwin 1.5.x.
15228
15229 2008-12-20  Bruno Haible  <bruno@clisp.org>
15230
15231         Ensure mbstate_t is defined on HP-UX 11.11.
15232         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
15233         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
15234         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
15235         AC_USE_SYSTEM_EXTENSIONS.
15236         * modules/fnmatch (Depends-on): Add extensions.
15237         * modules/mbrlen (Depends-on): Likewise.
15238         * modules/mbrtowc (Depends-on): Likewise.
15239         * modules/mbsinit (Depends-on): Likewise.
15240         * modules/mbsrtowcs (Depends-on): Likewise.
15241         * modules/mbswidth (Depends-on): Likewise.
15242         * modules/quotearg (Depends-on): Likewise.
15243         * modules/strftime (Depends-on): Likewise.
15244
15245 2008-12-20  Bruno Haible  <bruno@clisp.org>
15246
15247         Ensure wctob is declared on IRIX 6.5.
15248         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
15249         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
15250         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
15251         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
15252         of HAVE_WCTOB.
15253         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
15254         HAVE_WCTOB.
15255         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
15256
15257 2008-12-19  Bruno Haible  <bruno@clisp.org>
15258
15259         * modules/mbsrtowcs-tests: New file.
15260         * tests/test-mbsrtowcs1.sh: New file.
15261         * tests/test-mbsrtowcs2.sh: New file.
15262         * tests/test-mbsrtowcs3.sh: New file.
15263         * tests/test-mbsrtowcs4.sh: New file.
15264         * tests/test-mbsrtowcs.c: New file.
15265
15266         New module 'mbsrtowcs'.
15267         * lib/wchar.in.h (mbsrtowcs): New declaration.
15268         * lib/mbsrtowcs.c: New file.
15269         * m4/mbsrtowcs.m4: New file.
15270         * modules/mbsrtowcs: New file.
15271         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
15272         HAVE_MBSRTOWCS.
15273         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
15274         HAVE_MBSRTOWCS.
15275         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
15276
15277 2008-12-19  Bruno Haible  <bruno@clisp.org>
15278
15279         New module 'mbrlen'.
15280         * lib/wchar.in.h (mbrlen): New declaration.
15281         * lib/mbrlen.c: New file.
15282         * m4/mbrlen.m4: New file.
15283         * modules/mbrlen: New file.
15284         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
15285         HAVE_MBRLEN.
15286         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
15287         HAVE_MBRLEN.
15288         * doc/posix-functions/mbrlen.texi: Document the new module.
15289
15290 2008-12-19  Bruno Haible  <bruno@clisp.org>
15291
15292         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
15293         * modules/mbrtowc (Depends-on): Add verify.
15294         Suggested by Paul Eggert.
15295
15296 2008-12-18  Bruno Haible  <bruno@clisp.org>
15297
15298         * modules/mbsinit-tests: New file.
15299         * tests/test-mbsinit.sh: New file.
15300         * tests/test-mbsinit.c: New file.
15301
15302 2008-12-18  Bruno Haible  <bruno@clisp.org>
15303
15304         * modules/mbrtowc-tests: New file.
15305         * tests/test-mbrtowc1.sh: New file.
15306         * tests/test-mbrtowc2.sh: New file.
15307         * tests/test-mbrtowc3.sh: New file.
15308         * tests/test-mbrtowc4.sh: New file.
15309         * tests/test-mbrtowc.c: New file.
15310
15311         New module 'mbrtowc'.
15312         * lib/wchar.in.h (mbstate_t): Override when the system does not have
15313         mbsinit and mbrtowc.
15314         (mbrtowc): New declaration.
15315         * lib/mbrtowc.c: New file.
15316         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
15317         * modules/mbrtowc: New file.
15318         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
15319         HAVE_MBRTOWC.
15320         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
15321         HAVE_MBRTOWC.
15322         * doc/posix-functions/mbrtowc.texi: Document the new module.
15323
15324 2008-12-18  Bruno Haible  <bruno@clisp.org>
15325
15326         New module 'wctob'.
15327         * lib/wchar.in.h (wctob): New declaration.
15328         * lib/wctob.c: New file.
15329         * m4/wctob.m4: New file.
15330         * modules/wctob: New file.
15331         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
15332         HAVE_WCTOB.
15333         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
15334         * doc/posix-functions/wctob.texi: Document the new module.
15335
15336 2008-12-18  Bruno Haible  <bruno@clisp.org>
15337
15338         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
15339         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
15340
15341 2008-12-18  Simon Josefsson  <simon@josefsson.org>
15342
15343         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
15344         G. Christensen" <tgc@jupiterrise.com>.
15345
15346         * lib/flock.c: Need to include errno.h.  Reported by "Tom
15347         G. Christensen" <tgc@jupiterrise.com>.
15348
15349         * lib/flock.c: Need to include string.h.  Reported by "Tom
15350         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
15351         <ebb9@byu.net>.
15352
15353 2008-12-18  Bruno Haible  <bruno@clisp.org>
15354
15355         * m4/locale-ja.m4: New file, from GNU gettext.
15356
15357 2008-12-17  Bruno Haible  <bruno@clisp.org>
15358
15359         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
15360         Suggested by Eric Blake.
15361
15362 2008-12-17  Bruno Haible  <bruno@clisp.org>
15363
15364         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
15365
15366 2008-12-17  Bruno Haible  <bruno@clisp.org>
15367
15368         * lib/mbsinit.c: Include verify.h. Verify an assumption.
15369         * modules/mbsinit (Depends-on): Add verify.
15370         Suggested by Paul Eggert.
15371
15372 2008-12-17  Bruno Haible  <bruno@clisp.org>
15373
15374         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
15375         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
15376         gl_FUNC_MBRTOWC.
15377         * m4/mbiter.m4 (gl_MBITER): LIkewise.
15378         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
15379         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
15380         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
15381         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
15382         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
15383         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
15384         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
15385         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
15386         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
15387         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
15388         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
15389         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
15390         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
15391         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
15392         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15393         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
15394         * modules/trim (configure.ac): Likewise.
15395
15396 2008-12-17  Bruno Haible  <bruno@clisp.org>
15397
15398         * modules/btowc-tests: New file.
15399         * tests/test-btowc1.sh: New file.
15400         * tests/test-btowc2.sh: New file.
15401         * tests/test-btowc.c: New file.
15402
15403         New module 'btowc'.
15404         * lib/wchar.in.h (btowc): New declaration.
15405         * lib/btowc.c: New file.
15406         * m4/btowc.m4: New file.
15407         * modules/btowc: New file.
15408         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
15409         HAVE_BTOWC.
15410         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
15411         * doc/posix-functions/btowc.texi: Document the new module.
15412
15413 2008-12-17  Bruno Haible  <bruno@clisp.org>
15414
15415         New module 'mbsinit'.
15416         * lib/wchar.in.h (mbsinit): New declaration.
15417         * lib/mbsinit.c: New file.
15418         * m4/mbsinit.m4: New file.
15419         * modules/mbsinit: New file.
15420         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
15421         HAVE_MBSINIT.
15422         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
15423         HAVE_MBSINIT.
15424         * doc/posix-functions/mbsinit.texi: Document the new module.
15425
15426 2008-12-16  Bruno Haible  <bruno@clisp.org>
15427
15428         * lib/unistd.in.h: Add comment.
15429         * tests/test-environ.c: Don't include <stdlib.h>.
15430
15431 2008-12-16  Bruno Haible  <bruno@clisp.org>
15432
15433         * lib/parse-duration.h (parse_duration): Document return value
15434         convention.
15435         * lib/parse-duration.c: Include specification header first. Add
15436         comments.
15437         (_): Remove macro.
15438         (parse_year_month_day, parse_hour_minute_second): Move side effects
15439         outside of strchr call.
15440         (parse_non_iso8601): Move side effects outside of isspace call.
15441         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
15442         call.
15443
15444 2008-12-16  Bruno Haible  <bruno@clisp.org>
15445
15446         * tests/test-parse-duration.sh: Produce no output when the test
15447         succeeds.
15448
15449 2008-12-16  Bruno Haible  <bruno@clisp.org>
15450
15451         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
15452         expressions.
15453
15454 2008-12-15  Bruno Haible  <bruno@clisp.org>
15455
15456         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
15457         * doc/glibc-functions/flistxattr.texi: Likewise.
15458         * doc/glibc-functions/fopencookie.texi: Likewise.
15459         * doc/glibc-functions/fremovexattr.texi: Likewise.
15460         * doc/glibc-functions/fsetxattr.texi: Likewise.
15461         * doc/glibc-functions/getxattr.texi: Likewise.
15462         * doc/glibc-functions/lgetxattr.texi: Likewise.
15463         * doc/glibc-functions/listxattr.texi: Likewise.
15464         * doc/glibc-functions/llistxattr.texi: Likewise.
15465         * doc/glibc-functions/lremovexattr.texi: Likewise.
15466         * doc/glibc-functions/lsetxattr.texi: Likewise.
15467         * doc/glibc-functions/removexattr.texi: Likewise.
15468         * doc/glibc-functions/setxattr.texi: Likewise.
15469         * doc/posix-functions/open_memstream.texi: Likewise.
15470
15471 2008-12-15  Eric Blake  <ebb9@byu.net>
15472
15473         Update doc for cygwin 1.7.
15474         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
15475         functions.
15476         * doc/posix-functions/fchmodat.texi: Likewise.
15477         * doc/posix-functions/fchownat.texi: Likewise.
15478         * doc/posix-functions/fdopendir.texi: Likewise.
15479         * doc/posix-functions/fmemopen.texi: Likewise.
15480         * doc/posix-functions/freeaddrinfo.texi: Likewise.
15481         * doc/posix-functions/fstatat.texi: Likewise.
15482         * doc/posix-functions/futimens.texi: Likewise.
15483         * doc/posix-functions/gai_strerror.texi: Likewise.
15484         * doc/posix-functions/getaddrinfo.texi: Likewise.
15485         * doc/posix-functions/getnameinfo.texi: Likewise.
15486         * doc/posix-functions/if_freenameindex.texi: Likewise.
15487         * doc/posix-functions/if_indextoname.texi: Likewise.
15488         * doc/posix-functions/if_nameindex.texi: Likewise.
15489         * doc/posix-functions/if_nametoindex.texi: Likewise.
15490         * doc/posix-functions/insque.texi: Likewise.
15491         * doc/posix-functions/linkat.texi: Likewise.
15492         * doc/posix-functions/llrint.texi: Likewise.
15493         * doc/posix-functions/llrintf.texi: Likewise.
15494         * doc/posix-functions/llrintl.texi: Likewise.
15495         * doc/posix-functions/lockf.texi: Likewise.
15496         * doc/posix-functions/lrintl.texi: Likewise.
15497         * doc/posix-functions/mkdirat.texi: Likewise.
15498         * doc/posix-functions/mkfifoat.texi: Likewise.
15499         * doc/posix-functions/mknodat.texi: Likewise.
15500         * doc/posix-functions/mq_close.texi: Likewise.
15501         * doc/posix-functions/mq_getattr.texi: Likewise.
15502         * doc/posix-functions/mq_notify.texi: Likewise.
15503         * doc/posix-functions/mq_open.texi: Likewise.
15504         * doc/posix-functions/mq_receive.texi: Likewise.
15505         * doc/posix-functions/mq_send.texi: Likewise.
15506         * doc/posix-functions/mq_setattr.texi: Likewise.
15507         * doc/posix-functions/mq_timedreceive.texi: Likewise.
15508         * doc/posix-functions/mq_timedsend.texi: Likewise.
15509         * doc/posix-functions/mq_unlink.texi: Likewise.
15510         * doc/posix-functions/open_memstream.texi: Likewise.
15511         * doc/posix-functions/openat.texi: Likewise.
15512         * doc/posix-functions/posix_fadvise.texi: Likewise.
15513         * doc/posix-functions/posix_fallocate.texi: Likewise.
15514         * doc/posix-functions/posix_madvise.texi: Likewise.
15515         * doc/posix-functions/posix_memalign.texi: Likewise.
15516         * doc/posix-functions/posix_openpt.texi: Likewise.
15517         * doc/posix-functions/readlinkat.texi: Likewise.
15518         * doc/posix-functions/remque.texi: Likewise.
15519         * doc/posix-functions/renameat.texi: Likewise.
15520         * doc/posix-functions/rintl.texi: Likewise.
15521         * doc/posix-functions/sem_unlink.texi: Likewise.
15522         * doc/posix-functions/shm_open.texi: Likewise.
15523         * doc/posix-functions/shm_unlink.texi: Likewise.
15524         * doc/posix-functions/signgam.texi: Likewise.
15525         * doc/posix-functions/sigset.texi: Likewise.
15526         * doc/posix-functions/stpcpy.texi: Likewise.
15527         * doc/posix-functions/stpncpy.texi: Likewise.
15528         * doc/posix-functions/strerror.texi: Likewise.
15529         * doc/posix-functions/strtod.texi: Likewise.
15530         * doc/posix-functions/symlinkat.texi: Likewise.
15531         * doc/posix-functions/unlinkat.texi: Likewise.
15532         * doc/posix-functions/utimensat.texi: Likewise.
15533         * doc/glibc-functions/bindresvport.texi: Likewise.
15534         * doc/glibc-functions/dn_expand.texi: Likewise.
15535         * doc/glibc-functions/exp10.texi: Likewise.
15536         * doc/glibc-functions/exp10f.texi: Likewise.
15537         * doc/glibc-functions/fgetxattr.texi: Likewise.
15538         * doc/glibc-functions/flistxattr.texi: Likewise.
15539         * doc/glibc-functions/fopencookie.texi: Likewise.
15540         * doc/glibc-functions/freeifaddrs.texi: Likewise.
15541         * doc/glibc-functions/fremovexattr.texi: Likewise.
15542         * doc/glibc-functions/fsetxattr.texi: Likewise.
15543         * doc/glibc-functions/getifaddrs.texi: Likewise.
15544         * doc/glibc-functions/getxattr.texi: Likewise.
15545         * doc/glibc-functions/lgetxattr.texi: Likewise.
15546         * doc/glibc-functions/listxattr.texi: Likewise.
15547         * doc/glibc-functions/llistxattr.texi: Likewise.
15548         * doc/glibc-functions/lremovexattr.texi: Likewise.
15549         * doc/glibc-functions/lsetxattr.texi: Likewise.
15550         * doc/glibc-functions/pow10.texi: Likewise.
15551         * doc/glibc-functions/pow10f.texi: Likewise.
15552         * doc/glibc-functions/rcmd_af.texi: Likewise.
15553         * doc/glibc-functions/removexattr.texi: Likewise.
15554         * doc/glibc-functions/res_init.texi: Likewise.
15555         * doc/glibc-functions/res_mkquery.texi: Likewise.
15556         * doc/glibc-functions/res_query.texi: Likewise.
15557         * doc/glibc-functions/res_querydomain.texi: Likewise.
15558         * doc/glibc-functions/res_send.texi: Likewise.
15559         * doc/glibc-functions/rresvport_af.texi: Likewise.
15560         * doc/glibc-functions/setxattr.texi: Likewise.
15561         * doc/glibc-functions/strcasestr.texi: Likewise.
15562
15563 2008-12-15  Bruno Haible  <bruno@clisp.org>
15564
15565         Fix compilation error on OSF/1 4.0.
15566         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
15567         <sys/time.h>, simply delegate to the system header.
15568         Reported by Daniel Richard G. <oss@teragram.com>.
15569
15570 2008-12-15  Bruno Haible  <bruno@clisp.org>
15571
15572         * doc/posix-functions/openat.texi: Mention the 'openat' module.
15573         * doc/posix-functions/fchmodat.texi: Likewise.
15574         * doc/posix-functions/fchownat.texi: Likewise.
15575         * doc/posix-functions/fdopendir.texi: Likewise.
15576         * doc/posix-functions/fstatat.texi: Likewise.
15577         * doc/posix-functions/mkdirat.texi: Likewise.
15578         * doc/posix-functions/unlinkat.texi: Likewise.
15579
15580 2008-12-14  Bruno Haible  <bruno@clisp.org>
15581
15582         Update doc for POSIX:2008.
15583         * doc/posix-functions/faccessat.texi: New file.
15584         * doc/posix-functions/fchmodat.texi: New file.
15585         * doc/posix-functions/fchownat.texi: New file.
15586         * doc/posix-functions/fdopendir.texi: New file.
15587         * doc/posix-functions/fstatat.texi: New file.
15588         * doc/posix-functions/futimens.texi: New file.
15589         * doc/posix-functions/linkat.texi: New file.
15590         * doc/posix-functions/mkdirat.texi: New file.
15591         * doc/posix-functions/mkfifoat.texi: New file.
15592         * doc/posix-functions/mknodat.texi: New file.
15593         * doc/posix-functions/open_wmemstream.texi: New file.
15594         * doc/posix-functions/openat.texi: New file.
15595         * doc/posix-functions/psiginfo.texi: New file.
15596         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
15597         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
15598         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
15599         * doc/posix-functions/readlinkat.texi: New file.
15600         * doc/posix-functions/renameat.texi: New file.
15601         * doc/posix-functions/strerror_l.texi: New file.
15602         * doc/posix-functions/symlinkat.texi: New file.
15603         * doc/posix-functions/unlinkat.texi: New file.
15604         * doc/posix-functions/utimensat.texi: New file.
15605         * doc/gnulib.texi (Function Substitutes): Add these subsections.
15606
15607 2008-12-14  Bruno Haible  <bruno@clisp.org>
15608
15609         Update doc for POSIX:2008.
15610         * doc/posix-functions/alphasort.texi: Renamed from
15611         doc/glibc-functions/alphasort.texi.
15612         * doc/posix-functions/dirfd.texi: Renamed from
15613         doc/glibc-functions/dirfd.texi.
15614         * doc/posix-functions/dprintf.texi: Renamed from
15615         doc/glibc-functions/dprintf.texi.
15616         * doc/posix-functions/duplocale.texi: Renamed from
15617         doc/glibc-functions/duplocale.texi.
15618         * doc/posix-functions/fexecve.texi: Renamed from
15619         doc/glibc-functions/fexecve.texi.
15620         * doc/posix-functions/fmemopen.texi: Renamed from
15621         doc/glibc-functions/fmemopen.texi.
15622         * doc/posix-functions/freelocale.texi: Renamed from
15623         doc/glibc-functions/freelocale.texi.
15624         * doc/posix-functions/getdate_err.texi: Renamed from
15625         doc/glibc-functions/getdate_err.texi.
15626         * doc/posix-functions/isalnum_l.texi: Renamed from
15627         doc/glibc-functions/isalnum_l.texi.
15628         * doc/posix-functions/isalpha_l.texi: Renamed from
15629         doc/glibc-functions/isalpha_l.texi.
15630         * doc/posix-functions/isblank_l.texi: Renamed from
15631         doc/glibc-functions/isblank_l.texi.
15632         * doc/posix-functions/iscntrl_l.texi: Renamed from
15633         doc/glibc-functions/iscntrl_l.texi.
15634         * doc/posix-functions/isdigit_l.texi: Renamed from
15635         doc/glibc-functions/isdigit_l.texi.
15636         * doc/posix-functions/isgraph_l.texi: Renamed from
15637         doc/glibc-functions/isgraph_l.texi.
15638         * doc/posix-functions/islower_l.texi: Renamed from
15639         doc/glibc-functions/islower_l.texi.
15640         * doc/posix-functions/isprint_l.texi: Renamed from
15641         doc/glibc-functions/isprint_l.texi.
15642         * doc/posix-functions/ispunct_l.texi: Renamed from
15643         doc/glibc-functions/ispunct_l.texi.
15644         * doc/posix-functions/isspace_l.texi: Renamed from
15645         doc/glibc-functions/isspace_l.texi.
15646         * doc/posix-functions/isupper_l.texi: Renamed from
15647         doc/glibc-functions/isupper_l.texi.
15648         * doc/posix-functions/iswalnum_l.texi: Renamed from
15649         doc/glibc-functions/iswalnum_l.texi.
15650         * doc/posix-functions/iswalpha_l.texi: Renamed from
15651         doc/glibc-functions/iswalpha_l.texi.
15652         * doc/posix-functions/iswblank_l.texi: Renamed from
15653         doc/glibc-functions/iswblank_l.texi.
15654         * doc/posix-functions/iswcntrl_l.texi: Renamed from
15655         doc/glibc-functions/iswcntrl_l.texi.
15656         * doc/posix-functions/iswctype_l.texi: Renamed from
15657         doc/glibc-functions/iswctype_l.texi.
15658         * doc/posix-functions/iswdigit_l.texi: Renamed from
15659         doc/glibc-functions/iswdigit_l.texi.
15660         * doc/posix-functions/iswgraph_l.texi: Renamed from
15661         doc/glibc-functions/iswgraph_l.texi.
15662         * doc/posix-functions/iswlower_l.texi: Renamed from
15663         doc/glibc-functions/iswlower_l.texi.
15664         * doc/posix-functions/iswprint_l.texi: Renamed from
15665         doc/glibc-functions/iswprint_l.texi.
15666         * doc/posix-functions/iswpunct_l.texi: Renamed from
15667         doc/glibc-functions/iswpunct_l.texi.
15668         * doc/posix-functions/iswspace_l.texi: Renamed from
15669         doc/glibc-functions/iswspace_l.texi.
15670         * doc/posix-functions/iswupper_l.texi: Renamed from
15671         doc/glibc-functions/iswupper_l.texi.
15672         * doc/posix-functions/iswxdigit_l.texi: Renamed from
15673         doc/glibc-functions/iswxdigit_l.texi.
15674         * doc/posix-functions/isxdigit_l.texi: Renamed from
15675         doc/glibc-functions/isxdigit_l.texi.
15676         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
15677         doc/glibc-functions/mbsnrtowcs.texi.
15678         * doc/posix-functions/mkdtemp.texi: Renamed from
15679         doc/glibc-functions/mkdtemp.texi.
15680         * doc/posix-functions/newlocale.texi: Renamed from
15681         doc/glibc-functions/newlocale.texi.
15682         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
15683         doc/glibc-functions/nl_langinfo_l.texi.
15684         * doc/posix-functions/open_memstream.texi: Renamed from
15685         doc/glibc-functions/open_memstream.texi.
15686         * doc/posix-functions/opterr.texi: Renamed from
15687         doc/glibc-functions/opterr.texi.
15688         * doc/posix-functions/optind.texi: Renamed from
15689         doc/glibc-functions/optind.texi.
15690         * doc/posix-functions/optopt.texi: Renamed from
15691         doc/glibc-functions/optopt.texi.
15692         * doc/posix-functions/psignal.texi: Renamed from
15693         doc/glibc-functions/psignal.texi.
15694         * doc/posix-functions/scandir.texi: Renamed from
15695         doc/glibc-functions/scandir.texi.
15696         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
15697         doc/glibc-functions/sched_get_priority_min.texi.
15698         * doc/posix-functions/signgam.texi: Renamed from
15699         doc/glibc-functions/signgam.texi.
15700         * doc/posix-functions/stpcpy.texi: Renamed from
15701         doc/glibc-functions/stpcpy.texi.
15702         * doc/posix-functions/stpncpy.texi: Renamed from
15703         doc/glibc-functions/stpncpy.texi.
15704         * doc/posix-functions/strcasecmp_l.texi: Renamed from
15705         doc/glibc-functions/strcasecmp_l.texi.
15706         * doc/posix-functions/strcoll_l.texi: Renamed from
15707         doc/glibc-functions/strcoll_l.texi.
15708         * doc/posix-functions/strfmon_l.texi: Renamed from
15709         doc/glibc-functions/strfmon_l.texi.
15710         * doc/posix-functions/strftime_l.texi: Renamed from
15711         doc/glibc-functions/strftime_l.texi.
15712         * doc/posix-functions/strncasecmp_l.texi: Renamed from
15713         doc/glibc-functions/strncasecmp_l.texi.
15714         * doc/posix-functions/strndup.texi: Renamed from
15715         doc/glibc-functions/strndup.texi.
15716         * doc/posix-functions/strnlen.texi: Renamed from
15717         doc/glibc-functions/strnlen.texi.
15718         * doc/posix-functions/strsignal.texi: Renamed from
15719         doc/glibc-functions/strsignal.texi.
15720         * doc/posix-functions/strxfrm_l.texi: Renamed from
15721         doc/glibc-functions/strxfrm_l.texi.
15722         * doc/posix-functions/timer_gettime.texi: Renamed from
15723         doc/glibc-functions/timer_gettime.texi.
15724         * doc/posix-functions/tolower_l.texi: Renamed from
15725         doc/glibc-functions/tolower_l.texi.
15726         * doc/posix-functions/toupper_l.texi: Renamed from
15727         doc/glibc-functions/toupper_l.texi.
15728         * doc/posix-functions/towctrans_l.texi: Renamed from
15729         doc/glibc-functions/towctrans_l.texi.
15730         * doc/posix-functions/towlower_l.texi: Renamed from
15731         doc/glibc-functions/towlower_l.texi.
15732         * doc/posix-functions/towupper_l.texi: Renamed from
15733         doc/glibc-functions/towupper_l.texi.
15734         * doc/posix-functions/uselocale.texi: Renamed from
15735         doc/glibc-functions/uselocale.texi.
15736         * doc/posix-functions/vdprintf.texi: Renamed from
15737         doc/glibc-functions/vdprintf.texi.
15738         * doc/posix-functions/wcpcpy.texi:
15739         Renamed from doc/glibc-functions/wcpcpy.texi.
15740         * doc/posix-functions/wcpncpy.texi: Renamed from
15741         doc/glibc-functions/wcpncpy.texi.
15742         * doc/posix-functions/wcscasecmp.texi: Renamed from
15743         doc/glibc-functions/wcscasecmp.texi.
15744         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
15745         doc/glibc-functions/wcscasecmp_l.texi.
15746         * doc/posix-functions/wcscoll_l.texi: Renamed from
15747         doc/glibc-functions/wcscoll_l.texi.
15748         * doc/posix-functions/wcsdup.texi: Renamed from
15749         doc/glibc-functions/wcsdup.texi.
15750         * doc/posix-functions/wcsncasecmp.texi: Renamed from
15751         doc/glibc-functions/wcsncasecmp.texi.
15752         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
15753         doc/glibc-functions/wcsncasecmp_l.texi.
15754         * doc/posix-functions/wcsnlen.texi: Renamed from
15755         doc/glibc-functions/wcsnlen.texi.
15756         * doc/posix-functions/wcsnrtombs.texi: Renamed from
15757         doc/glibc-functions/wcsnrtombs.texi.
15758         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
15759         doc/glibc-functions/wcsxfrm_l.texi.
15760         * doc/posix-functions/wctrans_l.texi: Renamed from
15761         doc/glibc-functions/wctrans_l.texi.
15762         * doc/posix-functions/wctype_l.texi: Renamed from
15763         doc/glibc-functions/wctype_l.texi.
15764         * doc/gnulib.texi (Function Substitutes): Add these subsections.
15765         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
15766         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
15767         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
15768         these subsections.
15769         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
15770         Remove sections.
15771
15772 2008-12-14  Bruno Haible  <bruno@clisp.org>
15773
15774         Update doc for POSIX:2008.
15775         * doc/posix-functions/*.texi: Update URL of POSIX specification.
15776
15777 2008-12-14  Bruno Haible  <bruno@clisp.org>
15778
15779         Update doc for POSIX:2008.
15780         * doc/pastposix-functions/bcmp.texi: Renamed from
15781         doc/posix-functions/bcmp.texi.
15782         * doc/pastposix-functions/bcopy.texi: Renamed from
15783         doc/posix-functions/bcopy.texi.
15784         * doc/pastposix-functions/bsd_signal.texi: Renamed from
15785         doc/posix-functions/bsd_signal.texi.
15786         * doc/pastposix-functions/bzero.texi: Renamed from
15787         doc/posix-functions/bzero.texi.
15788         * doc/pastposix-functions/ecvt.texi: Renamed from
15789         doc/posix-functions/ecvt.texi.
15790         * doc/pastposix-functions/fcvt.texi: Renamed from
15791         doc/posix-functions/fcvt.texi.
15792         * doc/pastposix-functions/ftime.texi: Renamed from
15793         doc/posix-functions/ftime.texi.
15794         * doc/pastposix-functions/gcvt.texi: Renamed from
15795         doc/posix-functions/gcvt.texi.
15796         * doc/pastposix-functions/getcontext.texi: Renamed from
15797         doc/posix-functions/getcontext.texi.
15798         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
15799         doc/posix-functions/gethostbyaddr.texi.
15800         * doc/pastposix-functions/gethostbyname.texi: Renamed from
15801         doc/posix-functions/gethostbyname.texi.
15802         * doc/pastposix-functions/getwd.texi: Renamed from
15803         doc/posix-functions/getwd.texi.
15804         * doc/pastposix-functions/h_errno.texi: Renamed from
15805         doc/posix-functions/h_errno.texi.
15806         * doc/pastposix-functions/index.texi: Renamed from
15807         doc/posix-functions/index.texi.
15808         * doc/pastposix-functions/makecontext.texi: Renamed from
15809         doc/posix-functions/makecontext.texi.
15810         * doc/pastposix-functions/mktemp.texi: Renamed from
15811         doc/posix-functions/mktemp.texi.
15812         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
15813         doc/posix-functions/pthread_attr_getstackaddr.texi.
15814         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
15815         doc/posix-functions/pthread_attr_setstackaddr.texi.
15816         * doc/pastposix-functions/rindex.texi: Renamed from
15817         doc/posix-functions/rindex.texi.
15818         * doc/pastposix-functions/scalb.texi: Renamed from
15819         doc/posix-functions/scalb.texi.
15820         * doc/pastposix-functions/setcontext.texi: Renamed from
15821         doc/posix-functions/setcontext.texi.
15822         * doc/pastposix-functions/swapcontext.texi: Renamed from
15823         doc/posix-functions/swapcontext.texi.
15824         * doc/pastposix-functions/ualarm.texi: Renamed from
15825         doc/posix-functions/ualarm.texi.
15826         * doc/pastposix-functions/usleep.texi: Renamed from
15827         doc/posix-functions/usleep.texi.
15828         * doc/pastposix-functions/vfork.texi: Renamed from
15829         doc/posix-functions/vfork.texi.
15830         * doc/pastposix-functions/wcswcs.texi: Renamed from
15831         doc/posix-functions/wcswcs.texi.
15832         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
15833         (Function Substitutes): Update.
15834
15835 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15836
15837         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
15838         m4/strerror.m4.
15839
15840 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15841             Bruno Haible  <bruno@clisp.org>
15842
15843         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
15844
15845 2008-12-13  Bruno Haible  <bruno@clisp.org>
15846
15847         * modules/strtoull (Depends-on): Remove unistd.
15848
15849 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15850
15851         * modules/strtoull (Depends-on): Add stdlib.
15852
15853 2008-12-11  Simon Josefsson  <simon@josefsson.org>
15854
15855         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
15856
15857 2008-12-10  Jim Meyering  <meyering@redhat.com>
15858
15859         gl_ASSERT: don't say assertions are disabled when they're not
15860         * m4/assert.m4 (gl_ASSERT): Do not make configure report
15861         "checking whether to enable assertions... no", when they are in
15862         fact enabled.  This is solely a bug in the output of configure.
15863         In spite of saying "no", NDEBUG was not defined in that case.
15864         Also, as noted by Eric Blake, leave assertions enabled upon
15865         --enable-assert=INVALID.
15866
15867 2008-12-10  Bruno Haible  <bruno@clisp.org>
15868
15869         Change MODULES.html to refer to POSIX:2008 where possible.
15870         * MODULES.html.sh (POSIX2008_URL): New variable.
15871         (posix_headers): Remove sys/timeb, ucontext.
15872         (posix2001_headers): New variable.
15873         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
15874         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
15875         index, makecontext, mktemp, pthread_attr_getstackaddr,
15876         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
15877         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
15878         (posix2001_functions): New variable.
15879         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
15880         otherwise.
15881
15882 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15883
15884         add missing include to parse-duration.c
15885         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
15886         * modules/parse-duration (Depends-on): Add xalloc.
15887
15888         fix sed script reading maint.mk
15889         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
15890         (syntax-check-rules): Use it.
15891
15892 2008-12-09  Bruno Haible  <bruno@clisp.org>
15893
15894         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
15895         MacOS X 10.4/PowerPC.
15896         Reported by Simon Josefsson.
15897
15898 2008-12-08  Jim Meyering  <meyering@redhat.com>
15899
15900         work around mingw's lack of some S_IF definitions
15901         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
15902         Reported by Simon Josefsson.
15903
15904 2008-12-08  Bruno Haible  <bruno@clisp.org>
15905
15906         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
15907         applied to variables. Needed on MacOS X 10.4/PowerPC.
15908         Reported by Simon Josefsson.
15909
15910 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
15911         and Eric Blake  <ebb9@byu.net>
15912
15913         assert: honor --enable-assert
15914         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
15915         order to honor --enable-assert, rather than treating it as a
15916         synonym for --disable-assert.
15917
15918 2008-12-08  Jim Meyering  <meyering@redhat.com>
15919
15920         * lib/posixtm.c: Remove now-useless declaration of mktime.
15921
15922         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
15923
15924 2008-12-07  Bruno Haible  <bruno@clisp.org>
15925
15926         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
15927         test_once): Mark functions as static.
15928         * tests/test-tls.c (test_tls): Likewise.
15929
15930 2008-12-07  Bruno Haible  <bruno@clisp.org>
15931
15932         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
15933         iconv_register_autodetect.
15934
15935 2008-12-07  Jim Meyering  <meyering@redhat.com>
15936
15937         posixtm.c: avoid a warning
15938         * lib/posixtm.c (posixtime): Don't initialize tm0.
15939         It's no longer needed to placate gcc4's -Wuninitialized,
15940         and the attempt to placate would elicit a new warning.
15941
15942         unicodeio.c: mark unused parameters
15943         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
15944         (fallback_failure_callback): Likewise.
15945
15946 2008-12-07  Bruno Haible  <bruno@clisp.org>
15947
15948         * gnulib-tool (func_create_testdir): When building the tests
15949         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
15950         Reported by Simon Josefsson.
15951
15952 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15953
15954         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
15955
15956 2008-12-06  Bruno Haible  <bruno@clisp.org>
15957
15958         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
15959         Suggested by Eric Blake.
15960
15961 2008-12-06  Bruno Haible  <bruno@clisp.org>
15962
15963         Fix a c-stack test failure on MacOS X.
15964         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
15965         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
15966         handler for SIGBUS as well.
15967         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
15968         install a signal handler for SIGBUS as well.
15969         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
15970
15971 2008-12-06  Bruno Haible  <bruno@clisp.org>
15972
15973         Advocacy documentation.
15974         * doc/gnulib-intro.texi (Benefits): New section.
15975         * doc/gnulib.texi: Update.
15976
15977 2008-12-06  Bruno Haible  <bruno@clisp.org>
15978
15979         Document the 'manywarnings' module.
15980         * doc/manywarnings.texi: New file.
15981         * doc/gnulib.texi: Include it.
15982
15983 2008-12-05  Eric Blake  <ebb9@byu.net>
15984
15985         tests: silence some gcc warnings
15986         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
15987         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
15988         type mismatches.
15989
15990 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15991             Bruno Haible  <bruno@clisp.org>
15992
15993         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
15994
15995 2008-11-29  Jim Meyering  <meyering@redhat.com>
15996
15997         unicodeio.c: mark unused parameters
15998         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
15999         (fallback_failure_callback): Likewise.
16000
16001         fts: fix a thinko
16002         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
16003         (set_stat_type): Return S_IF*-valued "type" directly.
16004         Prompted by James Youngman's spotting a related bug.
16005         Confirmed by further testing through find.
16006
16007         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
16008         * lib/fts.c (D_TYPE): Define.
16009         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
16010         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
16011         (s_ifmt_shift_bits): New function.
16012         (set_stat_type): New function.
16013         (fts_build): When not calling fts_stat, call set_stat_type
16014         to propagate dirent.d_type info to fts_read caller.
16015         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
16016         fts_statp->st_mode type information may be valid.
16017
16018 2008-11-28  Simon Josefsson  <simon@josefsson.org>
16019
16020         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
16021         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
16022         <sds@gnu.org>.
16023
16024 2008-11-20  Bruno Haible  <bruno@clisp.org>
16025
16026         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
16027         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
16028         INCLUDE_NEXT.
16029         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
16030         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
16031         * modules/math (Makefile.am): Substitute
16032         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
16033         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16034
16035 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
16036             Bruno Haible  <bruno@clisp.org>
16037
16038         * lib/stdint.in.h: Define all type macros so that their expansion is
16039         a single typedef'ed token. Fixes a compilation failure in Boost which
16040         does "using ::int8_t;".
16041
16042 2008-11-18  Simon Josefsson  <simon@josefsson.org>
16043
16044         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
16045         gl_MANYWARN_ALL_GCC.
16046         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
16047         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
16048         * modules/manywarnings: New file.
16049         * MODULES.html.sh: Mention manywarnings module.
16050
16051 2008-11-18  Bruno Haible  <bruno@clisp.org>
16052
16053         * doc/gnulib-tool.texi (Unit tests): New section.
16054
16055 2008-11-18  Simon Josefsson  <simon@josefsson.org>
16056
16057         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
16058         paths like 'lib/po/foo.po'.
16059
16060 2008-11-17  Simon Josefsson  <simon@josefsson.org>
16061
16062         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
16063         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
16064
16065 2008-11-17  Simon Josefsson  <simon@josefsson.org>
16066
16067         * m4/warnings.m4: Use CPPFLAGS to really check whether the
16068         parameter works.
16069
16070 2008-11-17  Simon Josefsson  <simon@josefsson.org>
16071
16072         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
16073
16074 2008-11-17  Bruce Korb  <bkorb@gnu.org>
16075
16076         * modules/parse-duration-tests: New file.
16077         * tests/test-parse-duration.sh: New file.
16078         * tests/test-parse-duration.c: New file.
16079
16080         New module 'parse-duration'.
16081         * lib/parse-duration.h: New file.
16082         * lib/parse-duration.c: New file.
16083         * modules/parse-duration: New file.
16084
16085 2008-11-17  Bruno Haible  <bruno@clisp.org>
16086
16087         * tests/test-select-out.sh: Comment out the first pipe test.
16088         Reported by Simon Josefsson.
16089
16090 2008-11-17  Bruno Haible  <bruno@clisp.org>
16091
16092         * modules/getaddrinfo (Depends-on): Add servent, hostent.
16093         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
16094         gl_HOSTENT.
16095
16096 2008-11-17  Bruno Haible  <bruno@clisp.org>
16097
16098         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
16099         -lnetwork and -lnet. Needed for Haiku and BeOS.
16100
16101 2008-11-16  Bruno Haible  <bruno@clisp.org>
16102
16103         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
16104
16105 2008-11-16  Bruno Haible  <bruno@clisp.org>
16106
16107         Avoid test failure on Haiku.
16108         * tests/test-fsync.c: Include <errno.h>.
16109         (main): Don't require that fsync (0) fails.
16110
16111 2008-11-15  Bruno Haible  <bruno@clisp.org>
16112
16113         New module 'hostent'.
16114         * modules/hostent: New file.
16115         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
16116
16117 2008-11-15  Bruno Haible  <bruno@clisp.org>
16118
16119         New module 'servent'.
16120         * modules/servent: New file.
16121         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
16122
16123 2008-11-15  Bruno Haible  <bruno@clisp.org>
16124
16125         Avoid generating same test program with two different rules.
16126         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
16127         test-frexp to test-frexp-nolibm.
16128         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
16129         test-frexpl to test-frexpl-nolibm.
16130
16131 2008-11-15  Bruno Haible  <bruno@clisp.org>
16132
16133         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
16134         $(FREXPL_LIBM).
16135
16136 2008-11-15  Bruno Haible  <bruno@clisp.org>
16137
16138         * lib/netdb.in.h: Activate the definitions also when the system's
16139         <netdb.h> has 'struct addrinfo'.
16140         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
16141         EAI_OVERFLOW or AI_NUMERICSERV.
16142         * doc/posix-headers/netdb.texi: Document the problem.
16143
16144 2008-11-15  Bruno Haible  <bruno@clisp.org>
16145
16146         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
16147
16148         Make the 'sched' module work on platforms where <sched.h> exists but
16149         is incomplete (such as Haiku).
16150         * lib/sched.in.h; Include the system's <sched.h> if it exists.
16151         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
16152         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
16153         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
16154         HAVE_STRUCT_SCHED_PARAM.
16155         * modules/sched (Depends-on): Add include_next.
16156         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
16157         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
16158         * doc/posix-headers/sched.texi: Document the issue.
16159
16160 2008-11-13  Jim Meyering  <meyering@redhat.com>
16161
16162         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
16163         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
16164         test would fail due to the difference in the Report bugs to ...
16165         line.  The expected address is empty, "<>", while the actual
16166         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
16167
16168 2008-11-12  Bruno Haible  <bruno@clisp.org>
16169
16170         lstat: don't compile lstat.c on systems lacking lstat
16171         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
16172         which don't have lstat; this is handled by lib/sys_stat.in.h already.
16173         Reported by Daniel P. Berrange via Jim Meyering.
16174
16175 2008-11-12  Jim Meyering  <meyering@redhat.com>
16176
16177         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
16178
16179 2008-11-12  Simon Josefsson  <simon@josefsson.org>
16180
16181         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
16182         instead.
16183
16184 2008-11-12  Bruno Haible  <bruno@clisp.org>
16185
16186         * lib/unicodeio.c: Include unistr.h.
16187         (utf8_wctomb): Remove function.
16188         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
16189
16190 2008-11-12  Simon Josefsson  <simon@josefsson.org>
16191
16192         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
16193         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
16194         <bruno@clisp.org>.
16195         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
16196
16197 2008-11-12  Simon Josefsson  <simon@josefsson.org>
16198
16199         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
16200         * doc/gnulib.texi: Add section for warnings.
16201
16202 2008-11-11  Bruno Haible  <bruno@clisp.org>
16203
16204         * lib/sockets.h: Add a comment.
16205
16206 2008-11-11  Karl Berry  <karl@gnu.org>
16207
16208         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
16209
16210 2008-11-11  Eric Blake  <ebb9@byu.net>
16211
16212         fdl.texi: avoid git symlinks
16213         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
16214
16215 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
16216
16217         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
16218
16219 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
16220
16221         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
16222         (gl_WARN_ADD): Substitute $2 if literal.
16223
16224 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
16225
16226         * m4/warning.m4: Remove.
16227
16228 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
16229
16230         * m4/warnings.m4: Almost complete rewrite. :-)
16231
16232 2008-11-10  Simon Josefsson  <simon@josefsson.org>
16233
16234         * modules/warnings: New module.
16235         * m4/warnings.m4: New file.
16236         * MODULES.html.sh: Mention warnings module.
16237         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
16238         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16239
16240 2008-11-10  Eric Blake  <ebb9@byu.net>
16241
16242         fdl.texi: make a symlink to the latest version
16243         * doc/standards.texi: Revert today's earlier change.
16244         * doc/fdl-1.2.texi: Rename from old fdl.texi...
16245         * doc/fdl.texi: ...and replace this with a symlink to the newer
16246         fdl-1.3.texi.
16247
16248 2008-11-10  Bruno Haible  <bruno@clisp.org>
16249
16250         * tests/test-select-fd.c (main): Accept the result file name as fourth
16251         argument.
16252         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
16253         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
16254
16255 2008-11-10  Bruno Haible  <bruno@clisp.org>
16256
16257         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
16258         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
16259         as autoconf-substituted macros.
16260         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
16261         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
16262         gl_NETDB_H_DEFAULTS. Set these variables.
16263         * modules/netdb (Makefile.am): Substitute these variables.
16264
16265 2008-11-10  Eric Blake  <ebb9@byu.net>
16266
16267         standards.texi: include correct file for FDL 1.3
16268         * doc/standards.texi (GNU Free Documentation License): Change
16269         include file to pull in FDL 1.3, not 1.2.
16270
16271         fdl.texi: revert accidental change to license
16272         * doc/fdl.texi: This is FDL 1.2, not 1.3.
16273
16274 2008-11-10  Bruno Haible  <bruno@clisp.org>
16275
16276         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
16277         cross-compiling guesses also when the native compile gives no result.
16278
16279 2008-11-10  Bruno Haible  <bruno@clisp.org>
16280
16281         * lib/spawni.c (__spawni): Force variable into the stack.
16282
16283 2008-11-10  Bruno Haible  <bruno@clisp.org>
16284
16285         Add support for Haiku.
16286         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
16287         glibc and BeOS, but also on Haiku.
16288         * lib/fpurge.c (fpurge): Likewise.
16289         * lib/freadable.c (freadable): Likewise.
16290         * lib/freadahead.c (freadahead): Likewise.
16291         * lib/freading.c (freading): Likewise.
16292         * lib/freadptr.c (freadptr): Likewise.
16293         * lib/freadseek.c (freadptrinc): Likewise.
16294         * lib/fseeko.c (rpl_fseeko): Likewise.
16295         * lib/fseterr.c (fseterr): Likewise.
16296         * lib/fwritable.c (fwritable): Likewise.
16297         * lib/fwriting.c (fwriting): Likewise.
16298         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
16299
16300 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
16301
16302         * lib/config.charset: Treat Haiku like BeOS.
16303
16304 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
16305
16306         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
16307         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
16308
16309 2008-11-08  Bruno Haible  <bruno@clisp.org>
16310
16311         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
16312         AC_CACHE_CHECK.
16313
16314 2008-11-08  Bruno Haible  <bruno@clisp.org>
16315
16316         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
16317
16318 2008-11-08  Bruno Haible  <bruno@clisp.org>
16319
16320         * tests/test-select-fd.c: New file.
16321         * tests/test-select-in.sh: New file.
16322         * tests/test-select-out.sh: New file.
16323         * tests/test-select-stdin.c: New file.
16324         * modules/select-tests (Files): Add the new files.
16325         (Depends-on): Add gettimeofday.
16326         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
16327         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
16328         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
16329
16330 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
16331             Bruno Haible  <bruno@clisp.org>
16332
16333         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
16334
16335 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
16336
16337         * build-aux/pmccabe2html: Added support for C++ source files.
16338
16339 2008-11-05  Ben Pfaff  <blp@gnu.org>
16340
16341         Fix lib/close.c build on Windows.
16342         * modules/close (Files): Add lib/w32sock.h.
16343
16344 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
16345
16346         Accept Bison's NEWS format.
16347         * build-aux/announce-gen (print_news_deltas): Tweak
16348         $re_prefix.
16349
16350 2008-11-04  Bruno Haible  <bruno@clisp.org>
16351
16352         * modules/random_r (Maintainer): Add glibc.
16353
16354 2008-11-04  Simon Josefsson  <simon@josefsson.org>
16355
16356         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
16357         by karl@freefriends.org (Karl Berry).
16358         * doc/alloca.texi: Likewise.
16359         * doc/c-ctype.texi: Likewise.
16360         * doc/c-strcase.texi: Likewise.
16361         * doc/c-strcaseeq.texi: Likewise.
16362         * doc/c-strcasestr.texi: Likewise.
16363         * doc/c-strstr.texi: Likewise.
16364         * doc/c-strtod.texi: Likewise.
16365         * doc/c-strtold.texi: Likewise.
16366         * doc/ctime.texi: Likewise.
16367         * doc/error.texi: Likewise.
16368         * doc/fdl.texi: Likewise.
16369         * doc/gcd.texi: Likewise.
16370         * doc/getdate.texi: Likewise.
16371         * doc/gnulib-intro.texi: Likewise.
16372         * doc/gnulib-tool.texi: Likewise.
16373         * doc/gnulib.texi: Likewise.
16374         * doc/inet_ntoa.texi: Likewise.
16375         * doc/maintain.texi: Likewise.
16376         * doc/make-stds.texi: Likewise.
16377         * doc/quote.texi: Likewise.
16378         * doc/regexprops-generic.texi: Likewise.
16379         * doc/standards.texi: Likewise.
16380         * doc/verify.texi: Likewise.
16381         * doc/visibility.texi: Likewise.
16382         * doc/gnulib.texi (GNU Free Documentation License): Include
16383         fdl-1.3.texi instead of fdl.texi.
16384
16385 2008-11-04  Simon Josefsson  <simon@josefsson.org>
16386
16387         * doc/fdl-1.3.texi: New file, from
16388         <http://www.gnu.org/licenses/fdl-1.3.texi>.
16389         * modules/fdl-1.3: Add.
16390         * MODULES.html.sh: Add fdl-1.3.
16391
16392 2008-11-03  Bruno Haible  <bruno@clisp.org>
16393
16394         Make determination of absolute name of header file work with AIX xlc.
16395         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
16396         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
16397         preprocessing.
16398         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
16399         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
16400
16401 2008-11-03  Simon Josefsson  <simon@josefsson.org>
16402
16403         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
16404         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
16405         <ludo@gnu.org>.
16406
16407 2008-11-02  Bruno Haible  <bruno@clisp.org>
16408
16409         Mark 'strpbrk' obsolete.
16410         * modules/strpbrk (Status, Notice): New sections.
16411         * modules/strtok_r (Depends-on): Add strpbrk.
16412
16413 2008-11-02  Bruno Haible  <bruno@clisp.org>
16414
16415         Mark 'strdup' obsolete.
16416         * modules/strdup (Status, Notice): New sections.
16417         * modules/findprog (Depends-on): Add strdup.
16418         * modules/getaddrinfo (Depends-on): Likewise.
16419         * modules/localename (Depends-on): Likewise.
16420         * modules/relocatable-lib (Depends-on): Likewise.
16421         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
16422         * modules/relocatable-prog (Depends-on): Likewise.
16423         * modules/trim (Depends-on): Likewise.
16424         * modules/unictype/gen-ctype (Depends-on): Likewise.
16425         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
16426
16427 2008-11-02  Bruno Haible  <bruno@clisp.org>
16428
16429         Mark 'strcspn' obsolete.
16430         * modules/strcspn (Status, Notice): New sections.
16431
16432 2008-11-02  Bruno Haible  <bruno@clisp.org>
16433
16434         Mark 'rmdir' obsolete.
16435         * modules/rmdir (Status, Notice): New sections.
16436         * modules/clean-temp (Depends-on): Add rmdir.
16437         * modules/openat (Depends-on): Likewise.
16438
16439 2008-11-02  Bruno Haible  <bruno@clisp.org>
16440
16441         Mark 'raise' obsolete.
16442         * modules/raise (Status, Notice): New sections.
16443         (Include): Specify <signal.h>.
16444         * modules/stdio (Depends-on): Add raise.
16445         * modules/write (Depends-on): Likewise.
16446
16447 2008-11-02  Bruno Haible  <bruno@clisp.org>
16448
16449         Mark 'memset' obsolete.
16450         * modules/memset (Status, Notice): New sections.
16451
16452 2008-11-02  Bruno Haible  <bruno@clisp.org>
16453
16454         Mark 'memmove' obsolete.
16455         * modules/memmove (Status, Notice): New sections.
16456         * modules/argp (Depends-on): Add memmove.
16457         * modules/argz (Depends-on): Likewise.
16458         * modules/canonicalize (Depends-on): Likewise.
16459         * modules/canonicalize-lgpl (Depends-on): Likewise.
16460         * modules/fts (Depends-on): Likewise.
16461         * modules/getcwd (Depends-on): Likewise.
16462         * modules/human (Depends-on): Likewise.
16463         * modules/regex (Depends-on): Likewise.
16464         * modules/striconveh (Depends-on): Likewise.
16465         * modules/trim (Depends-on): Likewise.
16466         * modules/unistr/u8-move (Depends-on): Likewise.
16467         * modules/unistr/u16-move (Depends-on): Likewise.
16468         * modules/unistr/u32-move (Depends-on): Likewise.
16469
16470 2008-11-02  Bruno Haible  <bruno@clisp.org>
16471
16472         Mark 'memcpy' obsolete.
16473         * modules/memcpy (Status, Notice): New sections.
16474
16475 2008-11-02  Bruno Haible  <bruno@clisp.org>
16476
16477         Mark 'memcmp' obsolete.
16478         * modules/memcmp (Status, Notice): New sections.
16479         * modules/argmatch (Depends-on): Add memchr.
16480         * modules/backupfile (Depends-on): Likewise.
16481         * modules/c-strcasestr (Depends-on): Likewise.
16482         * modules/crypto/des (Depends-on): Likewise.
16483         * modules/csharpcomp (Depends-on): Likewise.
16484         * modules/fnmatch (Depends-on): Likewise.
16485         * modules/git-merge-changelog (Depends-on): Likewise.
16486         * modules/isnand (Depends-on): Likewise.
16487         * modules/isnand-nolibm (Depends-on): Likewise.
16488         * modules/isnanf (Depends-on): Likewise.
16489         * modules/isnanf-nolibm (Depends-on): Likewise.
16490         * modules/isnanl (Depends-on): Likewise.
16491         * modules/isnanl-nolibm (Depends-on): Likewise.
16492         * modules/mbchar (Depends-on): Likewise.
16493         * modules/memcoll (Depends-on): Likewise.
16494         * modules/quotearg (Depends-on): Likewise.
16495         * modules/regex (Depends-on): Likewise.
16496         * modules/relocatable-prog (Depends-on): Likewise.
16497         * modules/same (Depends-on): Likewise.
16498         * modules/signbit (Depends-on): Likewise.
16499         * modules/strcasestr-simple (Depends-on): Likewise.
16500         * modules/unictype/gen-ctype (Depends-on): Likewise.
16501         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
16502         * modules/uniname/uniname (Depends-on): Likewise.
16503         * modules/unistr/u8-cmp (Depends-on): Likewise.
16504
16505 2008-11-02  Bruno Haible  <bruno@clisp.org>
16506
16507         Mark 'memchr' obsolete.
16508         * modules/memchr (Status, Notice): New sections.
16509         * modules/argp (Depends-on): Add memchr.
16510         * modules/base64 (Depends-on): Likewise.
16511         * modules/c-strcasestr (Depends-on): Likewise.
16512         * modules/chdir-long (Depends-on): Likewise.
16513         * modules/fnmatch (Depends-on): Likewise.
16514         * modules/getsubopt (Depends-on): Likewise.
16515         * modules/git-merge-changelog (Depends-on): Likewise.
16516         * modules/glob (Depends-on): Likewise.
16517         * modules/strcasestr-simple (Depends-on): Likewise.
16518         * modules/strnlen (Depends-on): Likewise.
16519
16520 2008-11-02  Bruno Haible  <bruno@clisp.org>
16521
16522         Mark 'atexit' obsolete.
16523         * modules/atexit (Status, Notice): New sections.
16524         * modules/chdir-long (Depends-on): Add atexit.
16525         * modules/wait-process (Depends-on): Likewise.
16526
16527 2008-11-02  Bruno Haible  <bruno@clisp.org>
16528
16529         * gnulib-tool: New option --with-obsolete.
16530         (func_usage): Document it.
16531         (func_modules_transitive_closure): Drop obsolete dependencies if
16532         incobsolete is not true.
16533         (func_import): Read and save the incobsolete variable to the cache.
16534
16535 2008-11-02  Bruno Haible  <bruno@clisp.org>
16536
16537         * modules/TEMPLATE-EXTENDED: New field 'Status'.
16538         * gnulib-tool: New option --extract-status.
16539         (func_usage): Document it.
16540         (sed_extract_prog): Recognize it.
16541         (func_get_status): New function.
16542
16543 2008-10-30  Simon Josefsson  <simon@josefsson.org>
16544
16545         * modules/sockets (License): Change from LGPL to LGPLv2+.
16546
16547 2008-10-28  Simon Josefsson  <simon@josefsson.org>
16548
16549         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
16550
16551 2008-10-28  Simon Josefsson  <simon@josefsson.org>
16552
16553         * MODULES.html.sh (Support for systems lacking POSIX:2001):
16554         Mention times and sys_times.
16555         * modules/sys_times, modules/sys_times-tests: New modules.
16556         * modules/times, modules/times-tests: Likewise
16557         * m4/sys_times_h.m4: New file.
16558         * lib/sys_times.in.h: Likewise
16559         * lib/times.c: Likewise.
16560         * tests/test-sys_times.c: Likewise.
16561         * tests/test-times.c: Likewise.
16562         * doc/posix-headers/sys_times.texi: Update.
16563         * doc/posix-functions/times.texi: Update.
16564
16565 2008-10-28  Jim Meyering  <meyering@redhat.com>
16566
16567         * modules/tempname (Depends-on): Add lstat.
16568
16569         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
16570
16571 2008-10-28  Simon Josefsson  <simon@josefsson.org>
16572
16573         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
16574         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
16575         using idiom used elsewhere in gnulib.
16576
16577 2008-10-27  Jim Meyering  <meyering@redhat.com>
16578
16579         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
16580
16581 2008-10-27  Simon Josefsson  <simon@josefsson.org>
16582
16583         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
16584         TESTS_ENVIRONMENT, for shell scripts that needs to call built
16585         programs.
16586         * tests/test-argp-2.sh: Use $EXEEXT when needed.
16587
16588 2008-10-27  Simon Josefsson  <simon@josefsson.org>
16589
16590         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
16591
16592 2008-10-27  Bruno Haible  <bruno@clisp.org>
16593
16594         * tests/test-lstat.c: Include <stdio.h>.
16595
16596 2008-10-27  Simon Josefsson  <simon@josefsson.org>
16597
16598         * modules/lstat-tests: New module.
16599         * tests/test-lstat.c: New file.
16600
16601 2008-10-26  Jim Meyering  <meyering@redhat.com>
16602
16603         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
16604
16605 2008-10-26  Simon Josefsson  <simon@josefsson.org>
16606             Bruno Haible  <bruno@clisp.org>
16607
16608         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
16609         * modules/configmake (Include): Add a note that the include must come
16610         after all system headers.
16611         * lib/javaversion.c: Include configmake.h after all other includes.
16612
16613 2008-10-26  Bruno Haible  <bruno@clisp.org>
16614
16615         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
16616         HAVE_STRUCT_RANDOM_DATA to 1.
16617         (gl_STDLIB_H): Simplify.
16618
16619 2008-10-26  Simon Josefsson  <simon@josefsson.org>
16620
16621         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
16622         substitute HAVE_STRUCT_RANDOM_DATA.
16623         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
16624         random_data.
16625         * modules/stdlib (Makefile.am): Substitute
16626         HAVE_STRUCT_RANDOM_DATA.
16627
16628 2008-10-26  Simon Josefsson  <simon@josefsson.org>
16629
16630         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
16631         * doc/gnulib-intro.texi (Copyright): Likewise.
16632
16633 2008-10-26  Simon Josefsson  <simon@josefsson.org>
16634
16635         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
16636         findings.
16637
16638 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
16639             Bruno Haible  <bruno@clisp.org>
16640
16641         * lib/unistd.in.h: Include <winsock2.h>.
16642         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
16643         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
16644         Provide dummy declarations.
16645         (gethostname): Override.
16646         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
16647         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
16648         gl_PREREQ_SYS_H_WINSOCK2.
16649         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
16650         * doc/posix-functions/gethostname.texi: More details.
16651
16652 2008-10-25  Bruno Haible  <bruno@clisp.org>
16653
16654         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
16655         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
16656         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
16657
16658         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
16659         here ...
16660         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
16661         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
16662         gl_UNISTD_H_DEFAULTS.
16663
16664 2008-10-25  Eric Blake  <ebb9@byu.net>
16665
16666         signbit: avoid spurious compiler failure
16667         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
16668         declarations inside function.
16669
16670 2008-10-24  Simon Josefsson  <simon@josefsson.org>
16671             Bruno Haible  <bruno@clisp.org>
16672
16673         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
16674         * modules/random_r (Depends-on): Add stdint.
16675
16676 2008-10-24  Bruno Haible  <bruno@clisp.org>
16677
16678         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
16679         Eggert.
16680         * modules/strerror (License): Likewise.
16681
16682 2008-10-24  Jim Meyering  <meyering@redhat.com>
16683
16684         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
16685         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
16686
16687 2008-10-24  Eric Blake  <ebb9@byu.net>
16688
16689         getgroups: fix compilation when getgroups is available
16690         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
16691         but with <config.h> override of getgroups disabled.
16692
16693 2008-10-24  Simon Josefsson  <simon@josefsson.org>
16694
16695         * doc/gnulib.texi (Header files): Add note about C++ problems.
16696         Explained by Bruno Haible <bruno@clisp.org>.
16697
16698 2008-10-23  Bruno Haible  <bruno@clisp.org>
16699
16700         Define a dummy SA_NODEFER macro on Interix.
16701         * lib/signal.in.h (SA_NODEFER): Define fallback.
16702         Reported by Aleksey Cheusov <cheusov@tut.by> via
16703         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
16704
16705 2008-10-23  Bruno Haible  <bruno@clisp.org>
16706
16707         * modules/freadahead (License): Change to LGPLv2+.
16708         Suggested by Simon Josefsson.
16709
16710 2008-10-23  Jim Meyering  <meyering@redhat.com>
16711
16712         random_r: new module
16713         * modules/random_r: New file.
16714         * m4/random_r.m4: New file.
16715         * lib/random_r.c: New file, from glibc.
16716         * modules/random_r-tests: New file.
16717         * tests/test-random_r.c: New file.
16718         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
16719          Declare.
16720         (RAND_MAX): Define.
16721         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
16722         * modules/stdlib: Substitute them, too.
16723         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
16724         * doc/glibc-functions/initstate_r.texi: Mention the new module.
16725         * doc/glibc-functions/random_r.texi: Likewise.
16726         * doc/glibc-functions/setstate_r.texi: Likewise.
16727         * doc/glibc-functions/srandom_r.texi: Likewise.
16728         * config/srclist.txt: Mention it.
16729
16730 2008-10-23  David Lutterkort  <lutter@redhat.com>
16731
16732         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
16733         link requirement
16734
16735 2008-10-23  Jim Meyering  <meyering@redhat.com>
16736
16737         selinux-h: mark parameters of stub functions as intentionally unused
16738         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
16739         * lib/se-context.in.h: Likewise.
16740
16741 2008-10-22  Simon Josefsson  <simon@josefsson.org>
16742
16743         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
16744
16745 2008-10-22  Simon Josefsson  <simon@josefsson.org>
16746
16747         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
16748
16749 2008-10-22  Eric Blake  <ebb9@byu.net>
16750
16751         glthread/thread: avoid compiler warning
16752         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
16753         Add unreachable abort to silence compiler.
16754
16755 2008-10-22  Eric Blake  <ebb9@byu.net>
16756
16757         netdb: also supply struct addrinfo for cygwin 1.5.x
16758         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
16759         older cygwin.
16760         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
16761         cygwin.
16762         * doc/posix-headers/netdb.texi (netdb.h): Document this.
16763
16764 2008-10-22  Bruno Haible  <bruno@clisp.org>
16765
16766         * users.txt: Update entry about pspp.
16767
16768 2008-10-21  Bruno Haible  <bruno@clisp.org>
16769
16770         Simplification.
16771         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
16772         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
16773
16774         Simplification.
16775         * lib/ioctl.c (ioctl): Don't undefine.
16776         * lib/socket.c (socket): Don't undefine.
16777
16778         Remove unused module indicator macros.
16779         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
16780         GNULIB_$1 as a C macro.
16781
16782         * doc/posix-functions/close.texi: Undo last change.
16783         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
16784         Windows platforms.
16785
16786 2008-10-21  Bruno Haible  <bruno@clisp.org>
16787
16788         Add gethostname() declaration to <unistd.h>.
16789         * lib/unistd.in.h (gethostname): New declaration.
16790         * lib/gethostname.c: Include <unistd.h>.
16791         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
16792         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
16793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
16794         and HAVE_GETHOSTNAME.
16795         * modules/gethostname (Depends-on): Add unistd.
16796         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16797         (Include): Specify <unistd.h>.
16798         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
16799         HAVE_GETHOSTNAME.
16800         * tests/test-gethostname.c: Include <unistd.h> first.
16801
16802 2008-10-21  Bruno Haible  <bruno@clisp.org>
16803
16804         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
16805         * modules/select-tests (Depends-on): Likewise.
16806         Reported by Simon Josefsson.
16807
16808 2008-10-21  Simon Josefsson  <simon@josefsson.org>
16809
16810         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
16811         * lib/accept.c: New file, based on winsock.c.
16812         * lib/bind.c: New file, based on winsock.c.
16813         * lib/connect.c: New file, based on winsock.c.
16814         * lib/getpeername.c: New file, based on winsock.c.
16815         * lib/getsockname.c: New file, based on winsock.c.
16816         * lib/getsockopt.c: New file, based on winsock.c.
16817         * lib/ioctl.c: New file, based on winsock.c.
16818         * lib/listen.c: New file, based on winsock.c.
16819         * lib/recv.c: New file, based on winsock.c.
16820         * lib/recvfrom.c: New file, based on winsock.c.
16821         * lib/send.c: New file, based on winsock.c.
16822         * lib/sendto.c: New file, based on winsock.c.
16823         * lib/setsockopt.c: New file, based on winsock.c.
16824         * lib/shutdown.c: New file, based on winsock.c.
16825         * lib/socket.c: New file, based on winsock.c.
16826         * lib/w32sock.h: New file, based on winsock.c.
16827         * lib/winsock.c: Remove file.
16828         * modules/accept: Likewise.
16829         * modules/bind: Likewise.
16830         * modules/connect: Likewise.
16831         * modules/getpeername: Likewise.
16832         * modules/getsockname: Likewise.
16833         * modules/getsockopt: Likewise.
16834         * modules/ioctl: Likewise.
16835         * modules/listen: Likewise.
16836         * modules/recv: Likewise.
16837         * modules/recvfrom: Likewise.
16838         * modules/send: Likewise.
16839         * modules/sendto: Likewise.
16840         * modules/setsockopt: Likewise.
16841         * modules/shutdown: Likewise.
16842         * modules/socket: Use socket.c instead of winsock.c.
16843         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
16844         * doc/posix-functions/accept.texi: Doc fix.
16845         * doc/posix-functions/bind.texi: Doc fix.
16846         * doc/posix-functions/close.texi: Doc fix.
16847         * doc/posix-functions/connect.texi: Doc fix.
16848         * doc/posix-functions/getpeername.texi: Doc fix.
16849         * doc/posix-functions/getsockname.texi: Doc fix.
16850         * doc/posix-functions/getsockopt.texi: Doc fix.
16851         * doc/posix-functions/ioctl.texi: Doc fix.
16852         * doc/posix-functions/listen.texi: Doc fix.
16853         * doc/posix-functions/recv.texi: Doc fix.
16854         * doc/posix-functions/recvfrom.texi: Doc fix.
16855         * doc/posix-functions/send.texi: Doc fix.
16856         * doc/posix-functions/sendto.texi: Doc fix.
16857         * doc/posix-functions/setsockopt.texi: Doc fix.
16858         * doc/posix-functions/shutdown.texi: Doc fix.
16859         * doc/posix-functions/socket.texi: Doc fix.
16860
16861 2008-10-20  Bruno Haible  <bruno@clisp.org>
16862
16863         Take into account the role of SIGABRT_COMPAT on Windows 2008.
16864         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
16865         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
16866         as an alias for SIGABRT.
16867         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
16868         (sigaction): Map it to SIGABRT.
16869         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
16870
16871 2008-10-20  Bruno Haible  <bruno@clisp.org>
16872
16873         * lib/fts.c: Don't include lstat.h.
16874         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
16875
16876         Move the lstat() declaration to <sys/stat.h>.
16877         * lib/lstat.h: Remove file.
16878         * lib/sys_stat.in.h: Add special invocation convention.
16879         (lstat): New declaration.
16880         * lib/lstat.c (orig_lstat): New function.
16881         (rpl_lstat): Use orig_lstat instead of lstat.
16882         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
16883         AC_C_INLINE. Set REPLACE_LSTAT.
16884         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
16885         and REPLACE_LSTAT.
16886         * modules/lstat (Files): Remove lib/lstat.h.
16887         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
16888         (Include): Specify <sys/stat.h> instead of lstat.h.
16889         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
16890         REPLACE_LSTAT.
16891         * NEWS: Mention the change.
16892
16893 2008-10-20  Bruno Haible  <bruno@clisp.org>
16894
16895         * modules/posix_spawn-tests: New file.
16896         * tests/test-posix_spawn3.c: New file.
16897
16898 2008-10-20  Bruno Haible  <bruno@clisp.org>
16899
16900         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
16901         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
16902         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
16903         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
16904         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
16905
16906 2008-10-20  Bruno Haible  <bruno@clisp.org>
16907
16908         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
16909         of posix_spawn on AIX 5.3.
16910
16911 2008-10-20  Bruno Haible  <bruno@clisp.org>
16912
16913         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
16914
16915 2008-10-20  Bruno Haible  <bruno@clisp.org>
16916
16917         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
16918         of AC_LANG_PROGRAM.
16919
16920 2008-10-20  Simon Josefsson  <simon@josefsson.org>
16921
16922         * lib/netdb.in.h: Don't define GNU specific constants until they
16923         are supported or needed.  Reported by Bruno Haible
16924         <bruno@clisp.org>.
16925
16926 2008-10-20  Simon Josefsson  <simon@josefsson.org>
16927
16928         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
16929
16930 2008-10-20  Simon Josefsson  <simon@josefsson.org>
16931
16932         * lib/getaddrinfo.h: Remove file.
16933         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
16934         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
16935         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
16936         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
16937         * modules/netdb: Substitute GNULIB_GETADDRINFO.
16938         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
16939         * tests/test-getaddrinfo.c: Likewise.
16940         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
16941         * NEWS: Mention change.
16942
16943 2008-10-19  Bruno Haible  <bruno@clisp.org>
16944
16945         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
16946
16947 2008-10-19  Bruno Haible  <bruno@clisp.org>
16948
16949         * lib/wait-process.c: Include simply <sys/wait.h>.
16950         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
16951         WIFSTOPPED): Remove fallback definitions.
16952         * modules/wait-process (Depends-on): Add sys_wait.
16953
16954         New module 'sys_wait'.
16955         * modules/sys_wait: New file.
16956         * lib/sys_wait.in.h: New file, partially copied from
16957         lib/wait-process.c.
16958         * m4/sys_wait_h.m4: New file.
16959         * doc/posix-headers/sys_wait.texi: Mention the new module.
16960
16961 2008-10-19  Bruno Haible  <bruno@clisp.org>
16962
16963         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
16964
16965 2008-10-19  Bruno Haible  <bruno@clisp.org>
16966
16967         Assume that waitpid() fills an 'int' status, not a 'union wait'.
16968         * lib/wait-process.c (WAIT_T): Remove type.
16969         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
16970         (wait_subprocess): Update.
16971
16972 2008-10-19  Bruno Haible  <bruno@clisp.org>
16973
16974         New module 'atoll'.
16975         * modules/atoll: New file.
16976         * lib/stdlib.in.h (atoll): New declaration.
16977         * lib/atoll.c: New file, from glibc with modifications.
16978         * m4/atoll.m4: New file.
16979         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
16980         HAVE_ATOLL.
16981         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
16982         * doc/posix-functions/atoll.texi: Mention the new module.
16983
16984 2008-10-19  Bruno Haible  <bruno@clisp.org>
16985
16986         Add strtoull() declaration to <stdlib.h>.
16987         * lib/stdlib.in.h (strtoull): New declaration.
16988         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
16989         Set HAVE_STRTOULL.
16990         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
16991         HAVE_STRTOULL.
16992         * modules/strtoull (Depends-on): Add stdlib.
16993         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16994         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
16995         HAVE_STRTOULL.
16996
16997 2008-10-19  Bruno Haible  <bruno@clisp.org>
16998
16999         Add strtoll() declaration to <stdlib.h>.
17000         * lib/stdlib.in.h (strtoll): New declaration.
17001         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
17002         Set HAVE_STRTOLL.
17003         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
17004         HAVE_STRTOLL.
17005         * modules/strtoll (Depends-on): Add stdlib.
17006         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17007         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
17008
17009 2008-10-19  Bruno Haible  <bruno@clisp.org>
17010
17011         * modules/bcopy (Depends-on): Add strings.
17012         (Include): Specify <strings.h>.
17013
17014 2008-10-19  Bruno Haible  <bruno@clisp.org>
17015
17016         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
17017
17018 2008-10-19  Bruno Haible  <bruno@clisp.org>
17019
17020         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
17021         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
17022         mingw.
17023
17024 2008-10-19  Bruno Haible  <bruno@clisp.org>
17025
17026         * lib/atanl.c: Don't include isnanl.h.
17027         * lib/cosl.c: Likewise.
17028         * lib/ldexpl.c: Likewise.
17029         * lib/logl.c: Likewise.
17030         * lib/sinl.c: Likewise.
17031         * lib/sqrtl.c: Likewise.
17032         * lib/tanl.c: Likewise.
17033
17034         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
17035         * lib/isnanf.h: Remove file.
17036         * lib/isnand.h: Remove file.
17037         * lib/isnanl.h: Remove file.
17038         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
17039         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
17040         macros.
17041         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
17042         HAVE_ISNANF, don't define it as a C macro.
17043         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
17044         HAVE_ISNAND, don't define it as a C macro.
17045         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
17046         HAVE_ISNANL, don't define it as a C macro.
17047         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
17048         HAVE_ISNAN[FDL].
17049         * modules/isnanf (Files): Remove lib/isnanf.h.
17050         (Depends-on): Add math.
17051         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17052         (Include): Specify <math.h> instead of isnanf.h.
17053         * modules/isnand (Files): Remove lib/isnand.h.
17054         (Depends-on): Add math.
17055         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17056         (Include): Specify <math.h> instead of isnand.h.
17057         * modules/isnanl (Files): Remove lib/isnanl.h.
17058         (Depends-on): Add math.
17059         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17060         (Include): Specify <math.h> instead of isnanl.h.
17061         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
17062         HAVE_ISNAN[FDL].
17063         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
17064         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
17065         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
17066         * NEWS: Mention the change.
17067
17068 2008-10-18  Bruno Haible  <bruno@clisp.org>
17069
17070         Add getusershell(), setusershell(), endusershell() declarations to
17071         <unistd.h>.
17072         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
17073         declarations.
17074         * lib/getusershell.c: Include unistd.h.
17075         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
17076         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
17077         HAVE_GETUSERSHELL.
17078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
17079         and HAVE_GETUSERSHELL.
17080         * modules/getusershell (Depends-on): Add unistd, extensions.
17081         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17082         (Include): Specify <unistd.h>.
17083         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
17084         HAVE_GETUSERSHELL.
17085
17086 2008-10-18  Bruno Haible  <bruno@clisp.org>
17087
17088         Add a getloadavg() declaration to <stdlib.h>.
17089         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
17090         getloadavg declaration.
17091         (getloadavg): New declaration.
17092         * lib/getloadavg.c: Include <stdlib.h> first.
17093         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
17094         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
17095         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
17096         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
17097         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
17098         * modules/getloadavg (Depends-on): Add stdlib, extensions.
17099         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17100         (Include): Specify <stdlib.h>.
17101         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
17102         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
17103
17104 2008-10-18  Bruno Haible  <bruno@clisp.org>
17105
17106         * lib/dirchownmod.c: Don't include lchmod.h.
17107
17108         Move the lchmod() declaration to <sys/stat.h>.
17109         * lib/lchmod.h: Remove file.
17110         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
17111         (lchmod): New declaration, moved here from lib/lchown.h.
17112         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
17113         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
17114         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
17115         and HAVE_LCHMOD.
17116         * modules/lchmod (Files): Remove lib/lchmod.h.
17117         (Depends-on): Add sys_stat, extensions.
17118         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
17119         (Include): Specify <sys/stat.h> instead of lchmod.h.
17120         * modules/sys_stat (Depends-on): Add link-warning.
17121         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
17122         definition of GL_LINK_WARNING.
17123         * NEWS: Mention the change.
17124
17125 2008-10-18  Bruno Haible  <bruno@clisp.org>
17126
17127         * lib/fchdir.c: Don't include dirfd.h.
17128         * lib/fts.c: Likewise.
17129         * lib/getcwd.c: Likewise.
17130         * lib/glob.c: Likewise.
17131
17132         Move the dirfd() declaration to <dirent.h>.
17133         * lib/dirfd.h: Remove file.
17134         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
17135         (dirfd): New declaration.
17136         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
17137         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
17138         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
17139         HAVE_DECL_DIRFD.
17140         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
17141         HAVE_DECL_DIRFD.
17142         * modules/dirfd (Files): Remove lib/dirfd.h.
17143         (Depends-on): Add dirent, extensions.
17144         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
17145         (Include): Specify <dirent.h> instead of dirfd.h.
17146         * modules/dirent (Depends-on): Add link-warning.
17147         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
17148         definition of GL_LINK_WARNING.
17149         * NEWS: Mention the change.
17150
17151 2008-10-18  Bruno Haible  <bruno@clisp.org>
17152
17153         Move the euidaccess() declaration to <unistd.h>.
17154         * lib/euidaccess.h: Remove file.
17155         * lib/unistd.in.h (euidaccess): New declaration.
17156         * lib/euidaccess.c: Don't include euidaccess.h.
17157         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
17158         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
17159         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
17160         and HAVE_EUIDACCESS.
17161         * modules/euidaccess (Files): Remove lib/euidaccess.h.
17162         (Depends-on): Add unistd.
17163         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17164         (Include): Specify <unistd.h> instead of euidaccess.h.
17165         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
17166         HAVE_EUIDACCESS.
17167         * NEWS: Mention the change.
17168
17169 2008-10-18  Bruno Haible  <bruno@clisp.org>
17170
17171         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
17172
17173         Move the getdomainname() declaration to <unistd.h>.
17174         * lib/getdomainname.h: Remove file.
17175         * lib/unistd.in.h (getdomainname): New declaration.
17176         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
17177         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
17178         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
17179         HAVE_GETDOMAINNAME.
17180         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17181         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
17182         * modules/getdomainname (Files): Remove lib/getdomainname.h.
17183         (Depends-on): Add unistd, extensions.
17184         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17185         (Includes): Specify <unistd.h> instead of getdomainname.h.
17186         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
17187         HAVE_GETDOMAINNAME.
17188         * NEWS: Mention the change.
17189
17190 2008-10-18  Bruno Haible  <bruno@clisp.org>
17191
17192         * modules/dirent: New file.
17193         * m4/dirent_h.m4: New file.
17194         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
17195         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
17196         * modules/fchdir (Files): Remove lib/dirent.in.h.
17197         (Depends-on): Add dirent.
17198         (Makefile.am): Move rules to modules/dirent.
17199         * doc/posix-headers/dirent.texi: Mention the new module.
17200
17201 2008-10-18  Bruno Haible  <bruno@clisp.org>
17202
17203         Avoid -Wunused-parameter warnings in public gnulib header files.
17204         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
17205         macro.
17206         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
17207
17208 2008-10-18  Bruno Haible  <bruno@clisp.org>
17209
17210         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
17211         * doc/glibc-functions/error.texi: Mention the module 'error'.
17212         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
17213         * doc/glibc-functions/getdomainname.texi: Mention the module
17214         'getdomainname'.
17215         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
17216         * doc/glibc-functions/getpagesize.texi: Mention the module
17217         'getpagesize'.
17218         * doc/glibc-functions/getusershell.texi: Mention the module
17219         'getusershell'.
17220         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
17221         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
17222         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
17223         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
17224         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
17225         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
17226         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
17227         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
17228         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
17229         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
17230         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
17231         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
17232         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
17233         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
17234
17235 2008-10-17  Bruno Haible  <bruno@clisp.org>
17236
17237         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
17238         HP-UX and IRIX, use -0.0L.
17239         * tests/test-ceill.c (minus_zero): Likewise.
17240         * tests/test-floorl.c (minus_zero): Likewise.
17241         * tests/test-frexpl.c (minus_zero): Likewise.
17242         * tests/test-isnan.c (minus_zerol): Likewise.
17243         * tests/test-isnanl.h (minus_zero): Likewise.
17244         * tests/test-ldexpl.c (minus_zero): Likewise.
17245         * tests/test-roundl.c (minus_zero): Likewise.
17246         * tests/test-signbit.c (minus_zerol): Likewise.
17247         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
17248         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
17249         * tests/test-truncl.c (minus_zero): Likewise.
17250         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
17251         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
17252         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
17253         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
17254
17255 2008-10-17  Bruno Haible  <bruno@clisp.org>
17256
17257         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
17258         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
17259         that it gets activated only for gcc >= 3.0.
17260         * lib/dirent.in.h: Likewise.
17261         * lib/errno.in.h: Likewise.
17262         * lib/fcntl.in.h: Likewise.
17263         * lib/float.in.h: Likewise.
17264         * lib/iconv.in.h: Likewise.
17265         * lib/inttypes.in.h: Likewise.
17266         * lib/locale.in.h: Likewise.
17267         * lib/math.in.h: Likewise.
17268         * lib/netdb.in.h: Likewise.
17269         * lib/netinet_in.in.h: Likewise.
17270         * lib/search.in.h: Likewise.
17271         * lib/signal.in.h: Likewise.
17272         * lib/spawn.in.h: Likewise.
17273         * lib/stdarg.in.h: Likewise.
17274         * lib/stdint.in.h: Likewise.
17275         * lib/stdio.in.h: Likewise.
17276         * lib/stdlib.in.h: Likewise.
17277         * lib/string.in.h: Likewise.
17278         * lib/strings.in.h: Likewise.
17279         * lib/sys_file.in.h: Likewise.
17280         * lib/sys_ioctl.in.h: Likewise.
17281         * lib/sys_select.in.h: Likewise.
17282         * lib/sys_socket.in.h: Likewise.
17283         * lib/sys_stat.in.h: Likewise.
17284         * lib/sys_time.in.h: Likewise.
17285         * lib/sysexits.in.h: Likewise.
17286         * lib/time.in.h: Likewise.
17287         * lib/unistd.in.h: Likewise.
17288         * lib/wchar.in.h: Likewise.
17289         * lib/wctype.in.h: Likewise.
17290         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
17291
17292 2008-10-17  Jim Meyering  <meyering@redhat.com>
17293
17294         ignore-value: don't depend on inline module
17295         * modules/ignore-value (Depends-on): Remove 'inline'.
17296         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
17297         Suggestion from Bruno Haible.
17298
17299 2008-10-17  Bruno Haible  <bruno@clisp.org>
17300
17301         New implementation of condition variables for Win32.
17302         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
17303         (gl_linked_waitqueue_t): New type.
17304         (gl_cond_t): Use it.
17305         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
17306         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
17307         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
17308         (glthread_cond_init_func, glthread_cond_wait_func,
17309         glthread_cond_timedwait_func, glthread_cond_signal_func,
17310         glthread_cond_broadcast_func, glthread_cond_destroy_func):
17311         Reimplemented on the basis of gl_linked_waitqueue_t.
17312         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
17313         gl_waitqueue_t.
17314         (gl_rwlock_t): Update.
17315         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
17316
17317 2008-10-17  Simon Josefsson  <simon@josefsson.org>
17318
17319         * modules/recvfrom (Depends-on): Add dependency on getpeername.
17320         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
17321
17322 2008-10-17  Jim Meyering  <meyering@redhat.com>
17323
17324         ignore-value: new module
17325         * modules/ignore-value: New file.
17326         * lib/ignore-value.h: New file.
17327         * MODULES.html.sh (Compiler warning management): New section,
17328         just for this module.  More to come.
17329
17330 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
17331
17332         open-safer.c: avoid 'signed and unsigned in conditional...' warning
17333         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
17334         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
17335
17336 2008-10-16  Jim Meyering  <meyering@redhat.com>
17337
17338         openat-die.c: avoid 'no previous prototype' warning
17339         * lib/openat-die.c: Include "openat.h".
17340         Reported by Reuben Thomas <rrt@sc3d.org>.
17341
17342 2008-10-16  Simon Josefsson  <simon@josefsson.org>
17343
17344         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
17345         * lib/netdb.in.h: Fix typo.
17346         Reported by Bruno Haible  <bruno@clisp.org>
17347
17348         * lib/netdb.in.h: Include sys/socket.h for platforms without
17349         netdb.h, to get structures like hostent on MinGW.
17350         * modules/netdb (Depends-on): Add sys_socket.
17351
17352 2008-10-15  Simon Josefsson  <simon@josefsson.org>
17353
17354         * modules/netdb, modules/netdb-tests: New file.
17355         * m4/netdb_h.m4: New file.
17356         * lib/netdb.in.h: Add, currently just an empty file pending
17357         definitions.
17358         * tests/test-netdb.c: New file.
17359         * doc/posix-headers/netdb.texi: Mention that we replace it if
17360         needed.
17361         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17362         netdb.
17363
17364 2008-10-15  Simon Josefsson  <simon@josefsson.org>
17365
17366         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
17367         with code.
17368
17369 2008-10-13  Bruno Haible  <bruno@clisp.org>
17370
17371         * lib/glthread/cond.c (glthread_cond_wait_func,
17372         glthread_cond_timedwait_func): Add a comment.
17373
17374 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
17375
17376         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
17377         * tests/test-select.c: Likewise,
17378
17379 2008-10-13  Bruno Haible  <bruno@clisp.org>
17380
17381         * lib/glthread/cond.c (glthread_cond_wait_func,
17382         glthread_cond_timedwait_func): Fix variable name.
17383         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
17384
17385 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
17386
17387         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
17388         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
17389         struct sockaddr.sa_len.
17390         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
17391
17392 2008-10-13  Simon Josefsson  <simon@josefsson.org>
17393
17394         * build-aux/pmccabe2html: Add css and css_url parameters.
17395
17396 2008-10-12  Bruno Haible  <bruno@clisp.org>
17397
17398         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
17399         calling aclx_get.
17400         Reported by Rainer Tammer <tammer@tammer.net>.
17401
17402 2008-10-12  Bruno Haible  <bruno@clisp.org>
17403
17404         Use msvcrt aware primitives for creation/termination of Win32 threads.
17405         * lib/glthread/thread.c: Include <process.h>.
17406         (glthread_create_func): Use _beginthreadex instead of CreateThread.
17407         (wrapper_func): Update signature.
17408         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
17409
17410 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
17411             Bruno Haible  <bruno@clisp.org>
17412
17413         Provide a Win32 implementation of the 'cond' module.
17414         * lib/glthread/cond.h [USE_WIN32]: New implementation.
17415         * lib/glthread/cond.c (glthread_cond_init_func,
17416         glthread_cond_wait_func, glthread_cond_timedwait_func,
17417         glthread_cond_signal_func, glthread_cond_broadcast_func,
17418         glthread_cond_destroy_func) [USE_WIN32]: New functions.
17419         * modules/cond (Dependencies): Add gettimeofday.
17420
17421 2008-10-11  Bruno Haible  <bruno@clisp.org>
17422
17423         Make sleep work on older versions of mingw.
17424         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
17425         only whether it exists.
17426         * doc/posix-functions/sleep.texi: Mention the problem with older
17427         versions of mingw.
17428
17429 2008-10-11  Bruno Haible  <bruno@clisp.org>
17430
17431         New module 'shutdown'.
17432         * modules/shutdown: New file.
17433         * lib/sys_socket.in.h (shutdown): New declaration.
17434         * lib/winsock.c (shutdown): New function.
17435         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17436         GNULIB_SHUTDOWN.
17437         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
17438         * doc/posix-functions/shutdown.texi: Document the new module.
17439
17440 2008-10-11  Jim Meyering  <meyering@redhat.com>
17441
17442         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
17443
17444 2008-10-11  Bruno Haible  <bruno@clisp.org>
17445
17446         New module 'fclose'.
17447         * modules/fclose: New file.
17448         * lib/stdio.in.h (fclose): New declaration.
17449         * lib/fclose.c: New file.
17450         * m4/fclose.m4: New file.
17451         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
17452         REPLACE_FCLOSE.
17453         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
17454         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
17455         REPLACE_FCLOSE.
17456         * modules/close (Depends-on): fclose.
17457         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
17458
17459 2008-10-11  Bruno Haible  <bruno@clisp.org>
17460
17461         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
17462         set errno and don't call _close.
17463
17464 2008-10-10  Bruno Haible  <bruno@clisp.org>
17465
17466         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
17467         ACL, not afterwards. Fixes test failure on Cygwin.
17468
17469 2008-10-09  Ben Pfaff  <blp@gnu.org>
17470
17471         * build-aux/announce-gen: Fix gnulib version related part of usage
17472         message.  Die with a useful error message if no tarballs are
17473         found.
17474
17475 2008-10-10  Jim Meyering  <meyering@redhat.com>
17476
17477         bootstrap: use git's --depth=N option only if it's supported
17478         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
17479         recognize the --depth option.  Reported by Pádraig Brady.
17480
17481 2008-10-09  Bruno Haible  <bruno@clisp.org>
17482
17483         New module 'ioctl'.
17484         * modules/ioctl: New file.
17485         * lib/sys_socket.in.h (ioctl): Remove declaration.
17486         * lib/winsock.c: Include <sys/ioctl.h>.
17487         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
17488         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
17489         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
17490         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
17491         * doc/posix-functions/ioctl.texi: Mention the new module.
17492
17493 2008-10-09  Bruno Haible  <bruno@clisp.org>
17494
17495         New module 'sys_ioctl'.
17496         * lib/sys_ioctl.in.h: New file.
17497         * m4/sys_ioctl_h.m4: New file.
17498         * modules/sys_ioctl: New file.
17499         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
17500
17501 2008-10-09  Bruno Haible  <bruno@clisp.org>
17502
17503         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
17504         * lib/winsock.c: Include <stdarg.h>.
17505         (rpl_ioctl): Change to second argument 'int' and then varargs.
17506
17507 2008-10-09  Bruno Haible  <bruno@clisp.org>
17508
17509         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
17510         when the sys_socket module is present and the system has <winsock2.h>.
17511
17512 2008-10-09  Bruno Haible  <bruno@clisp.org>
17513
17514         * doc/posix-functions/close.texi: Mention module 'close' instead of
17515         module 'sys_socket'.
17516
17517 2008-10-09  Bruno Haible  <bruno@clisp.org>
17518
17519         * doc/glibc-headers/sys_ioctl.texi: New file.
17520         * doc/gnulib.texi: Include it.
17521
17522 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
17523             Bruno Haible  <bruno@clisp.org>
17524
17525         Combine the two replacements of 'close'.
17526         * lib/sys_socket.in.h (close): Define to a reminder to include
17527         <unistd.h>.
17528         (_gl_close_fd_maybe_socket): New declaration.
17529         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
17530         * lib/winsock.c (close): Remove undefinition.
17531         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
17532         needed for the gnulib module 'close'.
17533         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
17534         define to an error symbol or to a warning, if suitable.
17535         * lib/close.c: Include <sys/socket.h>.
17536         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
17537         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
17538         UNISTD_H_HAVE_WINSOCK2_H.
17539         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
17540         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17541         UNISTD_H_HAVE_WINSOCK2_H.
17542         * modules/sys_socket (Files): Add m4/unistd_h.m4.
17543         (configure.ac): Set a module indicator.
17544         (Makefile.am): Substitute GNULIB_CLOSE.
17545         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
17546         * modules/poll-tests (Depends-on): Add close.
17547         * modules/select-tests (Depends-on): Likewise.
17548
17549 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
17550             Bruno Haible  <bruno@clisp.org>
17551
17552         New module 'close'.
17553         * modules/close: New file.
17554         * lib/unistd.in.h (close): Move declaration out of the
17555         FCHDIR_REPLACEMENT scope.
17556         (_gl_unregister_fd): New declaration.
17557         * lib/close.c: New file.
17558         * lib/fchdir.c (rpl_close): Remove function.
17559         * m4/close.m4: New file.
17560         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
17561         close.
17562         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
17563         REPLACE_CLOSE.
17564         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
17565         REPLACE_CLOSE.
17566         * modules/fchdir (Depends-on): Add close.
17567
17568 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
17569             Bruno Haible  <bruno@clisp.org>
17570
17571         * lib/fcntl.in.h (open): Simplify conditionals.
17572         (_gl_register_fd): New declaration.
17573         * lib/fchdir.c (rpl_open): Remove function.
17574         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
17575         also.
17576         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
17577         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
17578         open.
17579
17580 2008-10-09  Jim Meyering  <meyering@redhat.com>
17581
17582         GNUmakefile: use the more name-space-friendly "_version"
17583         * top/GNUmakefile (_dummy): Update.
17584         (_version): Rename from "version".
17585
17586 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
17587             Bruno Haible  <bruno@clisp.org>
17588
17589         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
17590         rpl_close.
17591         (_gl_register_fd): New function, extracted from rpl_open.
17592         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
17593         (rpl_open, rpl_opendir): Use _gl_register_fd.
17594
17595 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
17596
17597         Fix organization of 'open' replacement.
17598         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
17599         (gl_FUNC_OPEN): Use it.
17600         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
17601
17602 2008-10-08  Bruno Haible  <bruno@clisp.org>
17603
17604         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
17605
17606 2008-10-08  Simon Josefsson  <simon@josefsson.org>
17607
17608         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
17609         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
17610         listen).
17611
17612 2008-10-08  Eric Blake  <ebb9@byu.net>
17613
17614         GNUmakefile: add 'make version' target
17615         * top/GNUmakefile (_curr-ver): Split version update rules...
17616         (version): ...into a target.
17617
17618 2008-10-07  Bruno Haible  <bruno@clisp.org>
17619
17620         Use a more portable replacement expression for -0.0L.
17621         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
17622         instead of -0.0L. Fix m4 quotation.
17623
17624         * tests/test-signbit.c: Include <float.h>.
17625         (minus_zero): New variable.
17626         (test_signbitl): Use minus_zero instead of -zero.
17627         * modules/signbit-tests (Depends-on): Add float.
17628
17629         * tests/test-ceill.c: Include <float.h>.
17630         (zero): Remove variable.
17631         (minus_zero): New variable.
17632         (main): Use minus_zero instead of -zero.
17633         * modules/ceill-tests (Depends-on): Add float.
17634
17635         * tests/test-floorl.c: Include <float.h>.
17636         (zero): Remove variable.
17637         (minus_zero): New variable.
17638         (main): Use minus_zero instead of -zero.
17639         * modules/floorl-tests (Depends-on): Add float.
17640
17641         * tests/test-roundl.c: Include <float.h>.
17642         (zero): Remove variable.
17643         (minus_zero): New variable.
17644         (main): Use minus_zero instead of -zero.
17645         * modules/roundl-tests (Depends-on): Add float.
17646
17647         * tests/test-truncl.c: Include <float.h>.
17648         (zero): Remove variable.
17649         (minus_zero): New variable.
17650         (main): Use minus_zero instead of -zero.
17651         * modules/truncl-tests (Depends-on): Add float.
17652
17653         * tests/test-frexpl.c (zero): Remove variable.
17654         (minus_zero): New variable.
17655         (main): Use minus_zero instead of -zero.
17656         * modules/frexpl-tests (Depends-on): Add float.
17657
17658         * tests/test-isnan.c (zerol): Remove variable.
17659         (minus_zerol): New variable.
17660         (test_long_double): Use minus_zerol instead of -zerol.
17661         * modules/isnan-tests (Depends-on): Add float.
17662
17663         * tests/test-isnanl.h (zero): Remove variable.
17664         (minus_zero): New variable.
17665         (main): Use minus_zero instead of -zero.
17666         * modules/isnanl-nolibm-tests (Depends-on): Add float.
17667         * modules/isnanl-tests (Depends-on): Add float.
17668
17669         * tests/test-ldexpl.c (zero): Remove variable.
17670         (minus_zero): New variable.
17671         (main): Use minus_zero instead of -zero.
17672         * modules/ldexpl-tests (Depends-on): Add float.
17673
17674         * tests/test-snprintf-posix.h (zerol): Remove variable.
17675         (minus_zerol): New variable.
17676         (test_function): Use minus_zerol instead of -zerol.
17677         * modules/snprintf-posix-tests (Depends-on): Add float.
17678         * modules/vsnprintf-posix-tests (Depends-on): Add float.
17679
17680         * tests/test-sprintf-posix.h (zerol): Remove variable.
17681         (minus_zerol): New variable.
17682         (test_function): Use minus_zerol instead of -zerol.
17683         * modules/sprintf-posix-tests (Depends-on): Add float.
17684         * modules/vsprintf-posix-tests (Depends-on): Add float.
17685
17686         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
17687         (minus_zerol): New variable.
17688         (test_function): Use minus_zerol instead of -zerol.
17689         * modules/vasnprintf-posix-tests (Depends-on): Add float.
17690
17691         * tests/test-vasprintf-posix.c (zerol): Remove variable.
17692         (minus_zerol): New variable.
17693         (test_function): Use minus_zerol instead of -zerol.
17694         * modules/vasprintf-posix-tests (Depends-on): Add float.
17695
17696 2008-10-07  Simon Josefsson  <simon@josefsson.org>
17697
17698         * MODULES.html.sh (Support for building documentation): Mention
17699         pmccabe2html.  Sort entries.
17700
17701         Add pmccabe2html module, from gnupdf.
17702         * build-aux/pmccabe.css: New file.
17703         * build-aux/pmccabe2html: New file.
17704         * m4/pmccabe2html.m4: New file.
17705         * modules/pmccabe2html: New file.
17706
17707 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
17708
17709         flock: new module
17710         * MODULES.html.sh: Add to list of modules.
17711         * lib/flock.c: flock implementation for Windows and Unix systems
17712         which have fcntl.
17713         * doc/glibc-functions/flock.texi: Update documentation.
17714         * lib/sys_file.in.h: <sys/file.h> header file.
17715         * m4/flock.m4: M4 macros.
17716         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
17717         * modules/flock: flock module.
17718         * modules/flock-tests: flock tests module.
17719         * modules/sys_file: sys/file.h module.
17720         * tests/test-flock.c: test suite for flock.
17721
17722 2008-10-06  Jim Meyering  <meyering@redhat.com>
17723
17724         bootstrap: check for LT_INIT more portably still ;-)
17725         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
17726         Spotted by Bruno Haible.
17727
17728 2008-10-06  Eric Blake  <ebb9@byu.net>
17729
17730         test-signbit: avoid tripping Irix cc bug on -0.0L
17731         * tests/test-signbit.c (minus_zerol): Delete, and replace with
17732         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
17733         entire testsuite consistent and avoids an Irix 6.2 bug.
17734
17735 2008-10-05  Bruno Haible  <bruno@clisp.org>
17736             Jim Meyering  <jim@meyering.net>
17737
17738         Add an option for ignoring EPIPE during close_stdout.
17739         * lib/closeout.h: Include <stdbool.h>.
17740         (close_stdout_set_ignore_EPIPE): New declaration.
17741         * lib/closeout.c: Include <stdbool.h>.
17742         (ignore_EPIPE): New variable.
17743         (close_stdout_set_ignore_EPIPE): New function.
17744         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
17745         * lib/close-stream.c (close_stream): Mention the possible EPIPE
17746         failure.
17747         * modules/closeout (Depends-on): Add stdbool.
17748
17749 2008-10-05  Bruno Haible  <bruno@clisp.org>
17750
17751         * modules/accept: New file.
17752         * modules/bind: New file.
17753         * modules/connect: New file.
17754         * modules/getpeername: New file.
17755         * modules/getsockname: New file.
17756         * modules/getsockopt: New file.
17757         * modules/listen: New file.
17758         * modules/recv: New file.
17759         * modules/recvfrom: New file.
17760         * modules/send: New file.
17761         * modules/sendto: New file.
17762         * modules/setsockopt: New file.
17763         * modules/socket: New file.
17764         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
17765         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17766         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
17767         the particular module is requested. Add a link warning when the
17768         particular module is not requested.
17769         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
17770         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
17771         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
17772         the particular module is requested.
17773         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
17774         gl_SYS_SOCKET_H_DEFAULTS): New macros.
17775         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
17776         * modules/sys_socket (Depends-on): Add link-warning.
17777         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
17778         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
17779         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
17780         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
17781         GL_LINK_WARNING.
17782         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
17783         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
17784         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
17785         * doc/posix-functions/getpeername.texi: Mention the new module
17786         'getpeername'.
17787         * doc/posix-functions/getsockname.texi: Mention the new module
17788         'getsockname'.
17789         * doc/posix-functions/getsockopt.texi: Mention the new module
17790         'getsockopt'.
17791         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
17792         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
17793         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
17794         * doc/posix-functions/send.texi: Mention the new module 'send'.
17795         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
17796         * doc/posix-functions/setsockopt.texi: Mention the new module
17797         'setsockopt'.
17798         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
17799         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
17800         listen, connect, accept.
17801         * modules/select-tests (Depends-on): Likewise.
17802
17803 2008-10-05  Bruno Haible  <bruno@clisp.org>
17804
17805         * lib/winsock.c (strerror): Remove unused #undef.
17806         (rpl_close): Remove unused local variable.
17807
17808         * modules/sys_socket (Depends-on); Add errno.
17809
17810 2008-10-05  Bruno Haible  <bruno@clisp.org>
17811
17812         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
17813         (select): Add a link warning when the 'select' module is not used.
17814         * modules/sys_select (Depends-on): Add link-warning.
17815         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
17816         Suggested by Paolo Bonzini.
17817
17818 2008-10-05  Jim Meyering  <meyering@redhat.com>
17819
17820         bootstrap: check for LT_INIT more portably
17821         * build-aux/bootstrap: Avoid using grep -E, since it's not
17822         portable enough.  Suggestion from Bruno Haible.
17823
17824 2008-10-05  Bruno Haible  <bruno@clisp.org>
17825
17826         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
17827         as being fixed by gnulib.
17828
17829 2008-10-05  Bruno Haible  <bruno@clisp.org>
17830
17831         * modules/select-tests: New file, mostly copied from
17832         modules/sys_select-tests.
17833         * tests/test-select.c: New file, mostly copied from
17834         tests/test-sys_select.c.
17835         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
17836         * modules/sys_select-tests (Depends-on): Remove all dependencies.
17837         (Makefile.am): Remove test_sys_select_LDADD.
17838
17839         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
17840         to an undefined symbol, for an error message.
17841         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
17842         (gl_SYS_SELECT_H_DEFAULTS): New macro.
17843         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
17844         winsock-select.c here.
17845         * modules/sys_select (Files): Remove lib/winsock-select.c.
17846         (Depends-on): Remove alloca.
17847         (Makefile.am): Substitute GNULIB_SELECT.
17848         * modules/select: New file.
17849         * doc/posix-functions/select.texi: Update.
17850
17851 2008-10-05  Bruno Haible  <bruno@clisp.org>
17852
17853         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
17854         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
17855         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
17856         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
17857         getdtablesize.
17858         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
17859         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
17860
17861 2008-10-05  Bruno Haible  <bruno@clisp.org>
17862
17863         * modules/getdtablesize-tests: New file.
17864         * tests/test-getdtablesize.c: New file.
17865
17866         New module 'getdtablesize'.
17867         * lib/unistd.in.h (getdtablesize): New declaration.
17868         * lib/getdtablesize.c: New file.
17869         * m4/getdtablesize.m4: New file.
17870         * modules/getdtablesize: New file.
17871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17872         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
17873         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
17874         HAVE_GETDTABLESIZE.
17875         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
17876
17877 2008-10-05  Bruno Haible  <bruno@clisp.org>
17878
17879         * modules/sched (Makefile.am): Fix typo.
17880         Reported by Simon Josefsson.
17881
17882 2008-10-05  Jim Meyering  <meyering@redhat.com>
17883
17884         bootstrap: check for LT_INIT, too
17885         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
17886         are deprecated.  Suggestion from Ralf Wildenhues.
17887
17888 2008-10-05  Bruno Haible  <bruno@clisp.org>
17889
17890         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
17891         overriding them by ours.
17892         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
17893
17894 2008-10-05  Jim Meyering  <meyering@redhat.com>
17895
17896         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
17897         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
17898         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
17899
17900 2008-10-04  Bruno Haible  <bruno@clisp.org>
17901
17902         * modules/dup2 (License): Change to LGPLv2+.
17903         * modules/sleep (License): Likewise.
17904         * modules/perror (License): Likewise.
17905         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
17906         Blake.
17907         * modules/signal (License): Likewise.
17908         * modules/sigprocmask (License): Likewise.
17909         * modules/raise (License): Change to LGPLv2+, with approval by Jim
17910         Meyering.
17911
17912 2008-10-04  Bruno Haible  <bruno@clisp.org>
17913
17914         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
17915         Reported by Rainer Tammer <tammer@tammer.net>.
17916
17917 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
17918             Bruno Haible  <bruno@clisp.org>
17919
17920         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
17921         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
17922         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
17923
17924 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
17925
17926         filevercmp: new module
17927         * lib/filevercmp.h: New function filevercmp comparing version strings.
17928         * lib/filevercmp.c: Implementation of filevercmp function.
17929         * modules/filevercmp: Module metadata.
17930         * tests/test-filevercmp.c: Unit test for new module.
17931         * modules/filevercmp-tests: Unit test metadata.
17932         * MODULES.html.sh: Add filevercmp module.
17933
17934 2008-10-03  Bruno Haible  <bruno@clisp.org>
17935
17936         * lib/c-ctype.h: Add comment.
17937         Reported by Jim Meyering.
17938
17939 2008-10-02  Bruno Haible  <bruno@clisp.org>
17940
17941         * modules/posix_spawn-internal (Depends-on): Add 'open'.
17942
17943 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
17944
17945         * build-aux/bootstrap: Allow renaming bootstrap, and change the
17946         name of bootstrap.conf accordingly.
17947
17948 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
17949
17950         * build-aux/bootstrap: Install git-merge-changelog configuration
17951         items into .gitconfig if needed.
17952
17953 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
17954
17955         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
17956         git repository, and initialize/update it accordingly.
17957
17958 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
17959
17960         * modules/fsync-tests: New file.
17961         * tests/test-fsync.c: New file.
17962
17963         New module 'fsync'.
17964         * lib/fsync.c: New file.
17965         * m4/fsync.m4: New file.
17966         * modules/fsync: New file.
17967         * lib/unistd.in.h (fsync): New declaration.
17968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
17969         GNULIB_FSYNC and HAVE_FSYNC.
17970         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
17971         * MODULES.html.sh (posix_functions): Add fsync.
17972         * doc/posix-functions/fsync.texi: Mention the new module.
17973
17974 2008-10-02  Jim Meyering  <meyering@redhat.com>
17975
17976         fts.c: sync with similar code from coreutils' remove.c
17977         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
17978         Guard also with "#if defined __linux__", since for now at least,
17979         this code is Linux-kernel-specific.
17980
17981 2008-10-02  Jim Meyering  <meyering@redhat.com>
17982
17983         fts: bug fixes
17984         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
17985         Include <sys/vfs.h>, not <sys/statfs.h>.
17986
17987         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
17988         Include <sys/vfs.h>, not <sys/statfs.h>.
17989
17990 2008-10-01  Bruno Haible  <bruno@clisp.org>
17991
17992         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
17993         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
17994         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
17995         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
17996         * doc/posix-functions/posix_spawnp.texi: Likewise.
17997         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
17998         whether posix_spawn actually works.
17999         * m4/pipe.m4 (gl_PIPE): Likewise.
18000         * modules/execute (Files): Add m4/posix_spawn.m4.
18001         * modules/pipe (Files): Add m4/posix_spawn.m4.
18002         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
18003
18004 2008-10-01  Jim Meyering  <meyering@redhat.com>
18005
18006         remove trailing spaces
18007         * NEWS: Likewise.
18008         * lib/poll.c (poll): Likewise.
18009         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
18010         * lib/winsock.c (rpl_close): Likewise.
18011         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
18012         * modules/yield: Likewise.
18013         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
18014         * tests/test-sys_select.c (connect_to_socket): Likewise.
18015
18016         fts.c: adjust a new interface to be more generally useful
18017         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
18018         (fts_build): Adjust caller.
18019
18020 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18021
18022         * modules/cond-tests: New file.
18023         * tests/test-cond.c: New file.
18024
18025 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18026             Bruno Haible  <bruno@clisp.org>
18027
18028         * modules/cond (Dependencies): Add errno, time.
18029         * lib/glthread/cond.h: Include <time.h>.
18030         (gl_cond_define, gl_cond_define_initialized): Use the same definition
18031         across platforms.
18032
18033 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18034             Bruno Haible  <bruno@clisp.org>
18035
18036         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
18037
18038 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18039             Bruno Haible  <bruno@clisp.org>
18040
18041         * modules/tls-tests (Depends-on): Add thread, yield.
18042         (configure.ac): Remove all checks.
18043         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
18044         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
18045         gl_thread_self): Remove definitions. Include glthread/thread.h and
18046         glthread/yield.h instead.
18047         (test_tls): Pass an additional NULL argument to gl_thread_join.
18048
18049 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18050             Bruno Haible  <bruno@clisp.org>
18051
18052         * modules/lock-tests (Depends-on): Add thread, yield.
18053         (configure.ac): Remove all checks.
18054         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
18055         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
18056         gl_thread_self): Remove definitions. Include glthread/thread.h and
18057         glthread/yield.h instead.
18058         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
18059         additional NULL argument to gl_thread_join.
18060
18061 2008-09-30  Bruno Haible  <bruno@clisp.org>
18062
18063         Fix the Win32 implementation of the 'thread' module.
18064         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
18065         pointer type.
18066         (gl_thread_self): Invoke gl_thread_self_func.
18067         (gl_thread_self_func): New declaration.
18068         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
18069         (do_init_self_key, init_self_key): New functions.
18070         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
18071         Remove some fields.
18072         (running_threads, running_lock): Remove variables.
18073         (get_current_thread_handle): New function.
18074         (gl_thread_self_func, wrapper_func, glthread_create_func,
18075         glthread_join_func, gl_thread_exit_func): Largely rewritten and
18076         simplified.
18077
18078 2008-09-30  Bruno Haible  <bruno@clisp.org>
18079
18080         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
18081         files.
18082
18083 2008-09-30  Jim Meyering  <meyering@redhat.com>
18084
18085         fts.m4: correct the test for statfs.f_type
18086         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
18087         when checking for statfs.f_type.
18088
18089 2008-09-15  Simon Josefsson  <simon@josefsson.org>
18090
18091         tests: avoid some compiler warnings
18092         * tests/test-memchr.c (main): Pass NULL indirectly.
18093         * tests/test-getdate.c (main): Remove unused variable 'ret'.
18094
18095 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
18096
18097         getdate.y: disallow countable dayshifts like "4 yesterday ago"
18098         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
18099         exactly specified dayshifts.
18100         (dayshift): New rule.
18101         (rel): Add dayshift.
18102         (relative_time_table) [tomorrow, yesterday, today, now]:
18103         Use tDAY_SHIFT in place of tDAY_UNIT.
18104         * tests/test-getdate.c: Add tests for now-disallowed countable
18105         dayshifts, e.g., "4 yesterday ago".
18106
18107 2008-09-29  Bruno Haible  <bruno@clisp.org>
18108
18109         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
18110         * tests/test-posix_spawn1.in.sh: Renamed from
18111         tests/test-posix_spawn.in.sh.
18112         * tests/test-posix_spawn2.c: New file.
18113         * tests/test-posix_spawn2.in.sh: New file.
18114         * modules/posix_spawnp-tests (Files): Update.
18115         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
18116
18117 2008-09-29  Bruno Haible  <bruno@clisp.org>
18118
18119         Propagate effects of putenv/setenv/unsetenv to child processes.
18120         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
18121         * lib/pipe.c (create_pipe): Likewise.
18122
18123 2008-09-29  Bruno Haible  <bruno@clisp.org>
18124
18125         Enable use of shell scripts as executables in mingw.
18126         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
18127         run the program as a shell script.
18128         * lib/pipe.c (create_pipe): Likewise.
18129         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
18130         resulting array.
18131
18132 2008-09-29  Eric Blake  <ebb9@byu.net>
18133
18134         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
18135
18136 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
18137
18138         * doc/posix-functions/accept.texi: Update mingw problems.
18139         * doc/posix-functions/bind.texi: Update mingw problems.
18140         * doc/posix-functions/close.texi: Update mingw problems.
18141         * doc/posix-functions/connect.texi: Update mingw problems.
18142         * doc/posix-functions/getpeername.texi: Update mingw problems.
18143         * doc/posix-functions/getsockname.texi: Update mingw problems.
18144         * doc/posix-functions/getsockopt.texi: Update mingw problems.
18145         * doc/posix-functions/ioctl.texi: Update mingw problems.
18146         * doc/posix-functions/listen.texi: Update mingw problems.
18147         * doc/posix-functions/recv.texi: Update mingw problems.
18148         * doc/posix-functions/recvfrom.texi: Update mingw problems.
18149         * doc/posix-functions/select.texi: Update mingw problems.
18150         * doc/posix-functions/send.texi: Update mingw problems.
18151         * doc/posix-functions/sendto.texi: Update mingw problems.
18152         * doc/posix-functions/setsockopt.texi: Update mingw problems.
18153         * doc/posix-functions/socket.texi: Update mingw problems.
18154
18155 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
18156             Bruno Haible  <bruno@clisp.org>
18157
18158         * lib/sys_select.in.h: Include sys/time.h.
18159         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
18160         * modules/sys_select: Depend on sys_time.
18161         * tests/test-sys_select.c: Test that sys/select.h defines struct
18162         timeval fully.
18163
18164 2008-09-29  Bruno Haible  <bruno@clisp.org>
18165
18166         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
18167         * lib/sys_select.in.h: Likewise.
18168
18169 2008-09-29  Bruno Haible  <bruno@clisp.org>
18170
18171         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
18172
18173 2008-09-29  Bruno Haible  <bruno@clisp.org>
18174
18175         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
18176         Set LIBSOCKET instead of augmenting LIBS.
18177         * modules/sockets (Link): New section.
18178         * modules/sockets-tests (test_sockets_LDADD): New variable.
18179         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
18180         * modules/poll-tests (test_poll_LDADD): New variable.
18181         * NEWS: Document the change.
18182
18183 2008-09-29  Bruno Haible  <bruno@clisp.org>
18184
18185         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
18186         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
18187         ARPA_INET_H directly.
18188         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
18189
18190 2008-09-28  Bruno Haible  <bruno@clisp.org>
18191
18192         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
18193         from gl_HEADER_SYS_SOCKET.
18194         (gl_HEADER_SYS_SOCKET): Invoke it.
18195         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18196
18197 2008-09-28  Bruno Haible  <bruno@clisp.org>
18198
18199         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
18200         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
18201         Needed on OSF/1 4.0.
18202
18203 2008-09-28  Bruno Haible  <bruno@clisp.org>
18204
18205         Override open more carefully.
18206         * lib/open.c (orig_open): New function.
18207         (rpl_open): Use orig_open instead of open.
18208         * lib/fcntl.in.h: Add special invocation convention.
18209         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
18210         (gl_FUNC_OPEN): Invoke it.
18211
18212         Override freopen more carefully.
18213         * lib/freopen.c (orig_freopen): New function.
18214         (rpl_freopen): Use orig_freopen instead of freopen.
18215         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
18216         (gl_FUNC_FREOPEN): Invoke it.
18217
18218         Override fopen more carefully.
18219         * lib/fopen.c (orig_fopen): New function.
18220         (rpl_fopen): Use orig_fopen instead of fopen.
18221         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
18222         (gl_FUNC_FOPEN): Invoke it.
18223         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
18224
18225 2008-09-28  Bruno Haible  <bruno@clisp.org>
18226
18227         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
18228         SIGPIPE.
18229
18230 2008-09-28  Bruno Haible  <bruno@clisp.org>
18231
18232         * tests/test-sigaction.c (handler, main): Disable the check whether
18233         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
18234         glibc systems with LinuxThreads.
18235
18236 2008-09-28  Bruno Haible  <bruno@clisp.org>
18237
18238         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
18239
18240         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
18241         with AIX xlc.
18242         * lib/fcntl.in.h (open): Likewise.
18243         Reported by Rainer Tammer <tammer@tammer.net>.
18244
18245 2008-09-28  Bruno Haible  <bruno@clisp.org>
18246
18247         * modules/posix_spawnp-tests: New file.
18248         * tests/test-posix_spawn.c: New file.
18249         * tests/test-posix_spawn.in.sh: New file.
18250
18251         New module 'posix_spawnp'.
18252         * modules/posix_spawnp: New file.
18253         * lib/spawnp.c: New file, from GNU libc with modifications.
18254         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
18255
18256         New module 'posix_spawn'.
18257         * modules/posix_spawn: New file.
18258         * lib/spawn.c: New file, from GNU libc with modifications.
18259         * doc/posix-functions/posix_spawn.texi: Mention the new module.
18260
18261         New module 'posix_spawnattr_destroy'.
18262         * modules/posix_spawnattr_destroy: New file.
18263         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
18264         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
18265         module.
18266
18267         New module 'posix_spawnattr_setsigmask'.
18268         * modules/posix_spawnattr_setsigmask: New file.
18269         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
18270         modifications.
18271         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
18272         new module.
18273
18274         New module 'posix_spawnattr_getsigmask'.
18275         * modules/posix_spawnattr_getsigmask: New file.
18276         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
18277         modifications.
18278         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
18279         new module.
18280
18281         New module 'posix_spawnattr_setsigdefault'.
18282         * modules/posix_spawnattr_setsigdefault: New file.
18283         * lib/spawnattr_setdefault.c: New file, from GNU libc with
18284         modifications.
18285         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
18286         new module.
18287
18288         New module 'posix_spawnattr_getsigdefault'.
18289         * modules/posix_spawnattr_getsigdefault: New file.
18290         * lib/spawnattr_getdefault.c: New file, from GNU libc with
18291         modifications.
18292         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
18293         new module.
18294
18295         New module 'posix_spawnattr_setschedpolicy'.
18296         * modules/posix_spawnattr_setschedpolicy: New file.
18297         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
18298         modifications.
18299         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
18300         new module.
18301
18302         New module 'posix_spawnattr_getschedpolicy'.
18303         * modules/posix_spawnattr_getschedpolicy: New file.
18304         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
18305         modifications.
18306         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
18307         new module.
18308
18309         New module 'posix_spawnattr_setschedparam'.
18310         * modules/posix_spawnattr_setschedparam: New file.
18311         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
18312         modifications.
18313         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
18314         new module.
18315
18316         New module 'posix_spawnattr_getschedparam'.
18317         * modules/posix_spawnattr_getschedparam: New file.
18318         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
18319         modifications.
18320         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
18321         new module.
18322
18323         New module 'posix_spawnattr_setpgroup'.
18324         * modules/posix_spawnattr_setpgroup: New file.
18325         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
18326         modifications.
18327         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
18328         module.
18329
18330         New module 'posix_spawnattr_getpgroup'.
18331         * modules/posix_spawnattr_getpgroup: New file.
18332         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
18333         modifications.
18334         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
18335         module.
18336
18337         New module 'posix_spawnattr_setflags'.
18338         * modules/posix_spawnattr_setflags: New file.
18339         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
18340         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
18341         module.
18342
18343         New module 'posix_spawnattr_getflags'.
18344         * modules/posix_spawnattr_getflags: New file.
18345         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
18346         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
18347         module.
18348
18349         New module 'posix_spawnattr_init'.
18350         * modules/posix_spawnattr_init: New file.
18351         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
18352         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
18353         module.
18354
18355         New module 'posix_spawn_file_actions_destroy'.
18356         * modules/posix_spawn_file_actions_destroy: New file.
18357         * lib/spawn_faction_destroy.c: New file, from GNU libc with
18358         modifications.
18359         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
18360         the new module.
18361
18362         New module 'posix_spawn_file_actions_addopen'.
18363         * modules/posix_spawn_file_actions_addopen: New file.
18364         * lib/spawn_faction_addopen.c: New file, from GNU libc with
18365         modifications.
18366         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
18367         the new module.
18368
18369         New module 'posix_spawn_file_actions_adddup2'.
18370         * modules/posix_spawn_file_actions_adddup2: New file.
18371         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
18372         modifications.
18373         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
18374         the new module.
18375
18376         New module 'posix_spawn_file_actions_addclose'.
18377         * modules/posix_spawn_file_actions_addclose: New file.
18378         * lib/spawn_faction_addclose.c: New file, from GNU libc with
18379         modifications.
18380         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
18381         the new module.
18382
18383         New module 'posix_spawn_file_actions_init'.
18384         * modules/posix_spawn_file_actions_init: New file.
18385         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
18386         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
18387         new module.
18388
18389         New module 'posix_spawn-internal'.
18390         * modules/posix_spawn-internal: New file.
18391         * lib/spawn_int.h: New file, from GNU libc with modifications.
18392         * lib/spawni.c: New file, from GNU libc with modifications.
18393         * m4/posix_spawn.m4: New file.
18394
18395         New module 'spawn'.
18396         * modules/spawn: New file.
18397         * lib/spawn.in.h: New file, from GNU libc with modifications.
18398         * m4/spawn_h.m4: New file.
18399         * doc/posix-headers/spawn.texi: Mention the new module.
18400
18401 2008-09-28  Bruno Haible  <bruno@clisp.org>
18402
18403         * modules/sched-tests: New file.
18404         * tests/test-sched.c: New file.
18405
18406         New module 'sched'.
18407         * modules/sched: New file.
18408         * lib/sched.in.h: New file.
18409         * m4/sched_h.m4: New file.
18410         * doc/posix-headers/sched.texi: Mention the new module.
18411
18412 2008-09-27  Eric Blake  <ebb9@byu.net>
18413
18414         Fix previous patch, and tweak references to $0.
18415         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
18416         (func_version, func_gnulib_dir): Don't call this program
18417         gnulib-tool.
18418         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
18419         with using $0 in function.
18420         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
18421         (func_fatal_error): Reuse the name the user invoked us with.
18422
18423 2008-09-27  Bruno Haible  <bruno@clisp.org>
18424
18425         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
18426         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
18427         (gl_ICONV_H): Not here.
18428         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
18429         instead of assigning ICONV_H directly.
18430
18431         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
18432         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
18433         WCHAR_H directly.
18434
18435 2008-09-27  Bruno Haible  <bruno@clisp.org>
18436
18437         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
18438         * modules/arpa_inet (Depends-on): Add link-warning.
18439         (Makefile.am): Insert the definition of GL_LINK-WARNING.
18440         * modules/unistd (Makefile.am): Likewise.
18441
18442 2008-09-26  Bruno Haible  <bruno@clisp.org>
18443
18444         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
18445         variables.
18446         (func_version): Essentially copied from gnulib-tool.
18447         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
18448         func_readlink): Copied from gnulib-tool.
18449
18450 2008-09-26  Bruno Haible  <bruno@clisp.org>
18451
18452         * gnulib-tool (func_version): Change directory to $gnulib_dir before
18453         invoking git-version-gen.
18454
18455 2008-09-26  Bruno Haible  <bruno@clisp.org>
18456
18457         * posix-modules: Update to directory names changed on 2008-01-19.
18458         Remove commas in output before splitting into words. No more need to
18459         avoid 'ftruncate' since 2007-02-19.
18460
18461 2008-09-26  Bruno Haible  <bruno@clisp.org>
18462
18463         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
18464
18465 2008-09-26  Bruno Haible  <bruno@clisp.org>
18466
18467         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
18468         * modules/fwriteerror (Depends-on): Add errno.
18469
18470 2008-09-26  Bruno Haible  <bruno@clisp.org>
18471
18472         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
18473         * tests/test-vc-list-files-cvs.sh: Likewise.
18474
18475 2008-09-26  Bruno Haible  <bruno@clisp.org>
18476
18477         * doc/posix-headers/sys_resource.texi: Reorder items.
18478
18479 2008-09-26  Jim Meyering  <meyering@redhat.com>
18480
18481         fts: tweak inode comparison function
18482         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
18483         inode numbers, as documented.
18484
18485         fts: sort dirent entries on inode number before traversing
18486         This avoids a quadratic, seek-related performance penalty when
18487         operating on a directory containing many entries (measurable at 10k;
18488         3.5 hours at 2 million entries with a cold cache) on certain types
18489         of file systems, including ext3 and ext4, but not tmpfs.
18490         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
18491         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
18492         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
18493         (fs_handles_readdir_ordered_dirents_efficiently): New function.
18494         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
18495         (fts_build): Set the stat.st_ino member from D_INO.
18496         If it is likely to be useful, sort dirent entries on inode number.
18497
18498         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
18499         and the struct statfs.f_type member.
18500         * modules/fts (Depends-on): Add d-ino.
18501
18502 2008-09-26  Bruno Haible  <bruno@clisp.org>
18503
18504         * modules/sigpipe-die (Depends-on): Add sigpipe.
18505
18506         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
18507         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
18508         and GNULIB_STDIO_H_SIGPIPE are set.
18509         * lib/stdio-write.c: New file.
18510         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
18511         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
18512         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
18513         REPLACE_STDIO_WRITE_FUNCS.
18514         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
18515         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
18516         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
18517         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
18518         * modules/stdio (Files): Add lib/stdio-write.c.
18519         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
18520         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
18521         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
18522         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
18523         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
18524         REPLACE_FPRINTF_POSIX.
18525         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
18526         REPLACE_PRINTF_POSIX.
18527         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
18528         REPLACE_VFPRINTF_POSIX.
18529         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
18530         REPLACE_VPRINTF_POSIX.
18531         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
18532         SIGPIPE issue.
18533         * doc/posix-functions/fputc.texi: Likewise.
18534         * doc/posix-functions/fputs.texi: Likewise.
18535         * doc/posix-functions/fwrite.texi: Likewise.
18536         * doc/posix-functions/printf.texi: Likewise.
18537         * doc/posix-functions/putc.texi: Likewise.
18538         * doc/posix-functions/putchar.texi: Likewise.
18539         * doc/posix-functions/puts.texi: Likewise.
18540         * doc/posix-functions/vfprintf.texi: Likewise.
18541         * doc/posix-functions/vprintf.texi: Likewise.
18542
18543         * modules/safe-write (Depends-on): Add write.
18544
18545         * modules/sigpipe-tests: New file.
18546         * tests/test-sigpipe.c: New file.
18547         * tests/test-sigpipe.sh: New file.
18548
18549         * modules/write: New file.
18550         * lib/unistd.in.h: Include <sys/types.h>.
18551         (write): New declaration.
18552         * lib/write.c: New file.
18553         * m4/write.m4: New file.
18554         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18555         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
18556         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
18557         GNULIB_WRITE, REPLACE_WRITE.
18558         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
18559         and the SIGPIPE issue.
18560
18561         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
18562         (raise): New declaration.
18563         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
18564         (ext_signal): New function.
18565         (rpl_raise): New function.
18566         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
18567         GNULIB_SIGNAL_H_SIGPIPE.
18568         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
18569         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
18570
18571         * modules/sigpipe: New file.
18572         * m4/sigpipe.m4: New file.
18573
18574 2008-09-25  Derek Price  <derek@ximbiot.com>
18575             Bruno Haible  <bruno@clisp.org>
18576
18577         * gnulib-tool (func_import): Report all license incompatibilities, not
18578         just the first one.
18579
18580 2008-09-25  Bruno Haible  <bruno@clisp.org>
18581
18582         * gnulib-tool (func_import): When computing the edits, consider not
18583         only the Makefile.ams that exist but also those that will be generated.
18584
18585 2008-09-25  Simon Josefsson  <simon@josefsson.org>
18586
18587         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
18588         fixes gnulib-tool --test warning about duplicate dependency.
18589
18590 2008-09-25  Bruno Haible  <bruno@clisp.org>
18591
18592         * gnulib-tool: Don't ask the user to perform edits in the generated
18593         Makefile.ams.
18594         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
18595         apply to the Makefile.am being generated.
18596         (func_emit_tests_Makefile_am): Execute edits that apply to the
18597         Makefile.am being generated.
18598         (func_import): Setup list of Makefile.am edits before emitting the
18599         Makefile.ams, not at the end.
18600         (func_create_testdir): Update.
18601         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18602
18603 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18604
18605         * gnulib-tool (func_import): Store the --tests-base option in the
18606         comment in gnulib-cache.m4.
18607
18608 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
18609
18610         * NEWS: Document increased portability that sys_select now provides.
18611
18612         * lib/sys_select.in.h: Install select wrapper.
18613         * lib/sys_socket.in.h: Use more descriptive name when there is no
18614         select wrapper.
18615         * lib/winsock-select.c: New.
18616         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
18617         Require gl_HEADER_SYS_SOCKET.
18618         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
18619         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
18620         * tests/test-sys_select.c: Add functional tests.
18621
18622 2008-09-24  Eric Blake  <ebb9@byu.net>
18623
18624         open, fopen: close fd leak in last patch
18625         * lib/open.c (rpl_open): Close fd before returning error.
18626         * lib/fopen.c (rpl_fopen): Close fd before returning error.
18627         * doc/posix-functions/open.texi (open): Document that Irix also
18628         has the bug.
18629         * doc/posix-functions/fopen.texi (fopen): Likewise.
18630         Reported by Paolo Bonzini.
18631
18632 2008-09-24  Bruno Haible  <bruno@clisp.org>
18633
18634         Ensure that a filename ending in a slash cannot be used to access a
18635         non-directory.
18636         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
18637         to check whether it's really a directory.
18638         * lib/fopen.c: Include fcntl.h, unistd.h.
18639         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
18640         and fdopen().
18641         * modules/fopen (Depends-on): Add unistd.
18642         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
18643         * tests/test-fopen.c (main): Likewise.
18644         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
18645         * doc/posix-functions/fopen.texi: Likewise.
18646         Reported by Eric Blake.
18647
18648 2008-09-23  Eric Blake  <ebb9@byu.net>
18649
18650         c-stack: avoid compiler optimizations when provoking overflow
18651         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
18652         recursion harder to optimize, to ensure a stack overflow occurs.
18653         * tests/test-c-stack.c (recurse): Likewise.
18654         Borrowed from libsigsegv.
18655
18656         c-stack: work around Irix sigaltstack bug
18657         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
18658         whether sigaltstack uses wrong end of stack_t (copied in part from
18659         libsigsegv).
18660         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
18661         Irix bug, without requiring an over-allocation.
18662         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
18663         bug.
18664
18665         fopen: document mingw bug on directories
18666         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
18667         not allowing a stream visiting a directory, even though reading
18668         from such a stream is not portable.
18669
18670 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
18671
18672         * lib/poll.c: Rewrite.
18673         * modules/poll: Depend on alloca.
18674
18675 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
18676
18677         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
18678         instead define prototypes for a full set of wrappers.  Ensure
18679         that Cygwin does not use the compatibility code, which is only
18680         for MinGW.
18681         * lib/winsock.c: New.
18682         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
18683         * modules/sys_socket: Add lib/winsock.c.
18684
18685         * modules/poll-tests: Add errno and perror.
18686         * tests/test-poll.c: Use ioctl, not ioctlsocket.
18687
18688 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
18689
18690         * tests/test-poll.c: Downgrade minimum needed Winsock version.
18691
18692 2008-09-23  Bruno Haible  <bruno@clisp.org>
18693
18694         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
18695         * doc/glibc-functions/*: Likewise.
18696
18697 2008-09-23  Simon Josefsson  <simon@josefsson.org>
18698
18699         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
18700         success.
18701
18702 2008-09-22  Eric Blake  <ebb9@byu.net>
18703             Bruno Haible  <bruno@clisp.org>
18704
18705         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
18706         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
18707         supply %A but mishandle pseudo-NaN.
18708         Reported by Simon Josefsson.
18709
18710 2008-09-21  Bruno Haible  <bruno@clisp.org>
18711
18712         * tests/test-lock.c (main): Tweak skip message.
18713         * tests/test-tls.c (main): Likewise.
18714
18715 2008-09-21  Bruno Haible  <bruno@clisp.org>
18716
18717         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
18718         whether 'struct sigaction' has sa_sigaction here...
18719         (gl_PREREQ_SIG_HANDLER_H): ... not here.
18720         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
18721
18722 2008-09-21  Bruno Haible  <bruno@clisp.org>
18723
18724         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
18725         section.
18726         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
18727         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
18728         the new section.
18729         (Support for obsolete systems lacking POSIX:2001): New section.
18730         (String handling <string.h>): Move strdup to the new section.
18731         Suggested by Simon Josefsson and Paolo Bonzini.
18732
18733 2008-09-21  Bruno Haible  <bruno@clisp.org>
18734
18735         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
18736         exponents in %e and %g results on 'long double'. Needed for mingw's
18737         improved *printf functions.
18738         * tests/test-vasprintf-posix.c (test_function): Likewise.
18739         * tests/test-snprintf-posix.h (test_function): Likewise.
18740         * tests/test-sprintf-posix.h (test_function): Likewise.
18741         Reported by Eric Blake.
18742
18743 2008-09-21  Bruno Haible  <bruno@clisp.org>
18744
18745         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
18746         * tests/test-sprintf-posix.h (test_function): Likewise.
18747
18748 2008-09-21  Bruno Haible  <bruno@clisp.org>
18749
18750         * modules/getpass (Depends-on): Add strdup-posix.
18751
18752         New module 'strdup-posix'.
18753         * modules/strdup-posix: New file.
18754         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
18755         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
18756         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18757         REPLACE_STRDUP.
18758         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
18759         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
18760         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18761         strdup-posix.
18762
18763         * modules/strdup (Depends-on): Remove malloc-posix.
18764
18765 2008-09-20  Bruno Haible  <bruno@clisp.org>
18766
18767         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
18768         Wildenhues.
18769
18770 2008-09-20  Bruno Haible  <bruno@clisp.org>
18771
18772         Ensure that wint_t gets defined on IRIX 5.3.
18773         * lib/wchar.in.h (wint_t): Define if not defined by the system.
18774         * lib/wctype.in.h (wint_t): Likewise.
18775         (__wctype_wint_t): Remove type.
18776         (isw*): Use wint_t instead of __wctype_wint_t.
18777         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
18778         * modules/wchar (Files): Add m4/wint_t.m4.
18779         (Makefile.am): Substitute HAVE_WINT_T.
18780         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
18781         * tests/test-wctype.c: Check that wint_t is defined.
18782         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
18783         * doc/posix-headers/wctype.texi: Likewise.
18784         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18785
18786 2008-09-18  Bruno Haible  <bruno@clisp.org>
18787
18788         * gnulib-tool (func_exit): Update comment.
18789
18790 2008-09-18  Simon Josefsson  <simon@josefsson.org>
18791
18792         * modules/getaddrinfo (Depends-on): Remove strdup, this module
18793         assumes strdup exists and does not depend on strdup to return
18794         ENOMEM on out of memory conditions.
18795
18796 2008-09-18  Bruno Haible  <bruno@clisp.org>
18797
18798         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
18799         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
18800         digits for the exponent.
18801
18802 2008-09-18  Jim Meyering  <meyering@redhat.com>
18803             Bruno Haible  <bruno@clisp.org>
18804
18805         * lib/vasnprintf.c (decimal_point_char): Define also if
18806         NEED_PRINTF_INFINITE_LONG_DOUBLE.
18807
18808 2008-09-16  Bruno Haible  <bruno@clisp.org>
18809         and Eric Blake  <ebb9@byu.net>
18810
18811         vasnprintf: support Irix 5.3
18812         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
18813         that mishandle long double infinity.
18814         Reported by Tom G. Christensen.
18815
18816 2008-09-16  Bruno Haible  <bruno@clisp.org>
18817
18818         * doc/glibc-functions/scandir.texi: Mention the function is missing on
18819         Solaris 9.
18820         * doc/glibc-functions/alphasort.texi: Likewise.
18821         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
18822
18823 2008-09-16  Jim Meyering  <meyering@redhat.com>
18824
18825         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
18826         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
18827         a umask modification leak out of a subshell.  Otherwise, the
18828         opensolaris /bin/sh would be accepted and thus cause unwarranted
18829         failures in the coreutils test suite.
18830
18831 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
18832
18833         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
18834         to succeed.
18835
18836 2008-09-16  Jim Meyering  <meyering@redhat.com>
18837
18838         avoid spurious test failure when library is built without ACL support
18839         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
18840         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
18841         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
18842         * tests/test-copy-acl.sh: Likewise.
18843
18844 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18845
18846         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
18847         based on character occurrence counts.
18848
18849 2008-09-15  Eric Blake  <ebb9@byu.net>
18850
18851         tests: avoid some compiler warnings
18852         * tests/test-memchr.c (main): Pass NULL indirectly.
18853         * tests/test-closein.c (main): Avoid unused variable.
18854
18855 2008-09-15  Bruno Haible  <bruno@clisp.org>
18856
18857         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
18858         are missing on OpenBSD 4.0 individually.
18859         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18860
18861 2008-09-15  Bruno Haible  <bruno@clisp.org>
18862
18863         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
18864         * doc/posix-functions/strerror.texi: Mention also Cygwin.
18865         * doc/posix-functions/perror.texi: Likewise.
18866         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
18867         is missing.
18868         Reported by Eric Blake.
18869
18870         * lib/errno.in.h: Use replacement values >= 2000.
18871         Reported by Eric Blake.
18872
18873 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18874
18875         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
18876         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
18877         limit.
18878         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
18879         compareseq was aborted.
18880
18881 2008-09-14  Bruno Haible  <bruno@clisp.org>
18882
18883         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
18884         yvec_edit_count.
18885         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
18886         (fstrcmp_bounded): Simplify result computation accordingly.
18887
18888 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18889
18890         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
18891         (fstrcmp): Define in terms of fstrcmp_bounded.
18892         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
18893         lower_bound argument.
18894         Return quickly if the result is certainly < lower_bound.
18895         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
18896
18897 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18898
18899         * lib/diffseq.h (EARLY_ABORT): New macro.
18900         (compareseq): Change return type to bool. Return true when EARLY_ABORT
18901         evaluates to true.
18902
18903 2008-09-14  Bruno Haible  <bruno@clisp.org>
18904
18905         * modules/perror-tests: New file.
18906         * tests/test-perror.sh: New file.
18907         * tests/test-perror.c: New file.
18908
18909         New module 'perror'.
18910         * lib/stdio.in.h (perror): New declaration.
18911         * lib/perror.c: New file.
18912         * m4/perror.m4: New file.
18913         * modules/perror: New file.
18914         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
18915         * doc/posix-functions/perror.texi: Mention the perror module.
18916         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
18917         REPLACE_PERROR.
18918         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
18919         REPLACE_PERROR.
18920
18921 2008-09-14  Bruno Haible  <bruno@clisp.org>
18922
18923         * modules/stdio (Makefile.am): Reorder to match the order in
18924         lib/stdio.in.h.
18925         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
18926
18927 2008-09-13  Bruno Haible  <bruno@clisp.org>
18928
18929         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
18930
18931 2008-09-13  Bruno Haible  <bruno@clisp.org>
18932
18933         Extend strerror to cover the added errno values.
18934         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
18935         (rpl_strerror): Provide error messages for the added errno values and
18936         for the WSA* values.
18937         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
18938         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
18939         strerror.
18940         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
18941         * modules/strerror (Depends-on): Add errno.
18942         * doc/posix-functions/strerror.texi: Document the change.
18943         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
18944         and EOVERFLOW.
18945
18946 2008-09-13  Bruno Haible  <bruno@clisp.org>
18947
18948         * modules/EOVERFLOW: Remove file.
18949         * m4/eoverflow.m4: Remove file.
18950         * modules/EOVERFLOW-tests: Remove file.
18951         * tests/test-EOVERFLOW.c: Remove file.
18952         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
18953         * modules/ftell (Depends-on): Likewise.
18954         * modules/getdelim (Depends-on): Likewise.
18955         * modules/getugroups (Depends-on): Likewise.
18956         * modules/poll (Depends-on): Likewise.
18957         * modules/snprintf (Depends-on): Likewise.
18958         * modules/sprintf-posix (Depends-on): Likewise.
18959         * modules/vasnprintf (Depends-on): Likewise.
18960         * modules/vasprintf (Depends-on): Likewise.
18961         * modules/vfprintf-posix (Depends-on): Likewise.
18962         * modules/vsnprintf (Depends-on): Likewise.
18963         * modules/vsprintf-posix (Depends-on): Likewise.
18964         * modules/xvasprintf (Depends-on): Likewise.
18965         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18966         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
18967         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
18968         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
18969         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18970         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
18971         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
18972         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
18973         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18974         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
18975         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
18976         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
18977         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18978         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
18979         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
18980         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
18981         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18982         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
18983         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
18984         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
18985         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18986         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
18987         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
18988         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
18989         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
18990         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18991         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
18992         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
18993         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
18994         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
18995         * MODULES.html.sh: Remove EOVERFLOW.
18996         * NEWS: Mention the change.
18997
18998 2008-09-13  Bruno Haible  <bruno@clisp.org>
18999
19000         * modules/errno-tests: New file.
19001         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
19002
19003         * lib/errno.in.h: New file.
19004         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
19005         * modules/errno: New file.
19006         * doc/posix-headers/errno.texi: Update documentation.
19007         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
19008
19009 2008-09-13  Bruno Haible  <bruno@clisp.org>
19010
19011         * tests/test-poll.c: Use #if for native Windows, rather than testing
19012         __MSVCRT__.
19013
19014 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19015             Bruno Haible  <bruno@clisp.org>
19016
19017         * lib/glob.c: Don't include <pwd.h> on native Windows.
19018         (WINDOWS32): New macro.
19019         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
19020
19021 2008-09-13  Bruno Haible  <bruno@clisp.org>
19022
19023         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
19024         (ETIMEDOUT): Remove macro.
19025         (glthread_cond_timedwait_multithreaded): New declaration.
19026         (glthread_cond_timedwait): Use it.
19027         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
19028         (glthread_cond_timedwait_multithreaded): New function.
19029
19030 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
19031
19032         * modules/poll-tests: Do not check for io.h.
19033         * tests/test-poll.c: Check for __MSVCRT__ instead.
19034
19035 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
19036
19037         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
19038         * modules/poll-tests: Add inet_pton, stdbool, sockets.
19039         * tests/test-poll.c: Use them.  Use _pipe on Windows.
19040
19041 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
19042
19043         * modules/poll-tests: New.
19044         * tests/test-poll.c: New.
19045
19046 2008-09-12  Eric Blake  <ebb9@byu.net>
19047
19048         frexp: test for NetBSD failure on -0.0
19049         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
19050         not all, bugs from NetBSD 3.0 have been fixed.
19051         * doc/posix-functions/frexp.texi (frexp): Document bug.
19052         Reported by Thomas Klausner.
19053
19054         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
19055         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
19056         literal -0.0.
19057         Reported by Jonathan C. Patschke <jp@centtech.com>.
19058
19059 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19060
19061         * lib/glthread/cond.h: Use dummy implementation also if
19062         USE_WIN32_THREADS.
19063
19064 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19065
19066         * modules/fnmatch-posix (License): Change to LGPLv2+.
19067         * modules/fnmatch-gnu (License): Likewise.
19068
19069 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19070
19071         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
19072
19073 2008-09-11  Jim Meyering  <meyering@redhat.com>
19074
19075         * users.txt: Add gtk-vnc.
19076
19077 2008-09-08  Simon Josefsson  <simon@josefsson.org>
19078
19079         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
19080         rotate amounts.
19081
19082         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
19083         required for 16-bit and 8-bit rotates.
19084         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
19085         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
19086         UINT8_MAX instead of hard-coded constants.
19087         Suggested by Paul Eggert.
19088
19089 2008-09-07  Bruno Haible  <bruno@clisp.org>
19090
19091         * tests/test-striconveh.c (main): Check behaviour when converting from
19092         UTF-7.
19093
19094         Make striconveh work better with stateful encodings.
19095         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
19096         that iconv does not increment the inptr when returning -1/EINVAL.
19097
19098 2008-09-07  Bruno Haible  <bruno@clisp.org>
19099
19100         * build-aux/config.rpath: Update according to libtool-2.2.6.
19101         * build-aux/config.libpath: Likewise.
19102
19103 2008-09-06  Bruno Haible  <bruno@clisp.org>
19104
19105         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
19106         * lib/freadptr.c (freadptr): Likewise.
19107         * lib/freadseek.c (freadptrinc): Likewise.
19108         Reported by Simon Josefsson.
19109
19110 2008-09-06  Bruno Haible  <bruno@clisp.org>
19111
19112         * modules/freadptr (License): Change to LGPLv2+.
19113         * modules/freadseek (License): Likewise.
19114         Suggested by Eric Blake.
19115
19116         * modules/memchr2 (License): Change to LGPLv2+.
19117         Approved by Eric Blake.
19118
19119 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19120             Bruno Haible  <bruno@clisp.org>
19121
19122         Make gnulib-tool work with native 'sed' on AIX.
19123         * gnulib-tool (sed_noop): New variable.
19124         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
19125         func_add_or_update, func_create_testdir): Use it to initialize sed
19126         script variables.
19127         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19128
19129 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
19130             Bruno Haible  <bruno@clisp.org>
19131
19132         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
19133         also works after #include directives.
19134
19135 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
19136
19137         getdate.y: reject an out-of-range timezone value
19138         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
19139         the range [-24...+24].  When specified with only one or two digits,
19140         * tests/test-getdate.c: Tests for the fix.
19141         * doc/getdate.texi: Document this change.
19142
19143 2008-09-03  Bruno Haible  <bruno@clisp.org>
19144
19145         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
19146
19147 2008-09-02  Simon Josefsson  <simon@josefsson.org>
19148
19149         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
19150         <bruce.korb@gmail.com> with ideas from Ben Pfaff
19151         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
19152         Blake <ebb9@byu.net>.
19153
19154         * tests/test-bitrotate.c: Add more test vectors.
19155
19156 2008-09-02  Eric Blake  <ebb9@byu.net>
19157
19158         vasnprintf-posix: handle large precision via %.*d
19159         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
19160         when handling it ourselves.
19161         * tests/test-vasnprintf-posix.c (test_function): Add test.
19162         * tests/test-snprintf-posix.h (test_function): Likewise.
19163         * tests/test-sprintf-posix.h (test_function): Likewise.
19164         * tests/test-vasprintf-posix.c (test_function): Likewise.
19165         Reported by Alain Guibert.
19166
19167 2008-09-01  Eric Blake  <ebb9@byu.net>
19168
19169         c-stack: make configure-time check more robust
19170         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
19171         successful sigaction call.
19172         Reported by Tom G. Christensen.
19173
19174 2008-09-01  Bruno Haible  <bruno@clisp.org>
19175
19176         New module 'findprog-lgpl'.
19177         * modules/findprog-lgpl: New file.
19178         * lib/findprog-lgpl.c: New file.
19179         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
19180         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
19181         to decide whether to use strdup or xstrdup, concatenated_filename or
19182         xconcatenated_filename.
19183
19184 2008-09-01  Bruno Haible  <bruno@clisp.org>
19185
19186         Split module 'concat-filename' into 'concat-filename' (LGPL) and
19187         'xconcat-filename' (GPL).
19188         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
19189         (License): Change to LGPLv2+.
19190         * modules/xconcat-filename: New file.
19191         * lib/concat-filename.h (concatenated_filename): Change specification.
19192         (xconcatenated_filename): New declaration.
19193         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
19194         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
19195         memory situations.
19196         * lib/xconcat-filename.c: New file.
19197         * NEWS: Mention the change.
19198         * lib/findprog.c: Include concat-filename.h, not filename.h.
19199         (find_in_path): Use xconcatenated_filename instead of
19200         concatenated_filename.
19201         * lib/javacomp.c: Include concat-filename.h, not filename.h.
19202         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
19203         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
19204         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
19205         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
19206         instead of concatenated_filename.
19207         * lib/javaexec.c: Include concat-filename.h, not filename.h.
19208         (execute_java_class): Use xconcatenated_filename instead of
19209         concatenated_filename.
19210         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
19211         * modules/javacomp (Depends-on): Likewise.
19212         * modules/javaexec (Depends-on): Likewise.
19213
19214 2008-09-01  Bruno Haible  <bruno@clisp.org>
19215
19216         Split module 'filename' into 'filename' and 'concat-filename'.
19217         * modules/filename: Keep only lib/filename.h.
19218         (License): Change to LGPLv2+.
19219         * modules/concat-filename: New file, extracted from modules/filename.
19220         * lib/filename.h (concatenated_filename): Remove declaration.
19221         * lib/concat-filename.h: New file, extracted from lib/filename.h.
19222         * lib/concat-filename.c: Include concat-filename.h.
19223         * NEWS: Mention the change.
19224
19225 2008-09-01  Simon Josefsson  <simon@josefsson.org>
19226
19227         * lib/bitrotate.h (rotl8, rotr8): Add.
19228
19229         * modules/bitrotate (configure.ac): Need
19230         AC_REQUIRE([AC_C_INLINE]).
19231         (Description): Mention stdint.h.  Reported by Bruno Haible
19232         <bruno@clisp.org>.
19233
19234         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
19235         Paolo Bonzini <bonzini@gnu.org>.
19236
19237 2008-08-31  Bruno Haible  <bruno@clisp.org>
19238
19239         Assume Solaris specific bi-arch conventions on Solaris systems.
19240         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
19241         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
19242         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
19243         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
19244         like acl_libdirstem.
19245         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
19246         acl_libdirstem.
19247         * NEWS: Mention the change.
19248         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
19249
19250 2008-08-31  Jim Meyering  <meyering@redhat.com>
19251
19252         * lib/strftime.h: Add comments describing the two added arguments.
19253
19254         remove duplicate #include directives
19255         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
19256         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
19257
19258 2008-08-31  Bruno Haible  <bruno@clisp.org>
19259
19260         New module 'sigpipe-die'.
19261         * modules/sigpipe-die: New file.
19262         * lib/sigpipe-die.h: New file.
19263         * lib/sigpipe-die.c: New file.
19264         * MODULES.html.sh (Signal handling): Add sigpipe-die.
19265
19266 2008-08-31  Bruno Haible  <bruno@clisp.org>
19267
19268         Don't override previously installed signal handlers.
19269         * lib/fatal-signal.c (saved_sigactions): New variable.
19270         (uninstall_handlers): Reset the signal to the saved handler, not
19271         to SIG_DFL (except when ignored).
19272         (install_handlers): Save the previous handlers.
19273
19274 2008-08-30  Bruno Haible  <bruno@clisp.org>
19275
19276         * gnulib-tool (func_reset_sigpipe): New function.
19277         (func_get_automake_snippet, func_modules_transitive_closure,
19278         func_import): Invoke it before a join command that reads from stdin,
19279         to avoid "echo: write error: Broken pipe" error messages on stderr.
19280         Reported by Sam Steingold <sds@gnu.org>.
19281
19282 2008-08-30  Bruno Haible  <bruno@clisp.org>
19283
19284         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
19285         Code copied from m4/open.m4.
19286         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
19287         access and the filename ends in a slash. Code copied from lib/open.c.
19288         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
19289         * tests/test-fopen.c (main): Check against bug with trailing slash.
19290
19291 2008-08-29  Bruno Haible  <bruno@clisp.org>
19292
19293         Avoid some "gcc -pedantic" warnings.
19294         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
19295         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
19296         * lib/dirent.in.h: Likewise.
19297         * lib/fcntl.in.h: Likewise.
19298         * lib/float.in.h: Likewise.
19299         * lib/iconv.in.h: Likewise.
19300         * lib/inttypes.in.h: Likewise.
19301         * lib/locale.in.h: Likewise.
19302         * lib/math.in.h: Likewise.
19303         * lib/netinet_in.in.h: Likewise.
19304         * lib/search.in.h: Likewise.
19305         * lib/signal.in.h: Likewise.
19306         * lib/stdarg.in.h: Likewise.
19307         * lib/stdint.in.h: Likewise.
19308         * lib/stdio.in.h: Likewise.
19309         * lib/stdlib.in.h: Likewise.
19310         * lib/string.in.h: Likewise.
19311         * lib/strings.in.h: Likewise.
19312         * lib/sys_select.in.h: Likewise.
19313         * lib/sys_socket.in.h: Likewise.
19314         * lib/sys_stat.in.h: Likewise.
19315         * lib/sys_time.in.h: Likewise.
19316         * lib/sysexits.in.h: Likewise.
19317         * lib/time.in.h: Likewise.
19318         * lib/unistd.in.h: Likewise.
19319         * lib/wchar.in.h: Likewise.
19320         * lib/wctype.in.h: Likewise.
19321         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
19322         * modules/fchdir (Makefile.am): Likewise.
19323         * modules/fcntl (Makefile.am): Likewise.
19324         * modules/float (Makefile.am): Likewise.
19325         * modules/iconv_open (Makefile.am): Likewise.
19326         * modules/inttypes (Makefile.am): Likewise.
19327         * modules/locale (Makefile.am): Likewise.
19328         * modules/math (Makefile.am): Likewise.
19329         * modules/netinet_in (Makefile.am): Likewise.
19330         * modules/search (Makefile.am): Likewise.
19331         * modules/signal (Makefile.am): Likewise.
19332         * modules/stdarg (Makefile.am): Likewise.
19333         * modules/stdint (Makefile.am): Likewise.
19334         * modules/stdio (Makefile.am): Likewise.
19335         * modules/stdlib (Makefile.am): Likewise.
19336         * modules/string (Makefile.am): Likewise.
19337         * modules/strings (Makefile.am): Likewise.
19338         * modules/sys_select (Makefile.am): Likewise.
19339         * modules/sys_socket (Makefile.am): Likewise.
19340         * modules/sys_stat (Makefile.am): Likewise.
19341         * modules/sys_time (Makefile.am): Likewise.
19342         * modules/sysexits (Makefile.am): Likewise.
19343         * modules/time (Makefile.am): Likewise.
19344         * modules/unistd (Makefile.am): Likewise.
19345         * modules/wchar (Makefile.am): Likewise.
19346         * modules/wctype (Makefile.am): Likewise.
19347         Reported by Reuben Thomas <rrt@sc3d.org>.
19348
19349 2008-08-29  Bruno Haible  <bruno@clisp.org>
19350
19351         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
19352         any more.
19353
19354 2008-08-29  Simon Josefsson  <simon@josefsson.org>
19355
19356         * MODULES.html.sh (Misc): Add bitrotate.
19357
19358         * modules/bitrotate: New file.
19359
19360         * lib/bitrotate.h: New file.
19361
19362         * modules/bitrotate-tests: New file.
19363
19364         * tests/test-bitrotate.c: New file.
19365
19366         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
19367         on the bitrotate module.
19368
19369         * lib/arctwo.c: Use new bitrotate module.
19370
19371 2008-08-29  Jim Meyering  <meyering@redhat.com>
19372
19373         bootstrap: merge changes from coreutils
19374         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
19375         of copied files.  Remove a kludge, now that this is fixed.
19376         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
19377         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
19378         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
19379
19380 2008-08-29  Bruno Haible  <bruno@clisp.org>
19381
19382         * MODULES.html.sh: Remove --cvs-urls option.
19383
19384 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
19385
19386         maint.mk: adjust to file name change
19387         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
19388
19389 2008-08-28  Jim Meyering  <meyering@redhat.com>
19390
19391         * modules/getndelim2 (License): Relicense to LGPLv2+.
19392         Approved by Richard Stallman for the version of 1995, and by
19393         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
19394
19395 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
19396
19397         * lib/getdelim.c (flockfile, funlockfile): Make all of them
19398         dummy if one is not available.  Do not touch them if
19399         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
19400         (getc_maybe_unlocked): New.
19401         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
19402
19403 2008-08-26  Eric Blake  <ebb9@byu.net>
19404
19405         doc/INSTALL: resync from autoconf
19406         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
19407         (INSTALL_PRELUDE): Delete; this is done more efficiently by
19408         moving...
19409         * install.texi [!autoconf]: ...here.  Resync from autoconf.
19410         * INSTALL: Regenerate.
19411         * INSTALL.ISO: New file.
19412         * INSTALL.UTF-8: Likewise.
19413
19414 2008-08-26  Jim Meyering  <meyering@redhat.com>
19415
19416         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
19417         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
19418         these definitions conditional, so that they may be overridden, too.
19419
19420 2008-08-26  Bruno Haible  <bruno@clisp.org>
19421
19422         Generate INSTALL file variants with prettier quotes.
19423         * doc/Makefile (INSTALL_PRELUDE): New macro.
19424         (INSTALL): Use it.
19425         (INSTALL.ISO, INSTALL.UTF-8): New rules.
19426
19427 2008-08-26  Bruno Haible  <bruno@clisp.org>
19428
19429         Run makeinfo in an English locale.
19430         * doc/Makefile (MAKEINFO): New variable.
19431
19432 2008-08-26  Bruno Haible  <bruno@clisp.org>
19433
19434         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
19435         Suggested by Eric Blake.
19436
19437 2008-08-25  Bruno Haible  <bruno@clisp.org>
19438
19439         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
19440
19441 2008-08-25  Eric Blake  <ebb9@byu.net>
19442
19443         c-stack: test that stack overflow can be caught
19444         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
19445         that platform allows handling stack overflow; at least OS/2 EMX
19446         has sigaltstack, but crashes before transferring control to
19447         handler on stack overflow.
19448         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
19449         check for HAVE_STACK_OVERFLOW_HANDLING.
19450         Reported by Elbert Pol.
19451
19452 2008-08-25  Bruno Haible  <bruno@clisp.org>
19453
19454         * doc/posix-functions/strftime.texi: Fix description of strftime
19455         module.
19456
19457 2008-08-24  Bruno Haible  <bruno@clisp.org>
19458
19459         * tests/uniwidth/test-uc_width2.c: New file.
19460         * tests/uniwidth/test-uc_width2.sh: New file.
19461         * modules/uniwidth/width-tests (Files): Add the new files.
19462         (TESTS): Add uniwidth/test-uc_width2.sh.
19463         (TESTS_ENVIRONMENT): New variable.
19464         (check_PROGRAMS): Add test-uc_width2.
19465         (test_uc_width2_SOURCES): New variable.
19466
19467         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
19468         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
19469         not 0x00AB.
19470         Reported by Alexander V. Lukyanov <lav@netis.ru>.
19471
19472 2008-08-22  Eric Blake  <ebb9@byu.net>
19473
19474         test-lock, test-tls: mention why a test is skipped
19475         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
19476         skipped.
19477         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
19478
19479         count-one-bits: relax license
19480         * modules/count-one-bits (License): Relicense to LGPLv2+.
19481         Suggested by Ludovic Courtès, approved by Ben Pfaff.
19482
19483 2008-08-22  Andreas Schwab  <schwab@suse.de>
19484
19485         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
19486         Remove spurious space in assignment.
19487
19488 2008-08-21  Simon Josefsson  <simon@josefsson.org>
19489
19490         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
19491         Paul Eggert <eggert@CS.UCLA.EDU>.
19492
19493 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
19494
19495         * modules/gettext: Add m4/threadlib.m4.
19496
19497 2008-08-19  Eric Blake  <ebb9@byu.net>
19498
19499         test-c-stack: fix compilation failure on FreeBSD 5.0
19500         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
19501         headers before <sys/resource.h>.
19502         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
19503         the bug.
19504         Reported by Nelson H. F. Beebe.
19505
19506         strverscmp: migrate from "strverscmp.h" to <string.h>
19507         * modules/string (Makefile.am): Add new hooks.
19508         * modules/strverscmp (Files): Remove strverscmp.h.
19509         (Depends-on): Add string.
19510         (configure.ac): Add indicator.
19511         (Include): Mention new header.
19512         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
19513         defaults.
19514         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
19515         results.
19516         * lib/strverscmp.h: Delete.
19517         * lib/string.in.h (strverscmp): Provide declaration, when needed.
19518         * tests/test-strverscmp.c (includes): Adjust client.
19519         * lib/check-version.c (includes): Likewise.
19520         * NEWS: Document the change.
19521
19522         strverscmp: add unit test
19523         * modules/strverscmp-tests: New file.
19524         * tests/test-strverscmp.c: Likewise.
19525
19526 2008-08-19  Simon Josefsson  <simon@josefsson.org>
19527
19528         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
19529         regarding Windows crypto stuff, from Mono.
19530
19531 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
19532
19533         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
19534         if present, for intel RND.  Return error on failures.
19535
19536 2008-08-18  Ben Pfaff  <blp@gnu.org>
19537
19538         gitlog-to-changelog: give better diagnostic for failed pipe-open
19539         * build-aux/gitlog-to-changelog: Improve error message: suggest
19540         that the version of Git may be too old.
19541
19542 2008-08-18  Simon Josefsson  <simon@josefsson.org>
19543
19544         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
19545         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
19546
19547 2008-08-18  Bruno Haible  <bruno@clisp.org>
19548
19549         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
19550         pthread_in_use().
19551
19552 2008-08-18  Bruno Haible  <bruno@clisp.org>
19553
19554         * lib/glthread/threadlib.c: Include <pthread.h>.
19555
19556 2008-08-18  Bruno Haible  <bruno@clisp.org>
19557
19558         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
19559         glthread_recursive_lock_* macros.
19560         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
19561         Fix syntax error.
19562
19563 2008-08-18  Bruno Haible  <bruno@clisp.org>
19564
19565         * lib/glthread/thread.c: Avoid forcing a context switch right after
19566         thread creation.
19567
19568 2008-08-17  Bruno Haible  <bruno@clisp.org>
19569
19570         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
19571         * lib/glthread/thread.h: Provide Win32 specific implementation.
19572         * modules/thread (Files): Add lib/glthread/thread.c.
19573         (Depends-on): Add lock.
19574         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
19575
19576 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19577
19578         New module 'yield'.
19579         * modules/yield: New file.
19580         * lib/glthread/yield.h: New file.
19581         * m4/yield.m4: New file.
19582         * MODULES.html.sh (Multithreading): Add yield.
19583
19584 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19585
19586         New module 'thread'.
19587         * modules/thread: New file.
19588         * lib/glthread/thread.h: New file.
19589         * m4/thread.m4: New file.
19590         * MODULES.html.sh (Multithreading): Add thread.
19591
19592 2008-08-17  Bruno Haible  <bruno@clisp.org>
19593
19594         * lib/glthread/lock.h: Include <stdlib.h> always.
19595         * lib/glthread/tls.h: Likewise.
19596         * lib/glthread/cond.h: Likewise.
19597
19598 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19599
19600         New module 'cond'.
19601         * modules/cond: New file.
19602         * lib/glthread/cond.h: New file.
19603         * lib/glthread/cond.c: New file.
19604         * m4/cond.m4: New file.
19605         * MODULES.html.sh (Multithreading): Add cond.
19606
19607 2008-08-16  Eric Blake  <ebb9@byu.net>
19608
19609         c-stack: fix regression on Irix 5.3 from 2008-06-21
19610         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
19611         sa_sigaction...
19612         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
19613         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
19614         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
19615         * modules/signal (Makefile.am): Use the value.
19616         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
19617         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
19618         * doc/posix-headers/signal.texi (signal.h): Document this
19619         portability issue.
19620         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
19621         Reported by Tom G. Christensen.
19622
19623 2008-08-17  Bruno Haible  <bruno@clisp.org>
19624
19625         New module 'threadlib'.
19626         * modules/threadlib: New file.
19627         * lib/glthread/threadlib.c: New file, extracted from
19628         lib/glthread/lock.c.
19629         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
19630         functions.
19631         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
19632         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
19633         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
19634         macros.
19635         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
19636         (gl_DISABLE_THREADS): Remove macro.
19637         * modules/lock (Files): Remove build-aux/config.rpath.
19638         (Depends-on): Remove havelib. Add threadlib.
19639         (configure.ac-early): Remove section.
19640         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
19641         * modules/tls (Depends-on): Remove lock. Add threadlib.
19642         (Link): New section, copied from threadlib.
19643         * MODULES.html.sh (Multithreading): Add threadlib.
19644
19645 2008-08-14  Bruno Haible  <bruno@clisp.org>
19646
19647         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
19648         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
19649         glthread_rwlock_unlock, glthread_rwlock_destroy,
19650         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
19651         glthread_recursive_lock_destroy): Define as macros always.
19652         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
19653         glthread_lock_lock.
19654         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
19655         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
19656         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
19657         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
19658         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
19659         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
19660         (glthread_recursive_lock_lock_func): Renamed from
19661         glthread_recursive_lock_lock.
19662         (glthread_recursive_lock_unlock_func): Renamed from
19663         glthread_recursive_lock_unlock.
19664         (glthread_recursive_lock_destroy_func): Renamed from
19665         glthread_recursive_lock_destroy.
19666
19667 2008-08-14  Bruno Haible  <bruno@clisp.org>
19668
19669         * lib/glthread/lock.h: Renamed from lib/lock.h.
19670         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
19671         * lib/glthread/tls.h: Renamed from lib/tls.h.
19672         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
19673         * lib/fstrcmp.c: Update includes.
19674         * lib/strsignal.c: Update includes.
19675         * modules/lock (Files, Makefile.am): Update.
19676         (Include): Change to "glthread/lock.h".
19677         * modules/tls (Files, Makefile.am): Update.
19678         (Include): Change to "glthread/tls.h".
19679         * tests/test-lock.c: Update includes.
19680         * tests/test-tls.c: Update includes.
19681         * NEWS: Mention the renamed header files.
19682
19683 2008-08-11  Jim Meyering  <meyering@redhat.com>
19684
19685         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
19686
19687 2008-08-11  Eric Blake  <ebb9@byu.net>
19688
19689         test-c-stack: avoid C99-ism
19690         * tests/test-c-stack.c (main): Fix whitespace, move declaration
19691         before statement.
19692         Reported by Alain Guibert.
19693
19694 2008-08-10  Jim Meyering  <meyering@redhat.com>
19695
19696         ensure that return value of uinttostr et al are not ignored
19697         * lib/inttostr.h (__GNUC_PREREQ): Define.
19698         (__attribute_warn_unused_result__): Define.
19699         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
19700
19701 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
19702
19703         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
19704         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
19705
19706 2008-08-07  Jim Meyering  <meyering@redhat.com>
19707
19708         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
19709
19710         * modules/mkstemp (License): Relicense under LGPLv2+.
19711         * modules/tempname (License): Likewise.
19712
19713 2008-08-06  Bruno Haible  <bruno@clisp.org>
19714
19715         * lib/poll.c (poll): Further micro-optimization.
19716
19717 2008-08-06  Jim Meyering  <meyering@redhat.com>
19718
19719         inet_pton.c: use locale-independent tolower
19720         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
19721         (inet_pton6): Use c_tolower rather than tolower.
19722         * modules/inet_pton (Depends-on): Add c-ctype.
19723
19724 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
19725
19726         * lib/poll.c (poll): Avoid division when timeout is 0, cache
19727         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
19728
19729 2008-08-06  Jim Meyering  <meyering@redhat.com>
19730
19731         * modules/inet_pton (License): Relicense under LGPLv2+.
19732
19733 2008-08-03  Bruno Haible  <bruno@clisp.org>
19734
19735         Additional non-aborting API for lock and tls.
19736         * lib/lock.h: Include <errno.h>.
19737         (glthread_lock_init): New macro/function.
19738         (gl_lock_init): Define as wrapper around glthread_lock_init.
19739         (glthread_lock_lock): New macro/function.
19740         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
19741         (glthread_lock_unlock): New macro/function.
19742         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
19743         (glthread_lock_destroy): New macro/function.
19744         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
19745         (glthread_rwlock_init): New macro/function.
19746         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
19747         (glthread_rwlock_rdlock): New macro/function.
19748         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
19749         (glthread_rwlock_wrlock): New macro/function.
19750         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
19751         (glthread_rwlock_unlock): New macro/function.
19752         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
19753         (glthread_rwlock_destroy): New macro/function.
19754         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
19755         (glthread_recursive_lock_init): New macro/function.
19756         (gl_recursive_lock_init): Define as wrapper around
19757         glthread_recursive_lock_init.
19758         (glthread_recursive_lock_lock): New macro/function.
19759         (gl_recursive_lock_lock): Define as wrapper around
19760         glthread_recursive_lock_lock.
19761         (glthread_recursive_lock_unlock): New macro/function.
19762         (gl_recursive_lock_unlock): Define as wrapper around
19763         glthread_recursive_lock_unlock.
19764         (glthread_recursive_lock_destroy): New macro/function.
19765         (gl_recursive_lock_destroy): Define as wrapper around
19766         glthread_recursive_lock_destroy.
19767         (glthread_once): New macro/function.
19768         (gl_once): Define as wrapper around glthread_once.
19769         Update function declarations.
19770         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
19771         glthread_rwlock_init. Return error code.
19772         (glthread_rwlock_rdlock_multithreaded): Renamed from
19773         glthread_rwlock_rdlock. Return error code.
19774         (glthread_rwlock_wrlock_multithreaded): Renamed from
19775         glthread_rwlock_wrlock. Return error code.
19776         (glthread_rwlock_unlock_multithreaded): Renamed from
19777         glthread_rwlock_unlock. Return error code.
19778         (glthread_rwlock_destroy_multithreaded): Renamed from
19779         glthread_rwlock_destroy. Return error code.
19780         (glthread_recursive_lock_init_multithreaded): Renamed from
19781         glthread_recursive_lock_init. Return error code.
19782         (glthread_recursive_lock_lock_multithreaded): Renamed from
19783         glthread_recursive_lock_lock. Return error code.
19784         (glthread_recursive_lock_unlock_multithreaded): Renamed from
19785         glthread_recursive_lock_unlock. Return error code.
19786         (glthread_recursive_lock_destroy_multithreaded): Renamed from
19787         glthread_recursive_lock_destroy. Return error code.
19788         (glthread_once_call): Make static.
19789         (glthread_once_multithreaded): Renamed from glthread_once.
19790         * lib/tls.h: Include <errno.h>.
19791         (glthread_tls_key_init): New macro/function.
19792         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
19793         (glthread_tls_set): New macro/function.
19794         (gl_tls_set): Define as wrapper around glthread_tls_set.
19795         (glthread_tls_key_destroy): New macro/function.
19796         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
19797         Update function declarations.
19798         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
19799         glthread_tls_get.
19800         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19801
19802 2008-08-04  Eric Blake  <ebb9@byu.net>
19803
19804         gnumakefile: use space, not TAB, outside of targets
19805         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
19806
19807 2008-08-02  Jim Meyering  <meyering@redhat.com>
19808
19809         getdate.y: avoid locale-dependent date parsing failure
19810         In Turkish locales, getdate would fail to recognize keywords
19811         containing a lowercase "i".  The solution is not to rely on
19812         locale-sensitive case-conversion.
19813         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
19814         (lookup_word): Use c_toupper in place of toupper.
19815         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
19816         Reported by Vefa Bicakci <bicave@superonline.com> in
19817         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
19818         * modules/getdate (Depends-on): Add c-ctype.
19819
19820 2008-08-02  Bruno Haible  <bruno@clisp.org>
19821
19822         * gnulib-tool (func_import): When updating or creating a .gitignore
19823         file, prepend each added line with a slash, and ignore leading slashes
19824         from the existing lines.
19825         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
19826
19827 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19828
19829         Portability fix for GNU make 3.79.1.
19830         * top/GNUmakefile: Avoid 'else COND', which older GNU make
19831         versions do not understand.
19832
19833 2008-08-01  Bruno Haible  <bruno@clisp.org>
19834
19835         Work around bug of HP-UX 10.20 cc with -0.0 literal.
19836         * tests/test-isnanf.h (zero): New variable.
19837         (main): Avoid literal -0.0f.
19838         * tests/test-isnand.h (zero): New variable.
19839         (main): Avoid literal -0.0.
19840         * tests/test-isnanl.h (zero): New variable.
19841         (main): Avoid literal -0.0L.
19842         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
19843         (test_float, test_double, test_long_double): Avoid literals -0.0f,
19844         -0.0, -0.0L.
19845         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
19846         (test_signbitd): Avoid literal -0.0.
19847         (test_signbitl): Avoid literal -0.0L.
19848         * tests/test-ceilf1.c (zero): New variable.
19849         (main): Avoid literal -0.0f.
19850         * tests/test-ceill.c (zero): New variable.
19851         (main): Avoid literal -0.0L.
19852         * tests/test-floorf1.c (zero): New variable.
19853         (main): Avoid literal -0.0f.
19854         * tests/test-floorl.c (zero): New variable.
19855         (main): Avoid literal -0.0L.
19856         * tests/test-roundf1.c (zero): New variable.
19857         (main): Avoid literal -0.0f.
19858         * tests/test-round1.c (zero): New variable.
19859         (main): Avoid literal -0.0.
19860         * tests/test-roundl.c (zero): New variable.
19861         (main): Avoid literal -0.0L.
19862         * tests/test-truncf1.c (zero): New variable.
19863         (main): Avoid literal -0.0f.
19864         * tests/test-trunc1.c (zero): New variable.
19865         (main): Avoid literal -0.0.
19866         * tests/test-truncl.c (zero): New variable.
19867         (main): Avoid literal -0.0L.
19868         * tests/test-frexp.c (zero): New variable.
19869         (main): Avoid literal -0.0.
19870         * tests/test-frexpl.c (zero): New variable.
19871         (main): Avoid literal -0.0L.
19872         * tests/test-ldexpl.c (zero): New variable.
19873         (main): Avoid literal -0.0L.
19874         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
19875         (zerod, zerol): New variables.
19876         (test_function): Avoid literals -0.0, -0.0L.
19877         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
19878         (zerod, zerol): New variables.
19879         (test_function): Avoid literals -0.0, -0.0L.
19880         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
19881         (zerod, zerol): New variables.
19882         (test_function): Avoid literals -0.0, -0.0L.
19883         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
19884         (zerod, zerol): New variables.
19885         (test_function): Avoid literals -0.0, -0.0L.
19886         * tests/test-strtod.c (zero): New variable.
19887         (main): Avoid literal -0.0.
19888         Reported by Jonathan C. Patschke <jp@centtech.com>.
19889
19890 2008-07-31  Jim Meyering  <meyering@redhat.com>
19891
19892         sha256.h: correct definition of SHA224_DIGEST_SIZE
19893         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
19894         Reported by Paulie Pena IV <paulie4@gmail.com>.
19895         Define as 224 / 8, rather than as a literal.
19896         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
19897         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
19898         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
19899
19900 2008-07-31  Bruno Haible  <bruno@clisp.org>
19901
19902         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
19903         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
19904         Reported by Jonathan Patschke <jp@centtech.com>.
19905
19906 2008-07-31  Bruno Haible  <bruno@clisp.org>
19907
19908         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
19909         Reported by Paolo Bonzini <bonzini@gnu.org>.
19910
19911 2008-07-30  Eric Blake  <ebb9@byu.net>
19912
19913         test-strtod: allow compilation without -lm
19914         * tests/test-strtod.c (main): Avoid link dependence on fabs.
19915         Reported by Dennis Clarke <blastwave@gmail.com>.
19916
19917 2008-07-28  Jim Meyering  <meyering@redhat.com>
19918
19919         bootstrap: work also when there are no .po files in po/
19920         * build-aux/bootstrap (update_po_files): Complete the change
19921         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
19922
19923 2008-07-27  Jim Meyering  <meyering@redhat.com>
19924
19925         * users.txt: Add zile.
19926
19927 2008-07-26  Ben Pfaff  <blp@gnu.org>
19928
19929         Add missing dependencies on new m4/exponent[fdl].m4 files.
19930         * modules/isnanf-nolibm: Add m4/exponentf.m4.
19931         * modules/isnand-nolibm: Add m4/exponentd.m4.
19932         * modules/isnanl-nolibm: Add m4/exponentl.m4.
19933         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
19934         m4/isnan[fdl].m4, because the macros actually used moved.
19935         Reported by Jim Meyering.
19936
19937 2008-07-14  Ben Pfaff  <blp@gnu.org>
19938
19939         Add isinf module.
19940         * lib/isinf.c: New file.
19941         * lib/math.in.h: Define isinf macro if we have decided to replace
19942         it.
19943         * m4/isinf.m4: New file.
19944         * m4/math_h.m4: Initialize and substitute variables for isinf
19945         module.
19946         * modules/isinf: New file.
19947         * modules/isinf-tests: New file.
19948         * modules/math: Add substitutions for new module.
19949         * tests/test-isinf.c: New file.
19950         * doc/posix-functions/isinf.texi: Mention new module.
19951         * MODULES.html.sh: Mention new module.
19952
19953 2008-07-14  Ben Pfaff  <blp@gnu.org>
19954
19955         Factor out some macros for use by additional modules.
19956         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
19957         exponentf.m4.
19958         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
19959         exponentd.m4.
19960         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
19961         file exponentl.m4.
19962         * m4/exponentf.m4: New file.
19963         * m4/exponentd.m4: New file.
19964         * m4/exponentl.m4: New file.
19965         * modules/isnanf: Use new file m4/exponentf.m4.
19966         * modules/isnand: Use new file m4/exponentd.m4.
19967         * modules/isnanl: Use new file m4/exponentl.m4.
19968
19969 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
19970
19971         mktime.c: normalize tp->tm_isdst value to -1/0/1.
19972         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
19973         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
19974         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
19975
19976         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
19977         readlink on platforms without PATH_MAX.
19978
19979 2008-07-21  Eric Blake  <ebb9@byu.net>
19980
19981         Warn, not fail, on stale version.
19982         * top/GNUmakefile (_curr-ver): Tone down previous patch.
19983
19984         Don't allow installation with stale devel version number.
19985         * top/GNUmakefile (_is-install-target): New macro.
19986         (_curr-ver): Forbid installation with stale version number.
19987
19988 2008-07-20  Bruno Haible  <bruno@clisp.org>
19989
19990         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
19991         TESTS_ENVIRONMENT.
19992         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
19993
19994 2008-07-20  Bruno Haible  <bruno@clisp.org>
19995
19996         * lib/c-stack.h (c_stack_action): Add documentation.
19997         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
19998
19999 2008-07-20  Bruno Haible  <bruno@clisp.org>
20000
20001         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
20002         * modules/readlink (License): Likewise.
20003
20004 2008-07-17  Eric Blake  <ebb9@byu.net>
20005
20006         * modules/c-stack (Link): Fix typo.
20007
20008         Make c-stack use libsigsegv, when available.
20009         * modules/c-stack (Depends-on): Add libsigsegv.
20010         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
20011         needed.
20012         * lib/c-stack.c (SIGSTKSZ): Define fallback.
20013         (segv_handler, overflow_handler, c_stack_action)
20014         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
20015         implementation when libsigsegv is available, but only when using
20016         the library is necessary.
20017         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
20018         comment, explaining why XSI check fails on Linux.
20019         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
20020         * tests/test-c-stack2.sh: Tweak skip message.
20021         * NEWS: Document new link-time requirements.
20022
20023 2008-07-16  Eric Blake  <ebb9@byu.net>
20024
20025         c-stack: Expose false positives when not using libsigsegv.
20026         * modules/c-stack-tests (Files): Expand test.
20027         * tests/test-c-stack.c (main): Add means to conditionally trigger
20028         non-overflow SIGSEGV.
20029         * tests/test-c-stack2.sh: New file.
20030
20031 2008-07-14  Bruno Haible  <bruno@clisp.org>
20032
20033         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
20034         Reported by Eric Blake.
20035
20036 2008-07-14  Sam Steingold  <sds@gnu.org>
20037             Bruno Haible  <bruno@clisp.org>
20038
20039         New module libsigsegv.
20040         * modules/libsigsegv: New file.
20041         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
20042         modifications.
20043         * MODULES.html.sh (Signal handling): New section.
20044
20045 2008-07-14  Bruno Haible  <bruno@clisp.org>
20046
20047         * modules/unictype/ctype-* (Description): Add the word "function".
20048         Improves the resulting doc in MODULES.html.
20049
20050 2008-07-12  Ben Pfaff  <blp@gnu.org>
20051
20052         Add longlong module.
20053         * modules/longlong: New file.
20054
20055 2008-07-12  Bruno Haible  <bruno@clisp.org>
20056
20057         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
20058         to empty.
20059
20060 2008-07-10  Ben Pfaff  <blp@gnu.org>
20061
20062         Add isnan module.
20063         * doc/posix-functions/isnan.texi: Mention new module.
20064         * lib/math.in.h: Define isnan macro if we have decided to replace
20065         it.
20066         * m4/isnan.m4: New file.
20067         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
20068         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
20069         also.
20070         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
20071         redundancy.
20072         * m4/math_h.m4: Initialize and substitute variables for isnan
20073         module.
20074         * modules/isnan: New file.
20075         * modules/isnan-tests: New file.
20076         * modules/math: Add substitutions for new module.
20077         * tests/test-isnan.c: New file.
20078         * MODULES.html.sh: Mention new module.
20079
20080 2008-07-10  Ben Pfaff  <blp@gnu.org>
20081
20082         Add isnanf module.
20083         * lib/isnanf.m4: New file.
20084         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
20085         (gl_HAVE_ISNANF_IN_LIBM): New macro.
20086         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
20087         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
20088         * modules/isnanf: New file.
20089         * modules/isnanf-tests: New file.
20090         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
20091         files.
20092         * tests/test-isnanf-nolibm.c: factored most of its contents into
20093         new file tests/test-isnanf.h.
20094         * tests/test-isnanf.h: New file.
20095         * tests/test-isnanf.c: New file.
20096         * MODULES.html.sh: Mention new module.
20097         * doc/glibc-functions/isnanf.texi: Mention new module.
20098
20099 2008-07-10  Ben Pfaff  <blp@gnu.org>
20100
20101         Add isnand module.
20102         * lib/isnand.h: New file.
20103         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
20104         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
20105         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
20106         functionality also.
20107         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
20108         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
20109         (gl_HAVE_ISNAND_IN_LIBM): New macro.
20110         * modules/isnand: New file.
20111         * modules/isnand-tests: New file.
20112         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
20113         files.
20114         * tests/test-isnand-nolibm.c: factored most of its contents into
20115         new file tests/test-isnand.h.
20116         * tests/test-isnand.h: New file.
20117         * tests/test-isnand.c: New file.
20118         * MODULES.html.sh: Mention new module.
20119
20120 2008-07-10  Ben Pfaff  <blp@gnu.org>
20121
20122         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
20123         * lib/isnand.h: Rename lib/isnand-nolibm.h.
20124         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
20125         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
20126         * modules/isnanf-nolibm: Update references to renamed files.
20127         * modules/isnand-nolibm: Likewise.
20128         * modules/isnanf-nolibm-tests: Likewise.
20129         * modules/isnand-nolibm-tests: Likewise.
20130         * lib/frexp.c: Likewise.
20131         * lib/isfinite.c: Likewise.
20132         * lib/signbitd.c: Likewise.
20133         * lib/signbitf.c: Likewise.
20134         * lib/vasnprintf.c: Likewise.
20135         * tests/test-ceilf1.c: Likewise.
20136         * tests/test-ceilf2.c: Likewise.
20137         * tests/test-floorf1.c: Likewise.
20138         * tests/test-floorf2.c: Likewise.
20139         * tests/test-frexp.c: Likewise.
20140         * tests/test-round1.c: Likewise.
20141         * tests/test-round2.c: Likewise.
20142         * tests/test-roundf1.c: Likewise.
20143         * tests/test-strtod.c: Likewise.
20144         * tests/test-trunc1.c: Likewise.
20145         * tests/test-trunc2.c: Likewise.
20146         * tests/test-truncf1.c: Likewise.
20147         * tests/test-truncf2.c: Likewise.
20148         * NEWS: Mention the renamed header files.
20149
20150 2008-07-11  Jim Meyering  <meyering@redhat.com>
20151
20152         vc-list-files: make the last-resort awk code more portable
20153         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
20154         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
20155         does not support it.
20156
20157 2008-07-10  Eric Blake  <ebb9@byu.net>
20158
20159         Work with tar's bootstrap.
20160         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
20161         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
20162         an m4 comment.
20163
20164 2008-07-09  Jim Meyering  <meyering@redhat.com>
20165
20166         posix-shell.m4: fix typo that made this test malfunction
20167         * m4/posix-shell.m4: Remove capitalization in variable name.
20168
20169 2008-07-08  Bruno Haible  <bruno@clisp.org>
20170
20171         * m4/onceonly.m4: Update comments.
20172         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20173
20174 2008-07-04  Jim Meyering  <meyering@redhat.com>
20175
20176         * users.txt: Add vc-dwim.
20177         (bison, coreutils): Use the gitweb URL.
20178
20179 2008-07-03  Jim Meyering  <meyering@redhat.com>
20180
20181         * users.txt: Add libffcall.  From Sam Steingold.
20182
20183 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
20184
20185         getdate.y: do not ignore TZ with relative day, month or year offset
20186         * lib/getdate.y (get_date): Move the tz-handling block to follow the
20187         relative-date-handling, since otherwise, the latter would clobber the
20188         sole output (an updated Start value) of the tz-handling block.
20189         * tests/test-getdate.c: Tests for the fix
20190
20191 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20192
20193         Recognize 'foo_LIBRARIES += libgnu.a'.
20194         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
20195         makefile snippet has already specified an installation location,
20196         also using '+='.
20197
20198 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
20199
20200         getdate.y: factor out common actions
20201         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
20202         Use them in place of open-coded actions.
20203
20204 2008-07-01  Simon Josefsson  <simon@josefsson.org>
20205
20206         Add self-test for getdate module.
20207         * modules/getdate-tests: New file.
20208         * tests/test-getdate.c: New file.
20209
20210 2008-06-29  Bruno Haible  <bruno@clisp.org>
20211
20212         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
20213         .gitignore.
20214         Reported by Sylvain Beucler <beuc@beuc.net>.
20215
20216 2008-06-29  Bruno Haible  <bruno@clisp.org>
20217
20218         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
20219         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
20220
20221 2008-06-29  Bruno Haible  <bruno@clisp.org>
20222
20223         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
20224         EXTRA_DIST.
20225         Reported by Sylvain Beucler <beuc@beuc.net>.
20226
20227 2008-06-26  Jim Meyering  <meyering@redhat.com>
20228
20229         make several modules depend on the "open" module
20230         This provides slightly increased consistency when opening-for-write
20231         the name of a non-directory spelled with a trailing slash.
20232         * modules/chdir-safer: Likewise.
20233         * modules/chown: Likewise.
20234         * modules/clean-temp: Likewise.
20235         * modules/copy-file: Likewise.
20236         * modules/fchdir: Likewise.
20237         * modules/fcntl-safer: Likewise.
20238         * modules/pipe: Likewise.
20239         * modules/utime: Likewise.
20240         Prompted by Eric Blake and Bruno Haible.
20241
20242 2008-06-24  Andreas Schwab  <schwab@suse.de>
20243
20244         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
20245         literals can be used as initializers for global variables.
20246
20247 2008-06-23  Eric Blake  <ebb9@byu.net>
20248
20249         Make gnulib-cache.m4 easier to diff.
20250         * gnulib-tool (func_import): Allow newlines when reading cached
20251         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
20252
20253 2008-06-23  Bruno Haible  <bruno@clisp.org>
20254
20255         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
20256         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
20257         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
20258         m4/signalblocking.m4.
20259         (gl_PREREQ_SIGACTION): Don't invoke it.
20260         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
20261         gl_PREREQ_SIG_HANDLER_H.
20262         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
20263         Don't check for sigaction here.
20264
20265 2008-06-23  Bruno Haible  <bruno@clisp.org>
20266
20267         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
20268         (install_handlers): Don't set the SA_RESETHAND flag.
20269
20270 2008-06-23  Bruno Haible  <bruno@clisp.org>
20271
20272         * m4/sigaction.m4: Comment fixes.
20273         * lib/signal.in.h: Likewise.
20274
20275 2008-06-23  Eric Blake  <ebb9@byu.net>
20276
20277         Fix typo.
20278         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
20279
20280         Avoid SA_ namespace.
20281         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
20282         Reported by Ralf Wildenhues.
20283
20284         Avoid test failure due to SA_RESTORER.
20285         * tests/test-sigaction.c (SA_MASK): New macro.
20286         (main): Avoid failing due to extension flags being set.
20287         Reported by Jim Meyering.
20288
20289         Revert use of sig-handler.h in sigprocmask.c.
20290         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
20291         it requires the existence of struct sigaction.
20292         * lib/sigprocmask.c (handler_t): Restore typedef.
20293         (rpl_signal, old_handlers): Use local type.
20294
20295 2008-06-22  Bruno Haible  <bruno@clisp.org>
20296
20297         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
20298         conditionally.
20299         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20300
20301 2008-06-22  Bruno Haible  <bruno@clisp.org>
20302
20303         * doc/posix-functions/siginterrupt.texi: Move note.
20304
20305         * lib/signal.in.h (SA_RESTART): New macro.
20306         * lib/sigaction.c: Update comment.
20307
20308         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
20309
20310         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
20311         (gl_PREREQ_SIGPROCMASK): Invoke it.
20312         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
20313
20314         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
20315
20316         * lib/sigprocmask.c: Update a comment.
20317
20318 2008-06-21  Eric Blake  <ebb9@byu.net>
20319
20320         Use sigaction module rather than signal().
20321         * modules/c-stack (Depends-on): Add sigaction.
20322         * modules/fatal-signal (Depends-on): Likewise.
20323         * modules/nanosleep (Depends-on): Likewise.
20324         * modules/sigprocmask (Files): Add sig-handler.h.
20325         * modules/sigaction (Files): Likewise.
20326         * lib/sig-handler.h (get_handler): New file, suggested by Paul
20327         Eggert.
20328         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
20329         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
20330         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
20331         (init_fatal_signals): Likewise.
20332         * lib/nanosleep.c (rpl_nanosleep): Likewise.
20333         (siginterrupt): Delete fallback.
20334         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
20335         instead.
20336         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
20337         siginterrupt.
20338
20339         New module sigaction, for mingw.
20340         * modules/sigaction: New module...
20341         * modules/sigaction-tests: ...and its test.
20342         * m4/sigaction.m4: New file.
20343         * lib/sigaction.c: Likewise.
20344         * tests/test-sigaction.c: Likewise.
20345         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
20346         * modules/signal (Makefile.am): Likewise.
20347         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
20348         needed.
20349         * doc/posix-headers/signal.texi (signal.h): Mention provided
20350         types.
20351         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
20352         that sigaction is preferable.
20353         * doc/posix-functions/sigaction.texi (sigaction): Mention new
20354         module.
20355         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20356         sigaction.
20357
20358         Improve robustness of sigprocmask by overriding signal.
20359         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
20360         is in use.
20361         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
20362         (SIGKILL, SIGSTOP): Provide fallbacks.
20363         (rpl_signal): Implement.
20364         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
20365         signal can be called inside handlers.
20366
20367         Fix nanosleep module on mingw.
20368         * modules/nanosleep (Depends-on): Add sys_select.
20369         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
20370
20371         Fix licensing of sigprocmask.
20372         * modules/raise (License): Relicense as LGPL.
20373
20374 2008-06-21  Bruno Haible  <bruno@clisp.org>
20375
20376         * lib/propername.c (proper_name_utf8): Don't use the transliterated
20377         result if it contains question marks.
20378         Reported by Michael Geng <linux@michaelgeng.de>.
20379
20380 2008-06-19  Bruno Haible  <bruno@clisp.org>
20381
20382         Fix CVS-ism.
20383         * doc/gnulib.texi: Include updated-stamp.texi.
20384         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
20385         (updated-stamp.texi): New rule.
20386         (gnulib.info): Depend on it.
20387         * doc/.gitignore: Add updated-stamp.texi.
20388         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
20389
20390 2008-06-19  Bruno Haible  <bruno@clisp.org>
20391
20392         * doc/Makefile (gnulib.info): Update and simplify dependencies.
20393         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20394
20395 2008-06-19  Eric Blake  <ebb9@byu.net>
20396
20397         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
20398         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
20399         Reported by Stepan Kasal.
20400
20401 2008-06-18  Bruno Haible  <bruno@clisp.org>
20402
20403         * lib/fatal-signal.c (init_fatal_signals): Add comment.
20404         Reported by Eric Blake.
20405
20406 2008-06-18  Eric Blake  <ebb9@byu.net>
20407
20408         Work around cygwin 1.5.25 strsignal bug.
20409         * tests/test-strsignal.c: Allow for const char *.
20410         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
20411
20412 2008-06-18  Simon Josefsson  <simon@josefsson.org>
20413
20414         * users.txt: Update URL to article and add author/date
20415         information.
20416
20417 2008-06-17  Bruno Haible  <bruno@clisp.org>
20418
20419         New macro gl_DISABLE_THREADS.
20420         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
20421         if the user did not pass --enable-threads or --disable-threads option.
20422         (gl_DISABLE_THREADS): New macro.
20423         Reported by Eric Blake <ebb9@byu.net>.
20424
20425 2008-06-17  Bruno Haible  <bruno@clisp.org>
20426
20427         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
20428         when the macro ignores it.
20429         Based on a patch by Eric Blake <ebb9@byu.net>.
20430
20431 2008-06-17  Bruno Haible  <bruno@clisp.org>
20432
20433         * modules/tls (License): Change to LGPLv2+.
20434         Reported by Eric Blake.
20435
20436 2008-06-17  Eric Blake  <ebb9@byu.net>
20437
20438         Simplify c-stack prerequisites.
20439         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
20440         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
20441         no longer requires <ucontext.h> to exist.  Optimize setrlimit
20442         check.
20443         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
20444         <sys/resource.h>.
20445
20446         Move c-stack test into testsuite.
20447         * modules/c-stack-tests: New file.
20448         * lib/c-stack.c [DEBUG]: Move test program...
20449         * tests/test-c-stack.c: ...into this new file.  Skip rather than
20450         fail test if sigaltstack is lacking.
20451         * tests/test-c-stack.sh: New driver file.
20452
20453 2008-06-16  Eric Blake  <ebb9@byu.net>
20454
20455         Use raise module consistently.
20456         * modules/fatal-signal (Depends-on): Add raise.
20457         * modules/sigprocmask (Depends-on): Likewise.
20458         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
20459         * lib/sigprocmask.c (sigprocmask): Likewise.
20460         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
20461         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
20462
20463         Fix compliance bug in sigpending.
20464         * lib/sigprocmask.c (sigpending): Return pending array via
20465         parameter, not return value.
20466
20467 2008-06-14  Eric Blake  <ebb9@byu.net>
20468
20469         Improve obstack-printf test code.
20470         * tests/test-obstack-printf.c (test_function): Fix comment, and
20471         simplify usage of obstack_* in macros.  Add a test for coverage.
20472         Reported by Bruno Haible.
20473
20474 2008-06-14  Bruno Haible  <bruno@clisp.org>
20475
20476         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
20477         array size as a constant, not as a const variable.
20478         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
20479         AC_USE_SYSTEM_EXTENSIONS.
20480         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
20481         Test whether the obstack_printf function actually exists.
20482         * modules/obstack-printf (Depends-on): Add extensions.
20483         (Include): Remove obstack.h.
20484         * modules/obstack-printf-posix (Depends-on): Add extensions.
20485         (Include): Remove obstack.h.
20486
20487 2008-06-13  Eric Blake  <ebb9@byu.net>
20488
20489         Add obstack-printf and obstack-printf-posix modules.
20490         * modules/obstack-printf: New file.
20491         * modules/obstack-printf-posix: Likewise.
20492         * MODULES.html.sh (Misc): Mention them.
20493         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
20494         Likewise.
20495         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
20496         Likewise.
20497         * modules/stdio (Makefile.am): Accomodate new modules.
20498         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20499         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
20500         Declare.
20501         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
20502         functions.
20503         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
20504         (gl_REPLACE_OBSTACK_PRINTF): New macros
20505         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
20506         * tests/test-obstack-printf.c: New file.
20507         * modules/obstack-printf-tests: Likewise.
20508         * modules/obstack-printf-posix-tests: Likewise.
20509
20510 2008-06-11  Bruno Haible  <bruno@clisp.org>
20511
20512         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
20513         * lib/open.c: Include errno.h.
20514         (open): Fail when attempting to write to a file that has a trailing
20515         slash.
20516         * tests/test-open.c (main): Test against trailing slash bug.
20517         * doc/posix-functions/open.texi: Mention the trailing slash bug.
20518
20519 2008-06-10  Bruno Haible  <bruno@clisp.org>
20520
20521         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
20522         for $? to work inside the trap command, with various /bin/sh-s.
20523         * tests/test-vc-list-files-cvs.sh: Likewise.
20524
20525 2008-06-10  Bruno Haible  <bruno@clisp.org>
20526
20527         * lib/acl-internal.h: Don't include gettext.h here.
20528         * lib/set-mode-acl.c: Include gettext.h here.
20529         * lib/copy-acl.c: Likewise.
20530
20531 2008-06-10  Bruno Haible  <bruno@clisp.org>
20532
20533         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
20534         * lib/wait-process.c (wait_subprocess): Likewise.
20535         * lib/execute.h (execute): Add termsigp argument.
20536         * lib/execute.c (execute): Likewise.
20537         * lib/csharpcomp.c (compile_csharp_using_pnet,
20538         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
20539         * lib/csharpexec.c (execute_csharp_using_pnet,
20540         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
20541         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
20542         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
20543         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
20544         is_jikes_present): Update.
20545         * lib/javaexec.c (execute_java_class): Update.
20546         * lib/javaversion.c (execute_and_read_line): Update.
20547         * NEWS: Document the changes.
20548         Reported by Eric Blake.
20549
20550 2008-06-10  Eric Blake  <ebb9@byu.net>
20551
20552         Add missing include.
20553         * tests/test-strstr.c (includes): Add <signal.h>.
20554         * tests/test-strcasestr.c (includes): Likewise.
20555         * tests/test-memmem.c (includes): Likewise.
20556
20557 2008-06-10  Bruno Haible  <bruno@clisp.org>
20558
20559         * lib/wait-process.c (wait_subprocess): Add an assertion.
20560
20561 2008-06-10  Bruno Haible  <bruno@clisp.org>
20562
20563         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
20564
20565 2008-06-10  Bruno Haible  <bruno@clisp.org>
20566
20567         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
20568         using alarm().
20569         * tests/test-strcasestr.c (main): Likewise.
20570         * tests/test-strstr.c (main): Likewise.
20571
20572 2008-06-09  Bruno Haible  <bruno@clisp.org>
20573
20574         Work around the Solaris 10 ACE ACLs ABI change.
20575         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
20576         declare if ACL_NO_TRIVIAL is present.
20577         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
20578         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
20579         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
20580         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
20581         define if ACL_NO_TRIVIAL is present.
20582         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
20583         and use the current ABI.
20584         (file_has_acl): Use same #if condition as elsewhere.
20585         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
20586         in use, and use the current ABI.
20587         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
20588         Reported by Jim Meyering.
20589
20590 2008-06-09  Eric Blake  <ebb9@byu.net>
20591
20592         Work around environments that (stupidly) ignore SIGALRM.
20593         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
20594         before using alarm().
20595         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20596         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20597         Reported by Ian Beckwith <ianb@erislabs.net>.
20598
20599         Produce autobuild blurb earlier in log.
20600         * modules/autobuild (configure.ac-early): Move AB_INIT here.
20601
20602 2008-06-09  Jim Meyering  <meyering@redhat.com>
20603         and Ondřej Vašík  <ovasik@redhat.com>
20604
20605         utimens.c: correct kernel bug work-around
20606         Ondřej Vašík found that the invalid return value of 280 indicates
20607         failure, not success, and the kernel bug we're trying to work
20608         around affects not just the utimensat call, but also the fallback
20609         futimens call.
20610         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
20611         not success.
20612         [HAVE_FUTIMENS]: Use the same work-around, here.
20613
20614 2008-06-09  Jim Meyering  <meyering@redhat.com>
20615
20616         add more guards around definition of ACE_-related code
20617         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
20618         ALLOW and ACE_OWNER are also defined.
20619
20620 2008-06-08  Bruno Haible  <bruno@clisp.org>
20621
20622         * lib/acl-internal.h: Add me as co-author.
20623         * lib/file-has-acl.c: Likewise.
20624         * lib/set-mode-acl.c: Likewise.
20625         * lib/copy-acl.c: Likewise.
20626
20627 2008-06-08  Bruno Haible  <bruno@clisp.org>
20628
20629         Add support for AIX ACLs.
20630         * lib/acl-internal.h (acl_nontrivial): New declaration.
20631         * lib/file-has-acl.c (acl_nontrivial): New function.
20632         (file_has_acl): Add implementation using AIX 4 ACL API.
20633         * lib/set-mode-acl.c (qset_acl): Likewise.
20634         * lib/copy-acl.c (qcopy_acl): Likewise.
20635
20636 2008-06-08  Bruno Haible  <bruno@clisp.org>
20637
20638         Add support for HP-UX ACLs.
20639         * lib/acl-internal.h (acl_nontrivial): New declaration.
20640         * lib/file-has-acl.c (acl_nontrivial): New function.
20641         (file_has_acl): Add implementation using HP-UX 11 ACL API.
20642         * lib/set-mode-acl.c (qset_acl): Likewise.
20643         * lib/copy-acl.c (qcopy_acl): Likewise.
20644
20645 2008-06-08  Bruno Haible  <bruno@clisp.org>
20646
20647         Add support for Cygwin ACLs.
20648         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
20649         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
20650         the chmod_or_fchmod call.
20651         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
20652
20653 2008-06-08  Bruno Haible  <bruno@clisp.org>
20654
20655         Fix bug with setuid modes in Solaris 10+ code.
20656         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
20657         succeeded, when the mode contains some special bits.
20658
20659 2008-06-08  Bruno Haible  <bruno@clisp.org>
20660
20661         Add support for Solaris 7..10 ACLs.
20662         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
20663         declarations.
20664         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
20665         functions.
20666         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
20667         * lib/set-mode-acl.c (qset_acl): Likewise.
20668         * lib/copy-acl.c (qcopy_acl): Likewise.
20669
20670 2008-06-08  Bruno Haible  <bruno@clisp.org>
20671
20672         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
20673         declaration.
20674         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
20675         (acl_access_nontrivial): Remove MacOS X case.
20676         (file_has_acl): Use acl_extended_nontrivial.
20677         * lib/copy-acl.c (qcopy_acl): Likewise.
20678
20679 2008-06-08  Bruno Haible  <bruno@clisp.org>
20680
20681         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
20682
20683 2008-06-08  Jim Meyering  <meyering@redhat.com>
20684
20685         * modules/acl (Maintainer): Add Bruno Haible.
20686
20687 2008-06-07  Bruno Haible  <bruno@clisp.org>
20688
20689         Improve support for Tru64 ACLs.
20690         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
20691         ACL on OSF/1.
20692
20693 2008-06-07  Bruno Haible  <bruno@clisp.org>
20694
20695         Add support for MacOS X ACLs.
20696         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
20697         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
20698         * lib/set-mode-acl.c (qset_acl): Likewise.
20699         * lib/copy-acl.c (qcopy_acl): Likewise.
20700
20701 2008-06-07  Bruno Haible  <bruno@clisp.org>
20702
20703         Fix memory leak introduced on 2008-05-22.
20704         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
20705         use.
20706
20707 2008-06-07  Bruno Haible  <bruno@clisp.org>
20708
20709         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
20710         to construct an empty ACL.
20711
20712 2008-06-07  Bruno Haible  <bruno@clisp.org>
20713
20714         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
20715         precisely.
20716         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
20717
20718 2008-06-07  Bruno Haible  <bruno@clisp.org>
20719
20720         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
20721         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
20722
20723 2008-06-07  Bruno Haible  <bruno@clisp.org>
20724
20725         * doc/posix-functions/_setjmp.texi: Explain the use of this function
20726         regardless of POSIX.
20727         * doc/posix-functions/_longjmp.texi: Likewise.
20728         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
20729         SystemV platform in this case.
20730
20731 2008-06-06  Eric Blake  <ebb9@byu.net>
20732
20733         Document abort() bugs.
20734         * doc/posix-functions/abort.texi (abort): Mention anomalies.
20735
20736         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
20737         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
20738         sigsetjmp.
20739         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
20740         siglongjmp, but only as a macro.
20741         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
20742         is obsolete.
20743         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
20744
20745         Tweak documentation to cover cygwin argz bugs.
20746         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
20747         argz bug fix; no code change needed since no cygwin releases
20748         occurred between the last fix and the bug being tested.
20749         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
20750         module and recently fixed cygwin bugs.
20751         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
20752         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
20753         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
20754         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
20755         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
20756         Likewise.
20757         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
20758         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
20759         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
20760         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
20761         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
20762         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
20763         Likewise.
20764
20765         Avoid gcc warning on cygwin.
20766         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
20767         !ACL_NO_TRIVIAL]: Avoid unused variable.
20768
20769 2008-06-05  Eric Blake  <ebb9@byu.net>
20770
20771         Be tolerant of UNKNOWN version in gnulib-tool test dir.
20772         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
20773         git-version-gen fails to come up with a version.
20774         Reported by Simon Josefsson.
20775
20776 2008-06-05  Jim Meyering  <meyering@redhat.com>
20777             Paul Eggert  <eggert@cs.ucla.edu>
20778
20779         utimens.c: work around a probable Linux kernel bug
20780         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
20781         appears to be a kernel bug that causes utimensat to return 280
20782         instead of 0, indicating success.
20783
20784 2008-06-04  Bruno Haible  <bruno@clisp.org>
20785
20786         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
20787         2008-06-01 commit.
20788
20789 2008-06-04  Bruno Haible  <bruno@clisp.org>
20790
20791         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
20792         * lib/file-has-acl.c (acl_access_nontrivial): New function.
20793         (file_has_acl): Use it. Save errno afterwards.
20794         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
20795
20796 2008-06-03  Bruno Haible  <bruno@clisp.org>
20797
20798         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
20799         draft code. Simplify #ifs.
20800         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
20801         Put Solaris code after POSIX-draft code. Fix comments regarding
20802         Solaris 10, HP-UX. Mention Cygwin.
20803         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
20804
20805 2008-06-03  Eric Blake  <ebb9@byu.net>
20806
20807         Provide fallback for older kernels.
20808         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
20809         Provide runtime fallback if kernel lacks support.
20810         Reported by Mike Frysinger.
20811
20812 2008-06-02  Bruno Haible  <bruno@clisp.org>
20813
20814         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
20815         it exists.
20816
20817 2008-06-02  Bruno Haible  <bruno@clisp.org>
20818
20819         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
20820         * lib/copy-acl.c (qcopy_acl): Update comment.
20821
20822 2008-06-02  Bruno Haible  <bruno@clisp.org>
20823
20824         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
20825         like ACL APIs.
20826
20827 2008-06-02  Bruno Haible  <bruno@clisp.org>
20828
20829         * tests/test-file-has-acl.sh: Use different code for Cygwin.
20830         * tests/test-set-mode-acl.sh: Likewise.
20831         * tests/test-copy-acl.sh: Likewise.
20832         * tests/test-copy-file.sh: Likewise.
20833
20834 2008-06-02  Bruno Haible  <bruno@clisp.org>
20835
20836         * tests/test-file-has-acl.sh: Remove unused code.
20837
20838 2008-06-01  Bruno Haible  <bruno@clisp.org>
20839
20840         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
20841         (copy_acl): Just a wrapper around qcopy_acl that emits the error
20842         messages.
20843         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
20844
20845 2008-06-01  Bruno Haible  <bruno@clisp.org>
20846
20847         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
20848         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
20849         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
20850         APIs.
20851         * modules/acl-tests (configure.ac): Remove tests now contained in
20852         m4/acl.m4.
20853
20854 2008-06-02  Jim Meyering  <meyering@redhat.com>
20855
20856         announce-gen: use a better key-server host name
20857         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
20858         it may be more consistently reliable.  Suggested by Werner Koch
20859         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
20860
20861 2008-06-01  Bruno Haible  <bruno@clisp.org>
20862
20863         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
20864         Reported by Voroskoi Andras <voroskoi@gmail.com>.
20865
20866 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
20867
20868         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
20869
20870 2008-06-01  Bruno Haible  <bruno@clisp.org>
20871
20872         New ACL tests.
20873         * tests/test-file-has-acl.sh: New file.
20874         * tests/test-file-has-acl.c: New file.
20875         * tests/test-set-mode-acl.sh: New file.
20876         * tests/test-set-mode-acl.c: New file.
20877         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
20878         * tests/test-copy-acl.c: New file.
20879         * modules/acl-tests: New file, based on modules/copy-file-tests.
20880         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
20881         (Depends-on): Add acl-tests.
20882         (configure.ac): Remove checks.
20883         (Makefile.am): Don't create test-sameacls program here any more.
20884
20885 2008-06-01  Bruno Haible  <bruno@clisp.org>
20886
20887         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
20888         * tests/test-sameacls.c: Include progname.h.
20889         (main): Invoke set_program_name. Portability fixes for MacOS X,
20890         Solaris, HP-UX.
20891
20892 2008-06-01  Bruno Haible  <bruno@clisp.org>
20893
20894         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
20895         function.
20896         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
20897
20898 2008-06-01  Bruno Haible  <bruno@clisp.org>
20899
20900         * modules/rpmatch (Depends-on): Add strdup.
20901
20902 2008-06-01  Bruno Haible  <bruno@clisp.org>
20903
20904         * lib/pipe.c: Include unistd-safer.h.
20905         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
20906         * modules/pipe (Depends-on): Add unistd-safer.
20907
20908 2008-05-30  Simon Josefsson  <simon@josefsson.org>
20909
20910         * modules/autobuild (configure.ac): Call AB_INIT.
20911
20912 2008-05-30  Simon Josefsson  <simon@josefsson.org>
20913
20914         * tests/test-getaddrinfo.c: Don't print debug messages by default.
20915         Suggested by Bruno Haible <bruno@clisp.org>.
20916
20917 2008-05-30  Simon Josefsson  <simon@josefsson.org>
20918
20919         * tests/test-base64.c: Cast size_t to unsigned long when invoking
20920         printf.  Use %lu instead of %d.  Reported by Bruno Haible
20921         <bruno@clisp.org>.
20922
20923 2008-05-29  Eric Blake  <ebb9@byu.net>
20924
20925         Prefer new POSIX 200x interfaces over futimesat.
20926         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
20927         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
20928         when available.
20929         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
20930
20931 2008-05-28  Bruno Haible  <bruno@clisp.org>
20932
20933         * modules/stpcpy (License): Change to LGPLv2+.
20934         Requested by David Lutterkort <dlutter@redhat.com>.
20935
20936 2008-05-27  Bruno Haible  <bruno@clisp.org>
20937
20938         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
20939         current mingw.
20940         Reported by Jose E. Marchesi <jemarch@gnu.org>.
20941
20942 2008-05-27  Bruno Haible  <bruno@clisp.org>
20943
20944         * modules/iconv_open (Link): New section, from module 'iconv'.
20945         * modules/striconv (Link): Likewise.
20946         * modules/striconveh (Link): Likewise.
20947         * modules/xstriconv (Link): Likewise.
20948         * modules/unicodeio (Link): Likewise.
20949         * modules/propername (Link): Likewise.
20950         Reported by Jim Meyering.
20951
20952 2008-05-26  Jim Meyering  <meyering@redhat.com>
20953
20954         sha256: do not artificially restrict buffer length to be < 2^32
20955         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
20956         uint32_t to size_t.
20957         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
20958         to match.
20959
20960         avoid unaligned access errors, e.g., on sparc
20961         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
20962         direct access through a possibly-unaligned uint64* pointer.
20963         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
20964         direct access through a possibly-unaligned uint32* pointer.
20965         Prompted by this patch from Tom "spot" Callaway:
20966         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
20967
20968         sha512.c: fix typo in comment
20969         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
20970
20971 2008-05-25  Bruno Haible  <bruno@clisp.org>
20972
20973         * lib/set-mode-acl.c: Renamed from lib/acl.c.
20974         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
20975         (Makefile.am): Update lib_SOURCES.
20976
20977 2008-05-25  Bruno Haible  <bruno@clisp.org>
20978
20979         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
20980
20981 2008-05-25  Jim Meyering  <meyering@redhat.com>
20982
20983         useless-if-before-free: freed expr may have white-space differences
20984         * build-aux/useless-if-before-free: Recognize cases in which the
20985         freed expression differs from the tested one in embedded white
20986         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
20987         $1 was used, so we can't make any regexp shy.  Improved tests now
20988         detect this.
20989
20990         useless-if-before-free: accept white space in the expression.
20991         * build-aux/useless-if-before-free: For now, any white space
20992         in the expression must be identical in the free argument.
20993
20994         useless-if-before-free: efficiency tweak
20995         * build-aux/useless-if-before-free: Make the expression-matching
20996         regexp "shy".
20997         Make the *outer* regexp shy, not the expr-matching one.
20998
20999         update code-in-comment to accept cast of free arg
21000         * build-aux/useless-if-before-free: Update regexp.
21001
21002 2008-05-25  Bruno Haible  <bruno@clisp.org>
21003
21004         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
21005         * modules/copy-file-tests (Files, Makefile.am): Update.
21006         * tests/test-copy-file.c (func_test_copy): Update.
21007
21008 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
21009
21010         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
21011
21012 2008-05-23  Bruno Haible  <bruno@clisp.org>
21013
21014         Improve support for ACLs on OSF/1.
21015         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
21016         Remove fallback for unknown flavors of ACLs.
21017
21018 2008-05-22  Bruno Haible  <bruno@clisp.org>
21019
21020         Add support for ACLs on OSF/1.
21021         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
21022         replacements.
21023         (acl_free_text): New macro fallback.
21024         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
21025         acl_free.
21026         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
21027         acl_free_text function. Require AC_C_INLINE.
21028
21029 2008-05-22  Bruno Haible  <bruno@clisp.org>
21030
21031         Make copy_acl work on MacOS X 10.5.
21032         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
21033         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
21034         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
21035         If MODE_INSIDE_ACL, don't assume that every system has the same text
21036         representation for ACLs as FreeBSD.
21037         * lib/copy-acl.c (copy_acl): Add support for platforms with
21038         !MODE_INSIDE_ACL.
21039         * lib/file-has-acl.c (file_has_acl): Likewise.
21040         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
21041         FreeBSD, MacOS X, or IRIX, respectively.
21042
21043 2008-05-22  Bruno Haible  <bruno@clisp.org>
21044
21045         * lib/acl.h: Don't include <sys/acl.h>.
21046         (GETACLCNT): Move fallback to lib/acl-internal.h.
21047         * lib/acl-internal.h: Include <sys/acl.h> here.
21048         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
21049
21050 2008-05-22  Bruno Haible  <bruno@clisp.org>
21051
21052         Split off copy_acl function to separate file.
21053         * lib/copy-acl.c: New file, extracted from lib/acl.c.
21054         * lib/acl.c (copy_acl): Moved function to separate file.
21055         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
21056         * modules/acl (Files): Add lib/copy-acl.c.
21057         (Makefiles.am): Augment lib_SOURCES.
21058
21059 2008-05-22  Bruno Haible  <bruno@clisp.org>
21060
21061         * modules/copy-file-tests: New file.
21062         * tests/test-copy-file.sh: New file.
21063         * tests/test-copy-file.c: New file.
21064         * tests/test-copy-file-sameacls.c: New file.
21065
21066 2008-05-22  Eric Blake  <ebb9@byu.net>
21067
21068         Avoid gcc warning.
21069         * tests/test-memcmp.c (main): Pass NULL indirectly.
21070
21071 2008-05-21  Bruno Haible  <bruno@clisp.org>
21072
21073         Add reference doc about ACLs.
21074         * doc/acl-resources.txt: New file.
21075         * doc/acl-cygwin.txt: New file.
21076
21077 2008-05-21  Bruno Haible  <bruno@clisp.org>
21078
21079         Avoid one more warning from gcc.
21080         * lib/vasnprintf.c (IF_LINT): Update comments.
21081         (VASNPRINTF): Use it also for the 'prefix' array initializer.
21082
21083 2008-05-21  Jim Meyering  <meyering@redhat.com>
21084
21085         avoid a warning from gcc
21086         * lib/vasnprintf.c (IF_LINT): Define.
21087         (scale10_round_decimal_long_double):
21088         Use it to avoid a "may be used uninitialized" warning.
21089         (scale10_round_decimal_double): Likewise.
21090
21091 2008-05-21  Simon Josefsson  <simon@josefsson.org>
21092
21093         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
21094         declared.
21095
21096 2008-05-20  Bruno Haible  <bruno@clisp.org>
21097
21098         * tests/test-memcmp.c (main): Test also the sign of the result. Test
21099         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
21100
21101 2008-05-20  Simon Josefsson  <simon@josefsson.org>
21102
21103         * modules/memcmp-tests: New file.
21104         * tests/test-memcmp.c: New file.
21105
21106 2008-05-19  Bruno Haible  <bruno@clisp.org>
21107
21108         * modules/propername (Notice, configure.ac): Put quoted "..." into
21109         --keyword option.
21110         * lib/propername.h: Update comments accordingly.
21111         Reported by Eric Blake.
21112
21113 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
21114
21115         * modules/getpass-gnu (Depends-on): Add fseeko.
21116
21117 2008-05-19  Simon Josefsson  <simon@josefsson.org>
21118
21119         * modules/base64-tests: New file.
21120
21121 2008-05-19  Bo Borgerson <gigabo@gmail.com>
21122
21123         * lib/base64.c (base64_decode_ctx): If a decode context structure
21124         was passed in use it to ignore newlines.  If a context structure
21125         was _not_ passed in, continue to treat newlines as garbage (this
21126         is the historical behavior).  Formerly base64_decode.
21127         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
21128         takes a decode context structure.
21129         * lib/base64.h (base64_decode): Macro for four-argument calls.
21130         (base64_decode_alloc): Likewise.
21131         * lib/base64.c (base64_decode_ctx): If a decode context structure
21132         was passed in use it to ignore newlines.  If a context structure
21133         was _not_ passed in, continue to treat newlines as garbage (this
21134         is the historical behavior).  Formerly base64_decode.
21135         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
21136         takes a decode context structure.
21137         * lib/base64.h (base64_decode): Macro for four-argument calls.
21138         (base64_decode_alloc): Likewise.
21139
21140 2008-05-19  Jim Meyering  <meyering@redhat.com>
21141
21142         avoid a warning from gcc
21143         * lib/trim.c (IF_LINT): Define.
21144         (trim2): Use it to avoid a "may be used uninitialized" warning.
21145
21146         Fix doc typo.
21147         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
21148
21149 2008-05-19  Bruno Haible  <bruno@clisp.org>
21150
21151         * doc/glibc-functions/getpass.texi: Document limits of other
21152         implementations.
21153
21154 2008-05-19  Simon Josefsson  <simon@josefsson.org>
21155             Bruno Haible <bruno@clisp.org>
21156
21157         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
21158
21159 2008-05-18  Bruno Haible  <bruno@clisp.org>
21160
21161         * modules/propername: New file, from GNU gettext.
21162         * lib/propername.h: New file, from GNU gettext.
21163         * lib/propername.c: New file, from GNU gettext.
21164         * MODULES.html.sh (Internationalization functions): Add propername.
21165
21166 2008-05-16  Jim Meyering  <meyering@redhat.com>
21167             Bruno Haible  <bruno@clisp.org>
21168
21169         Avoid some warnings from "gcc -Wshadow".
21170         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
21171
21172 2008-05-15  Eric Blake  <ebb9@byu.net>
21173
21174         Extend previous patch to cygwin 1.7.0.
21175         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
21176         fast implementation in cygwin >= 1.7.0.
21177         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
21178         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21179
21180 2008-05-15  Bruno Haible  <bruno@clisp.org>
21181
21182         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
21183         implementation in glibc >= 2.9.
21184         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
21185         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21186
21187 2008-05-15  Bruno Haible  <bruno@clisp.org>
21188
21189         * MODULES.html.sh (Internationalization functions): Remove linebreak.
21190         (Unicode string functions): Add unilbrk/*.
21191         Reported by Karl Berry.
21192
21193 2008-05-15  Eric Blake  <ebb9@byu.net>
21194
21195         Fix violation of <stdbool.h> replacement in regex.
21196         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
21197         * lib/regexec.c (re_search_internal): Likewise.
21198         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
21199
21200 2008-05-15  Jim Meyering  <meyering@redhat.com>
21201
21202         avoid distracting test output when git or cvs is not found
21203         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
21204         * tests/test-vc-list-files-git.sh: Likewise.
21205
21206 2008-05-15  Eric Blake  <ebb9@byu.net>
21207
21208         Glibc finally accepted the memmem speedup code, bugzilla #5514.
21209         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
21210         glibc version.
21211         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
21212         * doc/posix-functions/strstr.texi (strstr): Likewise.
21213         * lib/str-two-way.h (MAX): Sychronize with glibc.
21214
21215 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
21216
21217         * lib/regcomp.c (optimize_utf8): Add a note on why we test
21218         opr.ctx_type.
21219         (calc_first): Initialize constraint field.
21220         (duplicate_node_closure): Use it instead of special casing ANCHORS.
21221         Fix grammar.
21222         (duplicate_node): Merge constraint field for all node types.
21223         (calc_eclosure_iter): Look at constraint field for all node types.
21224         * lib/regex_internal.c (create_cd_newstate): Don't look at
21225         opr.ctx_type.
21226
21227 2008-05-14  Bruno Haible  <bruno@clisp.org>
21228
21229         Help GCC to do better code generation.
21230         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
21231         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
21232         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
21233         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
21234         Declare with attribute 'malloc' if supported.
21235
21236 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
21237
21238         use "echo STR|wc -c" rather than unportable "expr length STR"
21239         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
21240         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
21241
21242 2008-05-14  Jim Meyering  <meyering@redhat.com>
21243
21244         use dd ibs=$n count=1 ... rather than less-portable head -c$n
21245         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
21246         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
21247         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
21248         via Collin Lasse.
21249
21250 2008-05-14  Eric Blake  <ebb9@byu.net>
21251
21252         Avoid quadratic growth in gl_LIBSOURCES.
21253         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
21254         Suggested by Bruno Haible.
21255
21256         Test xmemdup0.
21257         * modules/xmemdup0-tests: New file.
21258         * tests/test-xmemdup0.c: Likewise.
21259
21260 2008-05-13  Eric Blake  <ebb9@byu.net>
21261
21262         Split xmemdup0 into its own module.
21263         * modules/xmemdup0: New file.
21264         * lib/xmemdup0.h: Likewise.
21265         * lib/xmemdup0.c: Likewise.
21266         * MODULES.html.sh (Memory management functions): Add xmemdup0.
21267         * lib/xalloc.h (xmemdup0): Remove.
21268         * lib/xmalloc.c (xmemdup0): Likewise.
21269
21270 2008-05-13  Eric Blake  <ebb9@byu.net>
21271             Bruno Haible  <bruno@clisp.org>
21272
21273         Reduce number of forks required during autoconf.
21274         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
21275         and gl_LIBSOURCES_DIR.
21276         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
21277         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
21278         m4_syscmd per file.
21279         <m4_foreach_w>: Move...
21280         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
21281
21282 2008-05-13  Eric Blake  <ebb9@byu.net>
21283
21284         * gnulib-tool: Fix various comment typos.
21285
21286 2008-05-12  Bruno Haible  <bruno@clisp.org>
21287
21288         Tailor the linebreaking algorithm.
21289         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
21290
21291 2008-05-12  Bruno Haible  <bruno@clisp.org>
21292
21293         Update to Unicode 5.0.0.
21294         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
21295         LBP_JV, LBP_JT. Redistribute values.
21296         (unilbrk_table): Change size.
21297         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
21298         Unicode TR#14 rev. 22.
21299         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
21300         LBP_JV, LBP_JT. Redistribute values.
21301         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
21302         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
21303         Update.
21304         * lib/unilbrk/lbrkprop1.h: Regenerated.
21305         * lib/unilbrk/lbrkprop2.h: Regenerated.
21306         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
21307         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
21308         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
21309         Likewise.
21310         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
21311         Likewise.
21312         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
21313         result.
21314         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21315         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21316         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21317         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
21318         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
21319         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
21320
21321 2008-05-11  Bruno Haible  <bruno@clisp.org>
21322
21323         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
21324
21325 2008-05-11  Bruno Haible  <bruno@clisp.org>
21326
21327         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
21328         * modules/unilbrk/gen-lbrk: New file.
21329
21330 2008-05-11  Bruno Haible  <bruno@clisp.org>
21331
21332         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
21333         * m4/sha512.m4 (gl_SHA512): Likewise.
21334
21335 2008-05-11  Jim Meyering  <meyering@redhat.com>
21336
21337         New modules: crypto/sha256, crypto/sha512 (from coreutils)
21338         * modules/crypto/sha256: New file.
21339         * modules/crypto/sha512: Likewise.
21340         * lib/sha256.c: Likewise.
21341         * lib/sha256.h: Likewise.
21342         * lib/sha512.c: Likewise.
21343         * lib/sha512.h: Likewise.
21344         * lib/u64.h: Likewise.
21345         * m4/sha256.m4: Likewise.
21346         * m4/sha512.m4: Likewise.
21347         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
21348
21349 2008-05-10  Bruno Haible  <bruno@clisp.org>
21350
21351         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
21352         (Input/Output <stdio.h>): Add xprintf.
21353         (Signal handling <signal.h>): Add strsignal.
21354         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
21355         (Core language properties): Add func.
21356         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
21357         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
21358         strings.
21359         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
21360         (Input/output): New section.
21361         (File system functions): Add openat-die, stat-macros.
21362         (Networking functions): Add sockets.
21363         (Unicode string functions): Add unictype/*.
21364         (Support for building libraries and executables): Add gperf.
21365         (Support for building documentation): Add agpl-3.0.
21366         (Misc): Add nocrash.
21367
21368 2008-05-10  Bruno Haible  <bruno@clisp.org>
21369
21370         * modules/unictype/gen-ctype: New file.
21371
21372 2008-05-10  Jim Meyering  <meyering@redhat.com>
21373
21374         Make chdir-safer.c more efficient on a system with no symlinks.
21375         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
21376         also if ELOOP is zero.  Suggested by Bruno Haible.
21377
21378         Make chdir-safer.c slightly safer.
21379         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
21380         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
21381
21382         Avoid compile failure on systems without ELOOP (like mingw).
21383         * lib/chdir-safer.c (ELOOP): Define if not already defined.
21384         Reported by Bruno Haible.
21385
21386 2008-05-10  Bruno Haible  <bruno@clisp.org>
21387
21388         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
21389         (is_utf8_encoding): Use a case-insensitive comparison.
21390         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
21391         streq.
21392
21393 2008-05-10  Bruno Haible  <bruno@clisp.org>
21394
21395         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
21396         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
21397         * lib/unilbrk/ulc-common.h (iconv_string_length,
21398         iconv_string_keeping_offsets): Remove declarations.
21399         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
21400         Don't include <iconv.h>, streq.h, xsize.h.
21401         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
21402         conversion.
21403         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
21404         <iconv.h>, streq.h, xsize.h.
21405         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
21406         conversion.
21407         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
21408         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
21409         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
21410         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
21411
21412 2008-05-10  Bruno Haible  <bruno@clisp.org>
21413
21414         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
21415         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
21416
21417         * modules/unilbrk/u32-width-linebreaks-tests: New file.
21418         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
21419
21420         * modules/unilbrk/u16-width-linebreaks-tests: New file.
21421         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
21422
21423         * modules/unilbrk/u8-width-linebreaks-tests: New file.
21424         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
21425
21426         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
21427         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
21428
21429         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
21430         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
21431
21432         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
21433         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
21434
21435         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
21436         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
21437
21438 2008-05-10  Bruno Haible  <bruno@clisp.org>
21439
21440         Split up 'linebreak' module.
21441         * lib/unilbrk.h: New file, based on lib/linebreak.h.
21442         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
21443         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
21444         modifications.
21445         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
21446         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
21447         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
21448         lib/linebreak.c.
21449         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
21450         lib/linebreak.c.
21451         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
21452         lib/linebreak.c.
21453         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
21454         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
21455         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
21456         lib/linebreak.c.
21457         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
21458         lib/linebreak.c.
21459         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
21460         lib/linebreak.c.
21461         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
21462         lib/linebreak.c.
21463         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
21464         lib/linebreak.c.
21465         * modules/unilbrk/base: New file.
21466         * modules/unilbrk/tables: New file.
21467         * modules/unilbrk/u8-possible-linebreaks: New file.
21468         * modules/unilbrk/u16-possible-linebreaks: New file.
21469         * modules/unilbrk/u32-possible-linebreaks: New file.
21470         * modules/unilbrk/ulc-common: New file.
21471         * modules/unilbrk/ulc-possible-linebreaks: New file.
21472         * modules/unilbrk/u8-width-linebreaks: New file.
21473         * modules/unilbrk/u16-width-linebreaks: New file.
21474         * modules/unilbrk/u32-width-linebreaks: New file.
21475         * modules/unilbrk/ulc-width-linebreaks: New file.
21476         * lib/linebreak.h: Remove file.
21477         * lib/linebreak.c: Remove file.
21478         * m4/linebreak.m4: Remove file.
21479         * modules/linebreak: Remove file.
21480         * NEWS: Mention the changes.
21481
21482 2008-05-09  Eric Blake  <ebb9@byu.net>
21483
21484         Add xmemdup0.
21485         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
21486         implementation.
21487         * lib/xmalloc.c (xmemdup0): New C implementation.
21488
21489 2008-05-08  Bruno Haible  <bruno@clisp.org>
21490
21491         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
21492
21493 2008-05-07  Eric Blake  <ebb9@byu.net>
21494
21495         Support cross-compilation of <wctype.h>.
21496         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
21497         AC_CACHE_CHECK.
21498
21499 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
21500
21501         * build-aux/vc-list-files: Add support for bzr.
21502
21503 2008-05-03  Jim Meyering  <meyering@redhat.com>
21504
21505         avoid failed assertion with tight malloc
21506         * tests/test-getndelim2.c: Correct an off-by-one assertion.
21507
21508 2008-05-03  Simon Josefsson  <simon@josefsson.org>
21509
21510         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
21511         are needed from arpa/inet.h.
21512         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
21513         Reported by Bruno Haible.
21514
21515 2008-05-02  Jim Meyering  <meyering@redhat.com>
21516
21517         avoid compilation error on FreeBSD 6
21518         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
21519
21520 2008-05-01  Jim Meyering  <meyering@redhat.com>
21521
21522         useless-if-before-free: correct --help's exit status description
21523         * build-aux/useless-if-before-free (usage): Like grep, exit 0
21524         for one or more matches, etc.  Reported by Bruno Haible.
21525
21526         vc-list-files: make the stand-alone gnulib test work
21527         * modules/vc-list-files-tests (configure.ac):
21528         Define and AC_SUBST abs_aux_dir.
21529         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
21530         $(abs_top_srcdir) to each script and having each of them
21531         duplicate the work of setting PATH, set PATH here, using
21532         the new variable, abs_aux_dir instead.
21533         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
21534         * tests/test-vc-list-files-git.sh: Likewise.
21535         Reported by Bruno Haible.
21536
21537 2008-05-01  Bruno Haible  <bruno@clisp.org>
21538
21539         * lib/getndelim2.c (getndelim2): Fix newsize computation during
21540         reallocation. Rename 'done' to 'found_delimiter'.
21541
21542 2008-05-01  Jim Meyering  <meyering@redhat.com>
21543
21544         vc-list-files: accommodate /bin/sh like the one from Solaris 10
21545         * build-aux/vc-list-files: Use `...`, not $(...).
21546
21547 2008-04-30  Jim Meyering  <meyering@redhat.com>
21548
21549         add tests for vc-list-files
21550         * modules/vc-list-files-tests: New module.
21551         * tests/test-vc-list-files-cvs.sh: New file.
21552         * tests/test-vc-list-files-git.sh: New file.
21553
21554         avoid a warning from gcc
21555         * lib/getndelim2.c (IF_LINT): Define.
21556         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
21557
21558         vc-list-files: work properly with build-aux/cvsu, too
21559         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
21560         to all cvs-based clauses.
21561
21562         vc-list-files: work properly in the CVS+awk case, too
21563         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
21564
21565         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
21566         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
21567         take more than one file argument, so .  Add quotes, just in case $dir
21568         ever contains a shell meta-character.  Prompted by Soren Hansen in
21569         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
21570
21571 2008-04-29  Eric Blake  <ebb9@byu.net>
21572
21573         Optimize getndelim2 to use block operations when possible.
21574         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
21575         freadseek, and memchr2.
21576         * lib/getndelim2.c (getndelim2): Use them for block reads.
21577
21578 2008-04-29  Bruno Haible  <bruno@clisp.org>
21579
21580         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
21581         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21582         * modules/inet_ntop (Depends-on): Add extensions.
21583         * modules/inet_pton (Depends-on): Likewise.
21584         Reported by Simon Josefsson.
21585
21586 2008-04-29  Jim Meyering  <meyering@redhat.com>
21587
21588         When the is more than one match in a block, match all of them.
21589         * build-aux/useless-if-before-free: Iterate through each block
21590         until there are no more matches.
21591
21592         Fix broken useless-if-before-free script.
21593         * build-aux/useless-if-before-free: Fix typo: missing "?" after
21594         the expression to match cast of argument to free-like function.
21595
21596 2008-04-29  Eric Blake  <ebb9@byu.net>
21597
21598         Use new header.
21599         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
21600
21601 2008-04-29  Jim Meyering  <meyering@redhat.com>
21602
21603         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
21604         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
21605         by gnulib to exist and to declare e.g., inet_ntop.
21606         Don't include "inet_ntop.h", now removed.
21607
21608         * m4/arpa_inet_h.m4: Remove trailing blanks.
21609
21610 2008-04-29  Eric Blake  <ebb9@byu.net>
21611
21612         Silence valgrind on safe reads beyond potential array bounds.
21613         * lib/rawmemchr.valgrind: New file.
21614         * lib/strchrnul.valgrind: Likewise.
21615         * modules/rawmemchr (Files): Distribute new file.
21616         * modules/strchrnul (Files): Likewise.
21617         Suggested by Bruno Haible.
21618
21619 2008-04-29  Bruno Haible  <bruno@clisp.org>
21620
21621         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
21622         (inet_ntop, inet_pton): Change portability warning's wording.
21623         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
21624         Invoke gl_CHECK_NEXT_HEADERS.
21625         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
21626         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
21627         set ARPA_INET_H.
21628         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21629         * modules/arpa_inet (Description): No longer only for systems that
21630         lack it.
21631         (Depends-on): Add include_next.
21632         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
21633         HAVE_ARPA_INET_H.
21634
21635 2008-04-29  Jim Meyering  <meyering@redhat.com>
21636
21637         * modules/mkdir (License): Re-license as LGPLv2+.
21638
21639 2008-04-29  Bruno Haible  <bruno@clisp.org>
21640
21641         * modules/rawmemchr (Maintainer): Set to Eric.
21642         * modules/strchrnul (Maintainer): Likewise.
21643
21644 2008-04-29  Simon Josefsson  <simon@josefsson.org>
21645
21646         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
21647         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
21648
21649         * modules/arpa_inet (arpa/inet.h): Use them.
21650
21651 2008-04-28  Eric Blake  <ebb9@byu.net>
21652
21653         Test getndelim2.
21654         * modules/getndelim2-tests: New file.
21655         * tests/test-getndelim2.c: Likewise.
21656         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
21657         stream.
21658         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
21659
21660         * MODULES.html.sh: Document new module.
21661
21662 2008-04-20  Bruno Haible  <bruno@clisp.org>
21663
21664         * lib/c-stack.c (die): Use raise.
21665         * modules/c-stack (Depends-on): Add raise.
21666
21667 2008-04-28  Bruno Haible  <bruno@clisp.org>
21668
21669         Expect rpmatch to be declared.
21670         * lib/yesno.c (rpmatch): Remove declaration.
21671
21672         Declare rpmatch.
21673         * lib/stdlib.in.h (rpmatch): New declaration.
21674         * lib/rpmatch.c: Include <stdlib.h> first.
21675         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
21676         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
21677         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
21678         HAVE_RPMATCH.
21679         * modules/rpmatch (Depends-on): Add stdlib, extensions.
21680         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
21681         (Include): Set to <stdlib.h>.
21682         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
21683         HAVE_RPMATCH.
21684         * NEWS: Document the change.
21685
21686 2008-04-28  Bruno Haible  <bruno@clisp.org>
21687
21688         Change rpmatch to use nl_langinfo when appropriate.
21689         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
21690         (N_): New macro.
21691         (localized_pattern): New function/macro.
21692         (try): Remove match, nomatch arguments. Copy the pattern into safe
21693         memory before caching it.
21694         (rpmatch): Use localized_pattern. Add translator comments.
21695         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
21696         Suggested by Eric Blake.
21697         * modules/rpmatch (Depends-on): Add stdbool.
21698
21699 2008-04-28  Eric Blake  <ebb9@byu.net>
21700
21701         Add rawmemchr module, matching glibc.
21702         * modules/string (Makefile.am): New indicator.
21703         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
21704         * lib/string.in.h (rawmemchr): Declare when appropriate.
21705         * modules/rawmemchr: New file.
21706         * m4/rawmemchr.m4: Likewise.
21707         * lib/rawmemchr.c: Likewise.
21708         * modules/rawmemchr-tests: Likewise.
21709         * tests/test-rawmemchr.c: Likewise.
21710         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
21711         module.
21712         * modules/strchrnul (Depends-on): Add rawmemchr.
21713         * lib/strchrnul.c (strchrnul): Optimize a corner case.
21714
21715         Whitespace cleanup.
21716         * tests/test-strchrnul.c: Reindent.
21717         * lib/strchrnul.c: Likewise.
21718
21719         Optimize and test strchrnul.
21720         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
21721         * modules/strchrnul-tests: New file.
21722         * tests/test-strchrnul.c: Likewise.
21723
21724         Remove intprops dependency.
21725         * modules/memchr (Depends-on): Remove intprops.
21726         * modules/memrchr (Depends-on): Likewise.
21727         * modules/memchr2 (Depends-on): Likewise.
21728         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
21729         * lib/memrchr.c (__memrchr): Likewise.
21730         * lib/memrchr2.c (memchr2): Likewise.
21731         Reported by Simon Josefsson.
21732
21733 2008-04-28  Simon Josefsson  <simon@josefsson.org>
21734
21735         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
21736         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21737
21738 2008-04-28  Simon Josefsson  <simon@josefsson.org>
21739
21740         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
21741
21742         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
21743
21744         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
21745
21746         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
21747         declarations.
21748         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
21749
21750         * m4/inet_pton.m4: Don't check for header files.
21751
21752         * m4/inet_ntop.m4: Don't check for header files.
21753
21754 2008-04-28  Simon Josefsson  <simon@josefsson.org>
21755
21756         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
21757         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
21758         trigger for cygwin).
21759         Reported by Bruno Haible  <bruno@clisp.org>.
21760
21761 2008-04-28  Bruno Haible  <bruno@clisp.org>
21762
21763         * doc/posix-functions/strdup.texi: Mention mingw problem.
21764
21765 2008-04-27  Bruno Haible  <bruno@clisp.org>
21766
21767         * modules/stat-time-tests (Depends-on): Add sleep.
21768         * tests/test-stat-time.c (force_unlink): New function.
21769         (cleanup): Use it.
21770         (test_mtime): Remove the ctime related tests.
21771         (test_ctime): New function, containing the ctime related tests.
21772         (main): Call test_ctime, except on native Windows platforms.
21773
21774 2008-04-27  Bruno Haible  <bruno@clisp.org>
21775
21776         * lib/rpmatch.c (rpmatch): Add some comments.
21777         Reported by James Youngman <jay@gnu.org>.
21778
21779 2008-04-27  Bruno Haible  <bruno@clisp.org>
21780
21781         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
21782         quiet NaNs.
21783
21784 2008-04-27  Bruno Haible  <bruno@clisp.org>
21785
21786         Make test-yesno.sh work on mingw.
21787         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
21788         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
21789         (main): Set stdin to binary mode.
21790         * modules/yesno-tests (Depends-on): Add binary-io.
21791
21792 2008-04-27  Bruno Haible  <bruno@clisp.org>
21793
21794         Fix 'isfinite' on x86, x86_64, ia64 platforms.
21795         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
21796         argument that lie outside the IEEE 854 domain.
21797         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
21798         (gl_ISFINITE): Use it.
21799         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
21800
21801 2008-04-27  Bruno Haible  <bruno@clisp.org>
21802
21803         Allow local renaming in config.h.
21804         * lib/memrchr.c (memrchr): Don't undefine outside libc.
21805
21806 2008-04-27  Bruno Haible  <bruno@clisp.org>
21807
21808         * lib/memchr.c (__memchr): Change type of 'i'.
21809         * lib/memchr2.c (memchr2): Likewise.
21810
21811 2008-04-26  Eric Blake  <ebb9@byu.net>
21812         and Bruno Haible  <bruno@clisp.org>
21813
21814         Optimize and test memrchr.
21815         * modules/memrchr (Depends-on): Add intprops.
21816         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
21817         * modules/memrchr-tests: New file.
21818         * tests/test-memrchr.c: New file.
21819
21820 2008-04-26  Bruno Haible  <bruno@clisp.org>
21821
21822         Add tentative support for DragonFly BSD.
21823         * lib/stdio-impl.h: Add macros for DragonFly BSD.
21824         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
21825         fp.
21826         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
21827         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
21828         * lib/fpurge.c (fpurge): Likewise.
21829         * lib/freadable.c (freaadable): Likewise.
21830         * lib/freadahead.c (freadahead): Likewise.
21831         * lib/freading.c (freading): Likewise.
21832         * lib/freadptr.c (freadptr): Likewise.
21833         * lib/freadseek.c (freadptrinc): Likewise.
21834         * lib/fseeko.c (fseeko): Likewise.
21835         * lib/fseterr.c (fseterr): Likewise.
21836         * lib/fwritable.c (fwritable): Likewise.
21837         * lib/fwriting.c (fwriting): Likewise.
21838
21839 2008-04-26  Bruno Haible  <bruno@clisp.org>
21840
21841         * lib/stdio-impl.h: New file.
21842         * lib/fbufmode.c: Include stdio-impl.h.
21843         (fbufmode): Use fp_, remove redundant #defines.
21844         * lib/fflush.c: Include stdio-impl.h.
21845         (clear_ungetc_buffer): Remove redundant #defines.
21846         * lib/fpurge.c: Include stdio-impl.h.
21847         (fpurge): Remove redundant #defines.
21848         * lib/freadable.c: Include stdio-impl.h.
21849         (freadable): Remove redundant #defines.
21850         * lib/freadahead.c: Include stdio-impl.h.
21851         (freadahead): Remove redundant #defines.
21852         * lib/freading.c: Include stdio-impl.h.
21853         (freading): Remove redundant #defines.
21854         * lib/freadptr.c: Include stdio-impl.h.
21855         (freadptr): Remove redundant #defines.
21856         * lib/freadseek.c: Include stdio-impl.h.
21857         (freadptrinc): Remove redundant #defines.
21858         * lib/fseeko.c: Include stdio-impl.h.
21859         (rpl_fseeko): Remove redundant #defines.
21860         * lib/fseterr.c: Include stdio-impl.h.
21861         (fseterr): Remove redundant #defines.
21862         * lib/fwritable.c: Include stdio-impl.h.
21863         (fwritable: Remove redundant #defines.
21864         * lib/fwriting.c: Include stdio-impl.h.
21865         (fwriting): Remove redundant #defines.
21866         * modules/fbufmode (Files): Add lib/stdio-impl.h.
21867         * modules/fflush (Files): Likewise.
21868         * modules/fpurge (Files): Likewise.
21869         * modules/freadable (Files): Likewise.
21870         * modules/freadahead (Files): Likewise.
21871         * modules/freading (Files): Likewise.
21872         * modules/freadptr (Files): Likewise.
21873         * modules/freadseek (Files): Likewise.
21874         * modules/fseeko (Files): Likewise.
21875         * modules/fseterr (Files): Likewise.
21876         * modules/fwritable (Files): Likewise.
21877         * modules/fwriting (Files): Likewise.
21878
21879 2008-04-26  Bruno Haible  <bruno@clisp.org>
21880
21881         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
21882         restore_seek_optimization, update_fpos_cache): New functions, extracted
21883         from rpl_fflush.
21884         (rpl_fflush): Use them.
21885         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
21886         (gl_REPLACE_FFLUSH): Use it.
21887
21888 2008-04-26  Bruno Haible  <bruno@clisp.org>
21889
21890         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
21891         on Solaris.
21892         * tests/test-xstrtoimax.sh: Likewise.
21893         * tests/test-xstrtoumax.sh: Likewise.
21894         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21895
21896 2008-04-26  Bruno Haible  <bruno@clisp.org>
21897
21898         * modules/memchr-tests: New file.
21899         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
21900
21901 2008-04-26  Eric Blake  <ebb9@byu.net>
21902             Bruno Haible  <bruno@clisp.org>
21903
21904         * lib/memchr.c: Include intprops.h.
21905         (__memchr): Optimize parallel detection of matching bytes. Rename local
21906         variables. Add explanatory comments.
21907
21908 2008-04-26  Bruno Haible  <bruno@clisp.org>
21909
21910         Fix module 'memchr', broken since 2000-10-28.
21911         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
21912
21913 2008-04-26  Bruno Haible  <bruno@clisp.org>
21914
21915         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
21916         comments.
21917
21918 2008-04-25  Eric Blake  <ebb9@byu.net>
21919
21920         Use native fstatat on cygwin 1.7.0.
21921         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
21922         first.
21923
21924 2008-04-23  Eric Blake  <ebb9@byu.net>
21925
21926         Improve memchr2 performance.
21927         * lib/memchr2.c (memchr2): Further optimize parallel detection of
21928         NUL bytes.
21929         * modules/memchr2 (Depends-on): Use intprops.h.
21930
21931 2008-04-23  Simon Josefsson  <simon@josefsson.org>
21932
21933         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
21934         an inline function instead of a CPP macro.  Patch by Ben Pfaff
21935         <blp@cs.stanford.edu>.
21936
21937 2008-04-23  Simon Josefsson  <simon@josefsson.org>
21938
21939         * lib/arpa_inet.in.h: New file.
21940
21941         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
21942         (Makefile.am): Sed in substitute header file.
21943
21944         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
21945         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
21946
21947         * modules/inet_ntop (configure.ac): Use
21948         gl_ARPA_INET_MODULE_INDICATOR.
21949
21950         * modules/inet_pton (configure.ac): Use
21951         gl_ARPA_INET_MODULE_INDICATOR.
21952
21953 2008-04-22  Jim Meyering  <meyering@redhat.com>
21954
21955         * modules/verify (License): Re-license as LGPLv2+.
21956
21957 2008-04-22  Simon Josefsson  <simon@josefsson.org>
21958
21959         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
21960         parameter to void* as per POSIX standard (MinGW uses char*).
21961
21962 2008-04-21  Bruno Haible  <bruno@clisp.org>
21963
21964         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
21965         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
21966         Define to replacements if REPLACE_ISWCNTRL is 1.
21967         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
21968         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
21969         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
21970         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
21971         what it fixes.
21972         * doc/posix-functions/iswalpha.texi: Likewise.
21973         * doc/posix-functions/iswblank.texi: Likewise.
21974         * doc/posix-functions/iswcntrl.texi: Likewise.
21975         * doc/posix-functions/iswdigit.texi: Likewise.
21976         * doc/posix-functions/iswgraph.texi: Likewise.
21977         * doc/posix-functions/iswlower.texi: Likewise.
21978         * doc/posix-functions/iswprint.texi: Likewise.
21979         * doc/posix-functions/iswpunct.texi: Likewise.
21980         * doc/posix-functions/iswspace.texi: Likewise.
21981         * doc/posix-functions/iswupper.texi: Likewise.
21982         * doc/posix-functions/iswxdigit.texi: Likewise.
21983         Reported by Alain Guibert.
21984
21985 2008-04-21  Bruno Haible  <bruno@clisp.org>
21986
21987         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
21988         Patch by Alain Guibert.
21989
21990 2008-04-21  Bruno Haible  <bruno@clisp.org>
21991
21992         Fix test failures on mingw.
21993         * tests/test-xstrtol.c (print_no_progname): New function.
21994         (main): Install it in error_print_progname hook.
21995         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
21996         * tests/test-xstrtoimax.sh: Likewise.
21997         * tests/test-xstrtoumax.sh: Likewise.
21998
21999 2008-04-21  Bruno Haible  <bruno@clisp.org>
22000
22001         Fix test failure on mingw.
22002         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
22003
22004 2008-04-21  Bruno Haible  <bruno@clisp.org>
22005
22006         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
22007         Actually assign a value.
22008
22009 2008-04-20  Bruno Haible  <bruno@clisp.org>
22010
22011         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
22012         take 2.
22013         * lib/canonicalize.c (canonicalize_file_name): Elide if the
22014         'canonicalize-lgpl' module is also used.
22015         * lib/canonicalize-lgpl.c: Undo last change.
22016         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
22017
22018 2008-04-20  Bruno Haible  <bruno@clisp.org>
22019
22020         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
22021         config.h. Provide _mkdir based fallback for mingw.
22022         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
22023         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
22024         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
22025         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
22026         rather than defining mkdir in config.h.
22027         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
22028         (gl_SYS_STAT_H_DEFAULTS): New macro.
22029         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
22030         HAVE_IO_H any more.
22031         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
22032         HAVE_DECL_MKDIR and HAVE_IO_H.
22033
22034 2008-04-20  Bruno Haible  <bruno@clisp.org>
22035
22036         * lib/isapipe.c: Port to native Windows platforms.
22037
22038 2008-04-20  Bruno Haible  <bruno@clisp.org>
22039
22040         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
22041
22042 2008-04-21  Eric Blake  <ebb9@byu.net>
22043
22044         Work around preprocessors that don't handle UINTMAX_MAX.
22045         * lib/memchr2.c (memchr2): Avoid embedded #if.
22046         Reported by Alain Guibert, fix suggested by Bruno Haible.
22047
22048 2008-04-21  Simon Josefsson  <simon@josefsson.org>
22049
22050         * doc/posix-functions/strftime.texi (strftime): Explain better
22051         Windows incompatibility.  Suggested by Micah Cowan
22052         <micah@cowan.name>.
22053
22054 2008-04-20  Bruno Haible  <bruno@clisp.org>
22055
22056         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
22057         unistr/u8-mblen.
22058
22059 2008-04-20  Bruno Haible  <bruno@clisp.org>
22060
22061         Fix test failure on platforms with non-GNU iconv.
22062         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
22063         (U_TO_U8): Use it, rather than u16_to_u8.
22064         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
22065         units at the end of the input string.
22066         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
22067
22068 2008-04-20  Bruno Haible  <bruno@clisp.org>
22069
22070         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
22071         when the resulting length is 0.
22072         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
22073
22074 2008-04-20  Bruno Haible  <bruno@clisp.org>
22075
22076         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
22077         works.
22078         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
22079
22080 2008-04-20  Bruno Haible  <bruno@clisp.org>
22081
22082         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
22083         * modules/tsearch-tests (configure.ac): Test for initstate function.
22084
22085 2008-04-20  Bruno Haible  <bruno@clisp.org>
22086
22087         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
22088         for nlink_t if missing.
22089         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
22090
22091 2008-04-19  Bruno Haible  <bruno@clisp.org>
22092
22093         Work around snprintf bug on Linux libc5.
22094         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
22095         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
22096         gl_SNPRINTF_SIZE1.
22097         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22098         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
22099         that test failed.
22100         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
22101         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
22102         * modules/snprintf (Files): Add m4/printf.m4.
22103         * modules/vsnprintf (Files): Likewise.
22104         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
22105         * doc/posix-functions/vsnprintf.texi: Likewise.
22106
22107 2008-04-19  Bruno Haible  <bruno@clisp.org>
22108
22109         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
22110         from 0.0058 to less than 10^-7.
22111
22112 2008-04-19  Bruno Haible  <bruno@clisp.org>
22113
22114         Fix rounding when a precision is given.
22115         * lib/vasnprintf.c (is_borderline): New function.
22116         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
22117         9...9x.
22118         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
22119         %e, %g.
22120         * tests/test-vasprintf-posix.c (test_function): Likewise.
22121         * tests/test-snprintf-posix.h (test_function): Likewise.
22122         * tests/test-sprintf-posix.h (test_function): Likewise.
22123         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
22124         * tests/test-printf-posix.h (test_function): Likewise.
22125         * tests/test-printf-posix.output: Update.
22126         Reported by John Darrington <john@darrington.wattle.id.au> via
22127         Ben Pfaff <blp@cs.stanford.edu>.
22128
22129 2008-04-18  Simon Josefsson  <simon@josefsson.org>
22130
22131         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
22132         Suggested by Bruno Haible <bruno@clisp.org>.
22133
22134 2008-04-17  Bruno Haible  <bruno@clisp.org>
22135
22136         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
22137         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
22138         implementation.
22139         Patch by Bruce Merry <bmerry@gmail.com>.
22140
22141 2008-04-17  Simon Josefsson  <simon@josefsson.org>
22142
22143         * doc/posix-functions/strftime.texi (strftime): Mention that %e
22144         doesn't work under Windows.
22145
22146 2008-04-16  Bruno Haible  <bruno@clisp.org>
22147
22148         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
22149         New macros.
22150         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
22151         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
22152         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
22153         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
22154         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
22155         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
22156         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
22157         macros.
22158         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
22159         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
22160         Northern Sotho, Uighur.
22161
22162 2008-04-16  Bruno Haible  <bruno@clisp.org>
22163
22164         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
22165         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
22166         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
22167         Reported by Daniel Bergström <daniel@octocode.com>.
22168
22169 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
22170             Bruno Haible  <bruno@clisp.org>
22171
22172         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
22173         function.
22174         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
22175         New functions, mostly extracted from gl_locale_name_default.
22176         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
22177
22178 2008-04-16  Eric Blake  <ebb9@byu.net>
22179
22180         Adjust strtod detection to catch glibc 2.7 bug.
22181         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
22182         Reported by John Gatewood Ham.
22183
22184 2008-04-16  Bruno Haible  <bruno@clisp.org>
22185
22186         Add tentative support for Linux libc5.
22187         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
22188         * lib/fpurge.c (fpurge): Likewise.
22189         * lib/freadable.c (freadable): Likewise.
22190         * lib/freadahead.c (freadahead): Likewise.
22191         * lib/freading.c (freading): Likewise.
22192         * lib/freadptr.c (freadptr): Likewise.
22193         * lib/freadseek.c (freadptrinc): Likewise.
22194         * lib/fseeko.c (rpl_fseeko): Likewise.
22195         * lib/fseterr.c (fseterr): Likewise.
22196         * lib/fwritable.c (fwritable): Likewise.
22197         * lib/fwriting.c (fwriting): Likewise.
22198         Reported by Alain Guibert <alguibert+bts@free.fr>.
22199
22200 2008-04-15  Bruno Haible  <bruno@clisp.org>
22201
22202         * modules/mathl (configure.ac): Define module indicator.
22203
22204 2008-04-15  Bruno Haible  <bruno@clisp.org>
22205
22206         * lib/logl.c (logl): Remove unused variables.
22207
22208 2008-04-15  Bruno Haible  <bruno@clisp.org>
22209
22210         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
22211         fails.
22212
22213 2008-04-15  Bruno Haible  <bruno@clisp.org>
22214
22215         * lib/trim.c (trim2): Fix argument of isspace() macro.
22216
22217 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
22218
22219         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
22220         to 0.
22221         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
22222
22223 2008-04-14  Bruno Haible  <bruno@clisp.org>
22224
22225         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
22226         AC_LANG_PROGRAM argument.
22227         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
22228         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
22229         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
22230         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22231         * m4/math_h.m4 (gl_MATH_H): Likewise.
22232         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22233         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22234         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
22235         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
22236         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
22237         * m4/regex.m4 (gl_REGEX): Likewise.
22238         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
22239         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
22240         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22241         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
22242         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
22243         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22244         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22245         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22246
22247 2008-04-14  Jim Meyering  <meyering@redhat.com>
22248
22249         test-strtod: fix typos: s/abs/fabs/
22250         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
22251
22252 2008-04-13  Bruno Haible  <bruno@clisp.org>
22253
22254         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
22255         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
22256         module is also used and while not building the reloc-wrapper.
22257
22258 2008-04-13  Bruno Haible  <bruno@clisp.org>
22259
22260         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
22261
22262 2008-04-13  Bruno Haible  <bruno@clisp.org>
22263
22264         Fix AIX compilation failure introduced on 2008-04-02.
22265         * tests/test-frexp.c (exp): Undefine before redefining.
22266         * tests/test-frexpl.c (exp): Likewise.
22267
22268 2008-04-13  Bruno Haible  <bruno@clisp.org>
22269
22270         Work around a HP-UX stdio bug.
22271         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
22272         * tests/test-ftello.c (main): Likewise.
22273         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
22274         * doc/posix-functions/ftello.texi: Likewise.
22275
22276 2008-04-13  Bruno Haible  <bruno@clisp.org>
22277
22278         Make test-signbit pass on HP-UX/hppa.
22279         * tests/test-signbit.c (minus_zerol): New variable.
22280         (test_signbitl): Use it.
22281
22282 2008-04-13  Bruno Haible  <bruno@clisp.org>
22283
22284         Make truncl work on OSF/1 4.0.
22285         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
22286         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
22287         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
22288         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
22289         HAVE_DECL_TRUNCL.
22290         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
22291         HAVE_DECL_TRUNCL.
22292         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
22293
22294 2008-04-13  Bruno Haible  <bruno@clisp.org>
22295
22296         * lib/unictype.h: Remove trailing comma from enumeration definitions.
22297
22298 2008-04-13  Bruno Haible  <bruno@clisp.org>
22299
22300         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
22301         expression, so as to avoid HP-UX 11 cc compiler bug.
22302
22303 2008-04-13  Bruno Haible  <bruno@clisp.org>
22304
22305         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
22306
22307 2008-04-13  Bruno Haible  <bruno@clisp.org>
22308
22309         * lib/git-merge-changelog.c: Remove empty declaration outside of
22310         functions.
22311
22312 2008-04-13  Bruno Haible  <bruno@clisp.org>
22313
22314         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
22315
22316 2008-04-13  Bruno Haible  <bruno@clisp.org>
22317
22318         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
22319         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
22320         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
22321         also if it exists but lacks definitions of the SHUT_* macros.
22322         * modules/sys_socket (Description): Update.
22323         Reported by Elbert Pol <e.pol@chello.nl>.
22324
22325 2008-04-13  Bruno Haible  <bruno@clisp.org>
22326
22327         * lib/localcharset.c (OS2): Don't redefine if already defined.
22328         Reported by Elbert Pol <e.pol@chello.nl>.
22329
22330 2008-04-13  Bruno Haible  <bruno@clisp.org>
22331
22332         * lib/binary-io.h [__EMX__]: Include <io.h>.
22333         Reported by Elbert Pol <e.pol@chello.nl>.
22334
22335 2008-04-12  Bruno Haible  <bruno@clisp.org>
22336
22337         * lib/fpucw.h: Enable the definitions also for x86_64.
22338         Needed for NetBSD/x86_64.
22339         Reported by Thomas Klausner <tk@giga.or.at>.
22340
22341 2008-04-12  Bruno Haible  <bruno@clisp.org>
22342
22343         * tests/test-strtod.c: Include isnand.h.
22344         (main): Use isnand instead of isnan.
22345         Reported by Jim Meyering.
22346
22347 2008-04-12  Bruno Haible  <bruno@clisp.org>
22348
22349         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
22350         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
22351
22352 2008-04-12  Jim Meyering  <meyering@redhat.com>
22353
22354         * m4/math_h.m4 (gl_MATH_H): Fix typos.
22355
22356 2008-04-12  Bruno Haible  <bruno@clisp.org>
22357
22358         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
22359         Reported by Elbert Pol <e.pol@chello.nl>.
22360
22361 2008-04-12  Eric Blake  <ebb9@byu.net>
22362
22363         Work around Solaris 10 math.h bug.
22364         * m4/math_h.m4 (gl_MATH_H): Check for bug.
22365         (gl_MATH_H_DEFAULTS): Set up default.
22366         * modules/math (Makefile.am): Replace new indicators.
22367         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
22368         * tests/test-math.c (main): Test this.
22369         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
22370         * doc/posix-headers/math.texi (math.h): Mention bug.
22371         Reported by Nelson H. F. Beebe and Jim Meyering.
22372
22373 2008-04-11  Bruno Haible  <bruno@clisp.org>
22374
22375         Adapt to future versions of Apple GCC.
22376         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
22377         Reported by Peter O'Gorman <peter@pogma.com>.
22378
22379 2008-04-11  Bruno Haible  <bruno@clisp.org>
22380
22381         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
22382
22383 2008-04-11  Bruno Haible  <bruno@clisp.org>
22384
22385         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
22386
22387         * modules/getaddrinfo-tests (Makefile.am): Define
22388         test_getaddrinfo_LDADD.
22389
22390 2008-04-11  Bruno Haible  <bruno@clisp.org>
22391
22392         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
22393         (init): Fix syntax error.
22394         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
22395         is declared.
22396
22397 2008-04-11  Bruno Haible  <bruno@clisp.org>
22398
22399         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
22400         * modules/glob (Depends-on): Add stdbool.
22401
22402 2008-04-11  Bruno Haible  <bruno@clisp.org>
22403
22404         * lib/trim.c: Include <string.h>.
22405
22406 2008-04-11  Eric Blake  <ebb9@byu.net>
22407
22408         Avoid compile failure on OS/2.
22409         * lib/regex_internal.h (internal_function): Disable optimization
22410         on OS/2 (__EMX__), where it caused compiler error.
22411         Reported by Elbert Pol.
22412
22413 2008-04-11  Bruno Haible  <bruno@clisp.org>
22414
22415         Flush the standard error stream before aborting. Needed on mingw.
22416         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
22417         * tests/test-array_list.c (ASSERT): Likewise.
22418         * tests/test-array_oset.c (ASSERT): Likewise.
22419         * tests/test-avltree_list.c (ASSERT): Likewise.
22420         * tests/test-avltree_oset.c (ASSERT): Likewise.
22421         * tests/test-avltreehash_list.c (ASSERT): Likewise.
22422         * tests/test-binary-io.c (ASSERT): Likewise.
22423         * tests/test-byteswap.c (ASSERT): Likewise.
22424         * tests/test-c-ctype.c (ASSERT): Likewise.
22425         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
22426         * tests/test-c-strcasestr.c (ASSERT): Likewise.
22427         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
22428         * tests/test-c-strstr.c (ASSERT): Likewise.
22429         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
22430         * tests/test-canonicalize.c (ASSERT): Likewise.
22431         * tests/test-carray_list.c (ASSERT): Likewise.
22432         * tests/test-ceilf1.c (ASSERT): Likewise.
22433         * tests/test-ceilf2.c (ASSERT): Likewise.
22434         * tests/test-ceill.c (ASSERT): Likewise.
22435         * tests/test-count-one-bits.c (ASSERT): Likewise.
22436         * tests/test-fbufmode.c (ASSERT): Likewise.
22437         * tests/test-fflush2.c (ASSERT): Likewise.
22438         * tests/test-floorf1.c (ASSERT): Likewise.
22439         * tests/test-floorf2.c (ASSERT): Likewise.
22440         * tests/test-floorl.c (ASSERT): Likewise.
22441         * tests/test-fopen.c (ASSERT): Likewise.
22442         * tests/test-fpending.c (ASSERT): Likewise.
22443         * tests/test-fprintf-posix.c (ASSERT): Likewise.
22444         * tests/test-fpurge.c (ASSERT): Likewise.
22445         * tests/test-freadable.c (ASSERT): Likewise.
22446         * tests/test-freadahead.c (ASSERT): Likewise.
22447         * tests/test-freading.c (ASSERT): Likewise.
22448         * tests/test-freadptr.c (ASSERT): Likewise.
22449         * tests/test-freadptr2.c (ASSERT): Likewise.
22450         * tests/test-freadseek.c (ASSERT): Likewise.
22451         * tests/test-freopen.c (ASSERT): Likewise.
22452         * tests/test-frexp.c (ASSERT): Likewise.
22453         * tests/test-frexpl.c (ASSERT): Likewise.
22454         * tests/test-fseek.c (ASSERT): Likewise.
22455         * tests/test-fseeko.c (ASSERT): Likewise.
22456         * tests/test-fstrcmp.c (ASSERT): Likewise.
22457         * tests/test-ftell.c (ASSERT): Likewise.
22458         * tests/test-ftello.c (ASSERT): Likewise.
22459         * tests/test-func.c (ASSERT): Likewise.
22460         * tests/test-fwritable.c (ASSERT): Likewise.
22461         * tests/test-fwriting.c (ASSERT): Likewise.
22462         * tests/test-getdelim.c (ASSERT): Likewise.
22463         * tests/test-getline.c (ASSERT): Likewise.
22464         * tests/test-i-ring.c (ASSERT): Likewise.
22465         * tests/test-iconv-utf.c (ASSERT): Likewise.
22466         * tests/test-iconv.c (ASSERT): Likewise.
22467         * tests/test-isfinite.c (ASSERT): Likewise.
22468         * tests/test-isnand.c (ASSERT): Likewise.
22469         * tests/test-isnanf.c (ASSERT): Likewise.
22470         * tests/test-isnanl.h (ASSERT): Likewise.
22471         * tests/test-ldexpl.c (ASSERT): Likewise.
22472         * tests/test-linked_list.c (ASSERT): Likewise.
22473         * tests/test-linkedhash_list.c (ASSERT): Likewise.
22474         * tests/test-localename.c (ASSERT): Likewise.
22475         * tests/test-lseek.c (ASSERT): Likewise.
22476         * tests/test-mbscasecmp.c (ASSERT): Likewise.
22477         * tests/test-mbscasestr1.c (ASSERT): Likewise.
22478         * tests/test-mbscasestr2.c (ASSERT): Likewise.
22479         * tests/test-mbscasestr3.c (ASSERT): Likewise.
22480         * tests/test-mbscasestr4.c (ASSERT): Likewise.
22481         * tests/test-mbschr.c (ASSERT): Likewise.
22482         * tests/test-mbscspn.c (ASSERT): Likewise.
22483         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
22484         * tests/test-mbspbrk.c (ASSERT): Likewise.
22485         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
22486         * tests/test-mbsrchr.c (ASSERT): Likewise.
22487         * tests/test-mbsspn.c (ASSERT): Likewise.
22488         * tests/test-mbsstr1.c (ASSERT): Likewise.
22489         * tests/test-mbsstr2.c (ASSERT): Likewise.
22490         * tests/test-mbsstr3.c (ASSERT): Likewise.
22491         * tests/test-memchr2.c (ASSERT): Likewise.
22492         * tests/test-memmem.c (ASSERT): Likewise.
22493         * tests/test-open.c (ASSERT): Likewise.
22494         * tests/test-printf-frexp.c (ASSERT): Likewise.
22495         * tests/test-printf-frexpl.c (ASSERT): Likewise.
22496         * tests/test-printf-posix.c (ASSERT): Likewise.
22497         * tests/test-quotearg.c (ASSERT): Likewise.
22498         * tests/test-rbtree_list.c (ASSERT): Likewise.
22499         * tests/test-rbtree_oset.c (ASSERT): Likewise.
22500         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
22501         * tests/test-round1.c (ASSERT): Likewise.
22502         * tests/test-roundf1.c (ASSERT): Likewise.
22503         * tests/test-roundl.c (ASSERT): Likewise.
22504         * tests/test-signbit.c (ASSERT): Likewise.
22505         * tests/test-sleep.c (ASSERT): Likewise.
22506         * tests/test-snprintf-posix.c (ASSERT): Likewise.
22507         * tests/test-snprintf.c (ASSERT): Likewise.
22508         * tests/test-sprintf-posix.c (ASSERT): Likewise.
22509         * tests/test-stat-time.c (ASSERT): Likewise.
22510         * tests/test-strcasestr.c (ASSERT): Likewise.
22511         * tests/test-strerror.c (ASSERT): Likewise.
22512         * tests/test-striconv.c (ASSERT): Likewise.
22513         * tests/test-striconveh.c (ASSERT): Likewise.
22514         * tests/test-striconveha.c (ASSERT): Likewise.
22515         * tests/test-strsignal.c (ASSERT): Likewise.
22516         * tests/test-strstr.c (ASSERT): Likewise.
22517         * tests/test-strtod.c (ASSERT): Likewise.
22518         * tests/test-trunc1.c (ASSERT): Likewise.
22519         * tests/test-trunc2.c (ASSERT): Likewise.
22520         * tests/test-truncf1.c (ASSERT): Likewise.
22521         * tests/test-truncf2.c (ASSERT): Likewise.
22522         * tests/test-truncl.c (ASSERT): Likewise.
22523         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
22524         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
22525         * tests/test-vasnprintf.c (ASSERT): Likewise.
22526         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
22527         * tests/test-vasprintf.c (ASSERT): Likewise.
22528         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
22529         * tests/test-vprintf-posix.c (ASSERT): Likewise.
22530         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
22531         * tests/test-vsnprintf.c (ASSERT): Likewise.
22532         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
22533         * tests/test-wcwidth.c (ASSERT): Likewise.
22534         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
22535         * tests/test-xprintf-posix.c (ASSERT): Likewise.
22536         * tests/test-xvasprintf.c (ASSERT): Likewise.
22537         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
22538         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
22539         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
22540         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
22541         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
22542         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
22543         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
22544         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
22545         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
22546         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
22547         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
22548         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
22549         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
22550         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
22551         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
22552         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
22553         * tests/unictype/test-block_list.c (ASSERT): Likewise.
22554         * tests/unictype/test-block_of.c (ASSERT): Likewise.
22555         * tests/unictype/test-block_test.c (ASSERT): Likewise.
22556         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
22557         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
22558         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
22559         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
22560         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
22561         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
22562         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
22563         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
22564         * tests/unictype/test-combining.c (ASSERT): Likewise.
22565         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
22566         * tests/unictype/test-digit.c (ASSERT): Likewise.
22567         * tests/unictype/test-mirror.c (ASSERT): Likewise.
22568         * tests/unictype/test-numeric.c (ASSERT): Likewise.
22569         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
22570         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
22571         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
22572         * tests/unictype/test-scripts.c (ASSERT): Likewise.
22573         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
22574         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
22575         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
22576         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
22577         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
22578         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
22579         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
22580         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
22581         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
22582         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
22583         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
22584         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
22585         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
22586         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
22587         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
22588         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
22589         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
22590         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
22591         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
22592         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
22593         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
22594         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
22595         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
22596         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
22597         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
22598         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
22599         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
22600         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
22601         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
22602         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
22603         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
22604         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
22605         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
22606         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
22607         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
22608         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
22609         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
22610         Reported by Eric Blake.
22611
22612 2008-04-11  Bruno Haible  <bruno@clisp.org>
22613
22614         * lib/wchar.in.h: Tweak comment.
22615
22616 2008-04-11  Bruno Haible  <bruno@clisp.org>
22617
22618         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
22619         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
22620         gl_COMMON.
22621         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
22622
22623 2008-04-11  Bruno Haible  <bruno@clisp.org>
22624
22625         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
22626
22627 2008-04-11  Simon Josefsson  <simon@josefsson.org>
22628
22629         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
22630         of attempting to use non-existing /dev/*random.  Based on patch
22631         from Adam Strzelecki <ono@java.pl> in
22632         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
22633
22634 2008-04-08  Bruno Haible  <bruno@clisp.org>
22635
22636         Add tentative support for emx+gcc.
22637         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
22638         * lib/fpurge.c (fpurge): Likewise.
22639         * lib/freadable.c (freadable): Likewise.
22640         * lib/freadahead.c (freadahead): Likewise.
22641         * lib/freading.c (freading): Likewise.
22642         * lib/freadptr.c (freadptr): Likewise.
22643         * lib/freadseek.c (freadptrinc): Likewise.
22644         * lib/fseeko.c (rpl_fseeko): Likewise.
22645         * lib/fseterr.c (fseterr): Likewise.
22646         * lib/fwritable.c (fwritable): Likewise.
22647         * lib/fwriting.c (fwriting): Likewise.
22648         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
22649
22650 2008-04-09  Eric Blake  <ebb9@byu.net>
22651
22652         Avoid some autoconf warnings.
22653         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
22654         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
22655         * m4/afs.m4 (gl_AFS): Likewise.
22656         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
22657         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
22658         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
22659         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
22660         (gl_INTEGER_TYPE_SUFFIX): Likewise.
22661         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
22662         (AC_CHECK_DECLS_ONCE): Likewise.
22663         Rename file...
22664         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
22665         gnulib-tool requires autoconf 2.59 or better.
22666         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
22667
22668 2008-04-08  Eric Blake  <ebb9@byu.net>
22669
22670         Use 'git describe --match' if present (added in git 1.5.5).
22671         * build-aux/git-version-gen: Limit result to tags that match 'v*'
22672         if possible.
22673
22674 2008-04-08  Bruno Haible  <bruno@clisp.org>
22675
22676         Add tentative support for OpenServer.
22677         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
22678         _ptr, _cnt.
22679         * lib/fpurge.c (fpurge): Likewise.
22680         * lib/freadable.c (freadable): Likewise.
22681         * lib/freadahead.c (freadahead): Likewise.
22682         * lib/freading.c (freading): Likewise.
22683         * lib/freadptr.c (freadptr): Likewise.
22684         * lib/freadseek.c (freadptrinc): Likewise.
22685         * lib/fseeko.c (rpl_fseeko): Likewise.
22686         * lib/fseterr.c (fseterr): Likewise.
22687         * lib/fwritable.c (fwritable): Likewise.
22688         * lib/fwriting.c (fwriting): Likewise.
22689         Reported by Roger Cornelius <rac@tenzing.org> and
22690         Brian K. White <brian@aljex.com>.
22691
22692 2008-04-06  Jim Meyering  <meyering@redhat.com>
22693
22694         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
22695
22696 2008-04-06  Bruno Haible  <bruno@clisp.org>
22697
22698         Avoid possible error with non-ASCII bytes in UTF-8 locales.
22699         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
22700         * tests/test-printf-posix.sh: Likewise.
22701         * tests/test-vfprintf-posix.sh: Likewise.
22702         * tests/test-vprintf-posix.sh: Likewise.
22703         * tests/test-xprintf-posix.sh: Likewise.
22704
22705 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22706
22707         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
22708         hide error from 'ls', needed on OS/2.
22709         Report by Elbert Pol <elbert.pol@gmail.com>.
22710
22711 2008-04-04  Eric Blake  <ebb9@byu.net>
22712
22713         Make test-fseeko.c failures meaningful.
22714         * tests/test-fseeko.c: Print line number on failure.
22715         * tests/test-fseek.c: Likewise.
22716         Reported by Nelson H. F. Beebe.
22717
22718         Improve strtod bug detection check.
22719         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
22720         required for Solaris 10.
22721         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
22722
22723 2008-04-04  Bruno Haible  <bruno@clisp.org>
22724
22725         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
22726         by m4/setenv.m4.
22727
22728 2008-04-03  Eric Blake  <ebb9@byu.net>
22729
22730         Ensure sane .version contents.
22731         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
22732         version string.
22733         * build-aux/git-version-gen: Improve documentation.
22734
22735         Make GNU make output nicer.
22736         * top/GNUmakefile [!_have-Makefile]: Add dependency on
22737         MAKECMDGOALS to enforce message for all command line targets.  Set
22738         srcdir for use in maint.mk.
22739
22740         Another maintainer tweak.
22741         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
22742         a target that regenerates version.
22743
22744 2008-04-03  Jim Meyering  <meyering@redhat.com>
22745
22746         vc-list-files: don't cause coreutils "make po-check" failure
22747         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
22748
22749 2008-04-03  Eric Blake  <ebb9@byu.net>
22750
22751         Allow VPATH usage of vc-list-files.
22752         * build-aux/vc-list-files (scriptversion): Add timestamp.
22753         (options): Add --help, --version, -C.
22754         (CVS): Support installed cvsu.
22755
22756 2008-04-02  Bruno Haible  <bruno@clisp.org>
22757
22758         Avoid some "statement with no effect" warnings from gcc.
22759         * tests/test-wctype.c (main): Explicitly ignore unused values.
22760         Reported by Jim Meyering.
22761
22762 2008-04-02  Jim Meyering  <meyering@redhat.com>
22763
22764         Avoid some warnings from "gcc -Wshadow".
22765         * tests/test-frexp.c (exp): Define to a different identifier.
22766         * tests/test-frexpl.c (exp): Likewise.
22767
22768 2008-04-03  Jim Meyering  <meyering@redhat.com>
22769
22770         bootstrap: remove dangling *.[ch] symlinks from lib
22771         * build-aux/bootstrap [dangling symlink removal]: Move find's
22772         -depth option to precede all others, to avoid a warning.
22773         Remove *.[ch] files too, and from "$source_base" (usually lib/).
22774
22775 2008-04-02  Bruno Haible  <bruno@clisp.org>
22776
22777         Avoid some warnings from "gcc -Wshadow".
22778         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
22779         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
22780         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
22781         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
22782         Reported by Jim Meyering.
22783
22784 2008-04-01  Bruno Haible  <bruno@clisp.org>
22785
22786         Fix test to work on IRIX 6.5 with cc.
22787         * tests/test-math.c (numeric_equal): New function.
22788         (main): Use it.
22789
22790 2008-04-01  Bruno Haible  <bruno@clisp.org>
22791
22792         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
22793
22794 2008-04-01  Bruno Haible  <bruno@clisp.org>
22795
22796         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
22797         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22798         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
22799         (Depends-on): Remove math.
22800
22801         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
22802         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22803         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
22804         (Depends-on): Remove math.
22805
22806         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
22807         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22808         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
22809         (Depends-on): Remove math.
22810         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
22811         (Depends-on): Remove math.
22812
22813         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
22814         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22815         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
22816         (Depends-on): Remove math.
22817         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
22818         (Depends-on): Remove math.
22819
22820         * tests/test-round1.c: Include nan.h.
22821         (main): Use NaNd instead of NAN.
22822         * modules/round-tests (Files): Add tests/nan.h.
22823
22824         * tests/test-trunc1.c: Include nan.h.
22825         (main): Use NaNd instead of NAN.
22826         * modules/trunc-tests (Files): Add tests/nan.h.
22827
22828         * tests/test-roundf1.c: Include nan.h.
22829         (main): Use NaNf instead of NAN.
22830         * modules/roundf-tests (Files): Add tests/nan.h.
22831
22832         * tests/test-truncf1.c: Include nan.h.
22833         (main): Use NaNf instead of NAN.
22834         * modules/truncf-tests (Files): Add tests/nan.h.
22835
22836         * tests/test-ceilf1.c: Include nan.h.
22837         (main): Use NaNf instead of NAN.
22838         * modules/ceilf-tests (Files): Add tests/nan.h.
22839
22840         * tests/test-floorf1.c: Include nan.h.
22841         (main): Use NaNf instead of NAN.
22842         * modules/floorf-tests (Files): Add tests/nan.h.
22843
22844         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
22845         (main): Use NaNf instead of NAN.
22846         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
22847
22848         * tests/test-isnand.c: Include nan.h instead of <math.h>.
22849         (main): Use NaNd instead of NAN.
22850         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
22851
22852         * tests/test-frexp.c: Include nan.h.
22853         (main): Use NaNd instead of NAN.
22854         * modules/frexp-tests (Files): Add tests/nan.h.
22855
22856         * lib/isnan.c: Don't include <math.h>.
22857         (FUNC): Don't use NAN macro.
22858         * modules/isnand-nolibm (Depends-on): Remove math.
22859         * modules/isnanf-nolibm (Depends-on): Remove math.
22860         * modules/isnanl (Depends-on): Remove math.
22861         * modules/isnanl-nolibm (Depends-on): Remove math.
22862
22863         * tests/nan.h: New file.
22864
22865 2008-04-01  Eric Blake  <ebb9@byu.net>
22866
22867         Fix typos.
22868         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
22869         values to be the right type.
22870
22871         For now, cater to gnulib strtod inaccuracies.
22872         * tests/test-strtod.c (main): Allow 1-ulp error on expected
22873         fractional results.  While not as nice from a QoI perspective, it
22874         is a quicker patch than correctly implementing decimal to binary
22875         rounding.
22876
22877 2008-03-31  Eric Blake  <ebb9@byu.net>
22878
22879         Guarantee a definition of NAN.
22880         * lib/math.in.h (NAN): Define if missing.
22881         * tests/test-math.c (main): Test it.
22882         * doc/posix-headers/math.texi (math.h): Document this.
22883         * lib/isnan.c (rpl_isnand): Use it.
22884         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
22885         * tests/test-floorf1.c (NaN): Likewise.
22886         * tests/test-frexp.c (NaN): Likewise.
22887         * tests/test-isnand.c (NaN): Likewise.
22888         * tests/test-isnanf.c (NaN): Likewise.
22889         * tests/test-round1.c (NaN): Likewise.
22890         * tests/test-roundf1.c (NaN): Likewise.
22891         * tests/test-snprintf-posix.h (NaN): Likewise.
22892         * tests/test-sprintf-posix.h (NaN): Likewise.
22893         * tests/test-trunc1.c (NaN): Likewise.
22894         * tests/test-truncf1.c (NaN): Likewise.
22895         * tests/test-vasnprintf-posix.c (NaN): Likewise.
22896         * tests/test-vasprintf-posix.c (NaN): Likewise.
22897         * modules/isnand-nolibm (Depends-on): Add math.
22898         * modules/isnanf-nolibm (Depends-on): Likewise.
22899         * modules/isnanl (Depends-on): Likewise.
22900         * modules/isnanl-nolibm (Depends-on): Likewise.
22901         * modules/snprintf-posix-tests (Depends-on): Likewise.
22902         * modules/sprintf-posix-tests (Depends-on): Likewise.
22903         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
22904         * modules/vsprintf-posix-tests (Depends-on): Likewise.
22905         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
22906         * modules/vasprintf-posix-tests (Depends-on): Likewise.
22907
22908 2008-03-31  Bruno Haible  <bruno@clisp.org>
22909
22910         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
22911         * doc/posix-functions/strtod.texi: Likewise.
22912
22913 2008-03-31  Bruno Haible  <bruno@clisp.org>
22914
22915         * tests/test-strtod.c (main): Don't use C99 syntax.
22916
22917 2008-03-31  Bruno Haible  <bruno@clisp.org>
22918
22919         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
22920         Reported by Eric Blake.
22921
22922 2008-03-31  Jim Meyering  <meyering@redhat.com>
22923
22924         Don't compare actual signbit return values.
22925         * tests/test-strtod.c (main): Rather, compare only their
22926         zero/non-zero nature.
22927
22928 2008-03-31  Eric Blake  <ebb9@byu.net>
22929
22930         More strtod documentation.
22931         * doc/posix-functions/strtod.texi (strtod): Interpret more test
22932         failures as distinct bugs.
22933
22934 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
22935
22936         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
22937         Problem reported by Erik Benada in
22938         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
22939
22940 2008-03-30  Bruno Haible  <bruno@clisp.org>
22941
22942         * tests/test-strtod.c: Add comments about which assertion fails on which
22943         platform.
22944         * doc/posix-functions/strtod.texi: Add info about many more platforms.
22945
22946 2008-03-30  Eric Blake  <ebb9@byu.net>
22947
22948         Test signbit behavior on zeros.
22949         * tests/test-signbit.c (test_signbitf): Add tests for zero.
22950         (test_signbitd, test_signbitl): Likewise.
22951
22952         More strtod touchups.
22953         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
22954         sign of negative underflow, for now.  Use .5, not .1.
22955         * doc/posix-functions/strtod.texi (strtod): Mention these
22956         limitations.
22957         Reported by Jim Meyering.
22958
22959 2008-03-30  Bruno Haible  <bruno@clisp.org>
22960
22961         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
22962         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
22963
22964 2008-03-30  Bruno Haible  <bruno@clisp.org>
22965
22966         Avoid failure when attempting to return empty iconv results on some
22967         platforms.
22968         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
22969         allocation, don't report ENOMEM when the resulting string is empty.
22970
22971 2008-03-30  Bruno Haible  <bruno@clisp.org>
22972
22973         Fix buffer overrun.
22974         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
22975         Don't consider the width for tmp_length. Check count against tmp_length
22976         before doing the padding. Ensure enough allocation during padding.
22977
22978 2008-03-30  Eric Blake  <ebb9@byu.net>
22979
22980         strtod touchups.
22981         * lib/strtod.c (strtod): Avoid compiler warnings.
22982         Reported by Jim Meyering.
22983
22984 2008-03-30  Bruno Haible  <bruno@clisp.org>
22985
22986         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
22987         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
22988         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
22989         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
22990         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
22991         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
22992         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
22993         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
22994
22995         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
22996         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
22997         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
22998         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
22999         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
23000         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
23001         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
23002         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
23003
23004         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
23005         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
23006         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
23007         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
23008         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
23009         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
23010         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
23011         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
23012
23013         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
23014         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
23015
23016         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
23017         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
23018
23019         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
23020         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
23021
23022         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
23023         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
23024         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
23025
23026         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
23027         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
23028         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
23029
23030         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
23031         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
23032         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
23033
23034         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
23035         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
23036         * modules/vasprintf (Depends-on): Add EOVERFLOW.
23037
23038         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
23039         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
23040         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
23041         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
23042         (Depends-on): Add EOVERFLOW.
23043         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
23044         (Depends-on): Add EOVERFLOW.
23045         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
23046         (Depends-on): Add EOVERFLOW.
23047         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
23048         (Depends-on): Add EOVERFLOW.
23049         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
23050         (Depends-on): Add EOVERFLOW.
23051         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
23052         (Depends-on): Add EOVERFLOW.
23053         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
23054         (Depends-on): Add EOVERFLOW.
23055         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
23056         (Depends-on): Add EOVERFLOW.
23057
23058         * lib/sprintf.c (EOVERFLOW): Remove fallback.
23059         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
23060         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
23061
23062         * lib/snprintf.c (EOVERFLOW): Remove fallback.
23063         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
23064         * modules/snprintf (Depends-on): Add EOVERFLOW.
23065
23066         * lib/poll.c (EOVERFLOW): Remove fallback.
23067         * modules/poll (Depends-on): Add EOVERFLOW.
23068
23069         * lib/getugroups.c (EOVERFLOW): Remove fallback.
23070         * modules/getugroups (Depends-on): Add EOVERFLOW.
23071
23072         * lib/getdelim.c (EOVERFLOW): Remove fallback.
23073         * modules/getdelim (Depends-on): Add EOVERFLOW.
23074
23075         * lib/ftell.c (EOVERFLOW): Remove fallback.
23076         * modules/ftell (Depends-on): Add EOVERFLOW.
23077
23078         * lib/fprintf.c (EOVERFLOW): Remove fallback.
23079         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
23080         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
23081
23082         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
23083
23084         * modules/EOVERFLOW-tests: New file.
23085         * tests/test-EOVERFLOW.c: New file.
23086
23087         * modules/EOVERFLOW: New file.
23088         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
23089
23090 2008-03-30  Bruno Haible  <bruno@clisp.org>
23091
23092         Fix bug introduced on 2007-06-10.
23093         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
23094         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
23095
23096 2008-03-30  Bruno Haible  <bruno@clisp.org>
23097
23098         Improve freadseek's efficiency after ungetc.
23099         * lib/freadseek.c: Include freadahead.h.
23100         (freadptrinc): New function, extracted from freadseek.
23101         (freadseek): Use it in a loop. Use freadahead to determine the number
23102         of loop iterations.
23103         * modules/freadseek (Depends-on): Add freadahead.
23104         (configure.ac): Require AC_C_INLINE.
23105
23106 2008-03-30  Bruno Haible  <bruno@clisp.org>
23107
23108         * lib/freadseek.c (freadseek): Don't ignore the return value of
23109         freadptr.
23110
23111 2008-03-29  Eric Blake  <ebb9@byu.net>
23112
23113         Add hex float support.
23114         * modules/strtod (Depends-on): Add c-ctype.
23115         (Link): Mention POW_LIB.
23116         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
23117         whitespace between 'e' and exponent.
23118         * tests/test-strtod.c (main): Enable hex float tests.
23119         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
23120         now provides.
23121
23122         Document various strtod bugs, with some fixes.
23123         * doc/posix-functions/strtod.texi (strtod): Document bugs with
23124         "-0x", "inf", "nan", and hex constants.
23125         * doc/posix-functions/atof.texi (atof): Likewise.
23126         * modules/stdlib (Makefile.am): Support strtod.
23127         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
23128         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
23129         detect additional strtod bugs.
23130         * lib/stdlib.in.h (rpl_strtod): Add declarations.
23131         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
23132         bool where appropriate.  Parse 'inf' and 'nan'.
23133         * tests/test-strtod.c: New file.
23134         * modules/strtod (Depends-on): Add stdbool, stdlib.
23135         (configure.ac): Turn on module indicator.
23136         * modules/strtod-tests: New module.
23137
23138 2008-03-29  Eric Blake  <ebb9@byu.net>
23139
23140         Fix ftell on mingw.
23141         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
23142         * modules/ftell-tests (Depends-on): Add binary-io.
23143         * modules/ftello-tests (Depends-on): Likewise.
23144         * tests/test-ftell.c (main): Enhance test to cover behavior after
23145         ungetc.  Enforce binary mode.
23146         * tests/test-ftello.c (main): Likewise.
23147
23148         Pass test-freadseek on cygwin.
23149         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
23150         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
23151         ungetc buffer.
23152
23153         * tests/test-fflush2.c (main): Fix typo.
23154
23155 2008-03-29  Bruno Haible  <bruno@clisp.org>
23156
23157         * tests/test-fflush2.c (main): Temporarily disable the contents of
23158         this test.
23159         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
23160         Reported by Eric Blake.
23161
23162 2008-03-28  Simon Josefsson  <simon@josefsson.org>
23163
23164         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
23165         (GC_SHA224_DIGEST_SIZE): Add.
23166
23167         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
23168         (gc_hash_digest_length): Likewise.
23169         (gc_hash_buffer): Likewise.
23170
23171 2008-03-25  Bruno Haible  <bruno@clisp.org>
23172
23173         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
23174         detail which gettext release to use.
23175         Reported by Simon Josefsson.
23176
23177 2008-03-26  Jim Meyering  <meyering@redhat.com>
23178
23179         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
23180         * modules/gnumakefile (clean-GNUmakefile): Also, use
23181         test ... && ... || : syntax rather than if-then ... fi.
23182
23183         gnumakefile: Don't double-quote-expand $(VPATH) value.
23184         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
23185
23186 2008-03-24  Eric Blake  <ebb9@byu.net>
23187
23188         Alter GNUmakefile to install into top directory.
23189         * modules/maintainer-makefile: Split, and add dependency...
23190         * modules/gnumakefile: to this new module.
23191         * build-aux/GNUmakefile: Move...
23192         * top/GNUmakefile: ...here.
23193         * build-aux/maint.mk: Move...
23194         * top/maint.mk: ...here.
23195         * MODULES.html.sh (Support for maintaining...): Document new
23196         module.
23197
23198 2008-03-23  Bruno Haible  <bruno@clisp.org>
23199
23200         * gnulib-tool: New options --vc-files, --no-vc-files.
23201         (func_usage): Document them.
23202         (vc_files): New variable.
23203         (func_import): Consider vc_files.
23204         (func_create_testdir): Set vc_files to empty.
23205         Suggested by Jim Meyering and Karl Berry.
23206
23207 2008-03-23  Bruno Haible  <bruno@clisp.org>
23208
23209         Fix regex compilation error on HP-UX 11.
23210         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
23211         * modules/regex (Files): Add m4/mbstate_t.m4.
23212         Reported by Ton Voon <ton.voon@altinity.com>.
23213
23214 2008-03-23  Bruno Haible  <bruno@clisp.org>
23215
23216         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
23217
23218 2008-03-23  Eric Blake  <ebb9@byu.net>
23219             Bruno Haible  <bruno@clisp.org>
23220
23221         Install files from top/ in the destination directory.
23222         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
23223         augmentation also for the files from top/.
23224         (func_import, func_create_testdir): Rewrite file names:
23225         top/filename -> filename.
23226
23227 2008-03-23  Bruno Haible  <bruno@clisp.org>
23228
23229         Tweak "gnulib --version" output.
23230         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
23231
23232 2008-03-23  Bruno Haible  <bruno@clisp.org>
23233
23234         Tweak "gnulib --version" output.
23235         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
23236         rather than contents of ChangeLog, when possible.
23237
23238 2008-03-21  Eric Blake  <ebb9@byu.net>
23239
23240         More --version tweaks.
23241         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
23242         date of last ChangeLog entry.
23243
23244 2008-03-21  Jim Meyering  <meyering@redhat.com>
23245
23246         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
23247
23248 2008-03-20  Eric Blake  <ebb9@byu.net>
23249
23250         VPATH fix.
23251         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
23252
23253 2008-03-20  Simon Josefsson  <simon@josefsson.org>
23254
23255         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
23256         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
23257
23258 2008-03-20  Eric Blake  <ebb9@byu.net>
23259
23260         Sync GNUmakefile with coreutils.
23261         * build-aux/GNUmakefile (have-Makefile): Rename...
23262         (_have-Makefile): ...to this, for namespace consideration.
23263         (GNUmakefile.cfg): Include, if present.
23264         (_autoreconf): Define a default.
23265         (_is-dist-target): New rule for rebuilds to pick up intra-release
23266         version.
23267         (maint-cfg.mk): Rename...
23268         (cfg.mk): ...to this.
23269
23270 2008-03-18  Jim Meyering  <meyering@redhat.com>
23271
23272         New script and module: mktempd
23273         * MODULES.html.sh (maint+release support): Add mktempd.
23274         * build-aux/mktempd: New file.
23275         * modules/mktempd: New file.
23276
23277 2008-03-15  Jim Meyering  <meyering@redhat.com>
23278
23279         Undo last change.
23280         * lib/sha1.c, lib/md5.c: 63 != ~63.
23281         Reported by Andreas Schwab.
23282
23283         sha1.c, md5.c: Hoist a redundant expression.
23284         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
23285         "ctx->buflen" only once, before calling *_process_block.
23286         * lib/md5.c (md5_process_bytes): Likewise.
23287
23288 2008-03-14  Eric Blake  <ebb9@byu.net>
23289
23290         Bump copyright year in files generated by gnulib-tool.
23291         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
23292         gnulib-tool, rather than hard-coding it.
23293
23294         Fix 'gnulib-tool --version' output to work with git.
23295         * gnulib-tool (func_gnulib_dir): New function, extracted from...
23296         (startup): ...here.
23297         (func_version): Use it to invoke git-version-gen, rather than
23298         relying on CVS keyword expansion.  Modernize wording.
23299         (cvsdatestamp, last_checkin_date, version): Kill unused
23300         variables.
23301
23302 2008-03-12  Jim Meyering  <meyering@redhat.com>
23303
23304         Recognize optional cast of the argument to free.
23305         * build-aux/useless-if-before-free: Update regexps.
23306
23307         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
23308
23309 2008-03-11  Bruno Haible  <bruno@clisp.org>
23310
23311         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
23312         by a single package.
23313         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
23314         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
23315         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
23316         Reported by Sam Steingold <sds@gnu.org>.
23317
23318 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
23319
23320         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
23321         repositories.
23322
23323 2008-03-11  Bruno Haible  <bruno@clisp.org>
23324
23325         Avoid conflicts between local macro definitions.
23326         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
23327         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
23328
23329 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
23330             Bruno Haible  <bruno@clisp.org>
23331
23332         Make va_copy work with some version of xlc on AIX 5.1.
23333         * lib/stdarg.in.h: New file.
23334         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
23335         On AIX, use a <stdarg.h> file substitute.
23336         * modules/stdarg (Files): Add lib/stdarg.in.h.
23337         (Depends-on): Add include_next.
23338         (Makefile.am): Build a stdarg.h substitute if requested.
23339         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
23340
23341 2008-03-10  Bruno Haible  <bruno@clisp.org>
23342
23343         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
23344         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
23345         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
23346
23347 2008-03-10  Bruno Haible  <bruno@clisp.org>
23348
23349         * modules/stdlib (Depends-on): Add include_next, remove
23350         absolute-header.
23351
23352 2008-03-09  Bruno Haible  <bruno@clisp.org>
23353
23354         * lib/freadahead.h (freadahead): Document more precisely.
23355         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
23356         the sum of both buffer sizes.
23357         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
23358         * NEWS: Document the change.
23359
23360 2008-03-09  Bruno Haible  <bruno@clisp.org>
23361
23362         Extend freadptr to return also the buffer size.
23363         * lib/freadptr.h (freadptr): Add sizep argument.
23364         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
23365         (freadptr): Add sizep argument. Determine buffer size like freadahead
23366         does.
23367         * tests/test-freadptr.c: Don't include freadahead.h.
23368         (main): Adapt for new calling convention of freadptr.
23369         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
23370         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
23371         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
23372         tests/test-freadptr2.sh.
23373         (Depends): Remove freadahead.
23374         (TESTS): Add test-freadptr2.sh.
23375         (check_PROGRAMS): Add test-freadptr2.
23376
23377 2008-03-09  Bruno Haible  <bruno@clisp.org>
23378
23379         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
23380         Report and solution by Simon Josefsson.
23381
23382 2008-03-06  Bruno Haible  <bruno@clisp.org>
23383
23384         Make fflush after ungetc work on BSD platforms.
23385         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
23386         * tests/test-fflush2.c: New file.
23387         * tests/test-fflush2.sh: New file.
23388         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
23389         tests/test-fflush2.c.
23390         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
23391         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
23392
23393 2008-03-06  Eric Blake  <ebb9@byu.net>
23394
23395         Likewise for ftello.
23396         * modules/ftello (Dependencies): Add extensions.
23397         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
23398
23399 2008-03-06  Bruno Haible  <bruno@clisp.org>
23400
23401         * modules/fseeko (Dependencies): Add extensions.
23402         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
23403         Needed on glibc systems.
23404
23405 2008-03-06  Bruno Haible  <bruno@clisp.org>
23406
23407         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
23408         email address.
23409         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23410
23411 2008-03-06  Bruno Haible  <bruno@clisp.org>
23412
23413         * users.txt: Add libgnupdf.
23414
23415 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23416
23417         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
23418         (Header File Substitutes, Function Substitutes,
23419         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
23420         (Build robot for gnulib): Fix typo.
23421
23422 2008-03-06  Bruno Haible  <bruno@clisp.org>
23423
23424         * doc/gnulib-tool.texi (VCS Issues): Small updates.
23425         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23426
23427 2008-03-06  Bruno Haible  <bruno@clisp.org>
23428
23429         * doc/func.texi: New file, extracted from doc/gnulib.texi.
23430         * doc/gnulib.texi: Include it.
23431
23432 2008-03-06  Simon Josefsson  <simon@josefsson.org>
23433
23434         * modules/func (License): Change license to unlimited; there was
23435         no LGPL parts in the module anyway.
23436
23437 2008-03-06  Simon Josefsson  <simon@josefsson.org>
23438
23439         * modules/__func__: Renamed to modules/func.
23440         * modules/__func__-tests: Renamed to modules/func-tests.
23441         * tests/test-__func__.c: Renamed to tests/test-func.c.
23442         * m4/__func__.m4: Renamed to m4/func.m4.
23443         * doc/gnulib.texi (__func__): Section renamed to func.
23444         Suggested by Eric Blake <ebb9@byu.net>.
23445
23446 2008-03-06  Simon Josefsson  <simon@josefsson.org>
23447
23448         * doc/gnulib.texi (__func__): Use C99 terminology when talking
23449         about __func__.  Make example self-contained.  Suggested by Eric
23450         Blake <ebb9@byu.net>.
23451
23452         * tests/test-__func__.c (main): Avoid extraneous () around __func.
23453         Suggested by Eric Blake <ebb9@byu.net>.
23454
23455 2008-03-06  Simon Josefsson  <simon@josefsson.org>
23456
23457         * modules/__func__: New file.
23458         * modules/__func__-tests: New file.
23459         * tests/test-__func__.c: New file.
23460         * m4/__func__.m4: New file.
23461         * doc/gnulib.texi (__func__): Document __func__ module.
23462
23463 2008-03-05  Simon Josefsson  <simon@josefsson.org>
23464
23465         * modules/byteswap (License): Re-license as LGPLv2+.
23466
23467 2008-03-05  Simon Josefsson  <simon@josefsson.org>
23468
23469         * doc/Makefile: Add pdf target.
23470
23471 2008-03-05  Simon Josefsson  <simon@josefsson.org>
23472
23473         * modules/inline (License): Use 'unlimited', since there are only
23474         *.m4 files in this module.
23475
23476 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
23477             Bruno Haible  <bruno@clisp.org>
23478
23479         Add support for HP C 7.1 on OpenVMS 8.3.
23480         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
23481
23482 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
23483
23484         Update VMS specifics.
23485         * lib/getopt.c [VMS]: Remove include of unixlib.h.
23486
23487 2008-03-02  Jim Meyering  <meyering@redhat.com>
23488
23489         Remove the last dependency on the "free" module.
23490         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
23491         Reported by Bob Proulx.
23492
23493         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
23494
23495         Remove useless "if" tests before free.  Deprecate "free" module.
23496         * doc/posix-functions/free.texi: Mention that this
23497         module is no longer useful.
23498         * modules/free (Notice): Say this module is obsolete.
23499         * modules/readutmp (Depends-on): Remove free.
23500         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
23501         * lib/putenv.c (putenv): Likewise.
23502         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
23503         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
23504         * tests/test-c-strcasestr.c (main): Likewise.
23505         * tests/test-c-strstr.c (main): Likewise.
23506         * tests/test-mbscasestr1.c (main): Likewise.
23507         * tests/test-mbscasestr2.c (main): Likewise.
23508         * tests/test-mbsstr1.c (main): Likewise.
23509         * tests/test-mbsstr2.c (main): Likewise.
23510         * tests/test-memmem.c (main): Likewise.
23511         * tests/test-strcasestr.c (main): Likewise.
23512         * tests/test-striconv.c (main): Likewise.
23513         * tests/test-striconveh.c (main): Likewise.
23514         * tests/test-striconveha.c (main): Likewise.
23515         * tests/test-strstr.c (main): Likewise.
23516
23517         * build-aux/git-version-gen: Adjust a comment and the Usage string.
23518
23519         bootstrap: sync from coreutils again
23520         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
23521
23522 2008-03-01  Jim Meyering  <meyering@redhat.com>
23523
23524         bootstrap: sync from coreutils
23525         * build-aux/bootstrap (update_po_files): Copy a .po file into place
23526         also when the target doesn't exist.
23527
23528 2008-03-01  Eric Blake  <ebb9@byu.net>
23529
23530         Fix bugs in last patch.
23531         * lib/memchr2.c (memchr2): Fix typo.
23532         * tests/test-memchr2.c: Test previous bug, and don't use GNU
23533         extension.
23534         Reported by Bruce Korb.
23535
23536         New module 'memchr2'.
23537         * modules/memchr2: New file.
23538         * modules/memchr2-tests: Likewise.
23539         * lib/memchr2.h: Likewise.
23540         * lib/memchr2.c: Likewise, based on memchr.c.
23541         * tests/test-memchr2.c: New test.
23542         * MODULES.html.sh (String handling): Add memchr2.
23543
23544 2008-02-29  Bruno Haible  <bruno@clisp.org>
23545
23546         * modules/freadseek-tests: New file.
23547         * tests/test-freadseek.sh: New file.
23548         * tests/test-freadseek.c: New file.
23549
23550         New module 'freadseek'.
23551         * modules/freadseek: New file.
23552         * lib/freadseek.h: New file.
23553         * lib/freadseek.c: New file.
23554         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
23555
23556 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
23557
23558         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
23559         wydawca.
23560
23561         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
23562         program_invocation_name and program_invocation_short_name are
23563         present.
23564
23565 2008-02-28  Bruno Haible  <bruno@clisp.org>
23566
23567         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
23568         * tests/test-freadptr.sh: Also test non-seekable stdin.
23569
23570 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
23571
23572         * build-aux/bootstrap (source_base, m4_base)
23573         (doc_base, tests_base): New variables.
23574         (gnulib_tool_options): Do not hardcode base directories, use
23575         the above variables instead.
23576
23577 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
23578
23579         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
23580
23581 2008-02-28  Bruno Haible  <bruno@clisp.org>
23582
23583         * modules/freadptr-tests: New file.
23584         * tests/test-freadptr.sh: New file.
23585         * tests/test-freadptr.c: New file.
23586
23587         New module 'freadptr'.
23588         * modules/freadptr: New file.
23589         * lib/freadptr.h: New file.
23590         * lib/freadptr.c: New file.
23591         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
23592
23593 2008-02-26  Karl Berry  <karl@freefriends.org>
23594
23595         Sync from Libtool:
23596         * libltdl/argz.c (argz_add, argz_count): New functions.
23597         * libltdl/argz.in.h: Declare them.
23598         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
23599
23600 2008-02-22  Bruno Haible  <bruno@clisp.org>
23601
23602         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
23603         is a pointer type.  Needed for HP-UX 10.
23604         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
23605         * doc/posix-functions/gmtime_r.texi: Likewise.
23606         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
23607
23608 2008-02-24  Bruno Haible  <bruno@clisp.org>
23609
23610         * modules/environ-tests: New file.
23611         * tests/test-environ.c: New file.
23612
23613         New module 'environ'.
23614         * modules/environ: New file.
23615         * lib/unistd.in.h (environ): New declaration.
23616         * m4/environ.m4: New file.
23617         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
23618         after use.
23619         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
23620         HAVE_DECL_ENVIRON.
23621         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
23622         HAVE_DECL_ENVIRON.
23623         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
23624         wrong claim that 'environ' is missing on some systems.
23625         * modules/execute (Depends-on): Add environ.
23626         * lib/execute.c (environ): Remove fallback declaration.
23627         * modules/pipe (Depends-on): Add environ.
23628         * lib/pipe.c (environ): Remove fallback declaration.
23629         * modules/setenv (Depends-on): Add environ.
23630         * lib/setenv.c (environ): Remove fallback declaration.
23631         * modules/unsetenv (Depends-on): Add environ.
23632         * lib/unsetenv.c (environ): Remove fallback declaration.
23633         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
23634         m4/environ.m4.
23635         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
23636         (gl_PREREQ_UNSETENV): Likewise.
23637
23638 2008-02-24  Bruno Haible  <bruno@clisp.org>
23639
23640         * doc/posix-functions/environ.texi: Document the MacOS X problem.
23641
23642 2008-02-20  Bob Proulx  <bob@proulx.com>
23643
23644         Enable use of older two part flavor 'git describe'.
23645         * build-aux/git-version-gen: If using the older two part flavor of
23646         git version then recreate the third part now present in the
23647         newer three part flavor of git describe.
23648
23649 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
23650
23651         * lib/fts.c (fts_build): Typo correction to comment.
23652
23653 2008-02-17  Bruno Haible  <bruno@clisp.org>
23654
23655         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
23656         generating no-op conflicts.
23657
23658 2008-02-17  Bruno Haible  <bruno@clisp.org>
23659
23660         Speed up by 10%.
23661         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
23662         result_entries, rather than an index-based loop.
23663
23664 2008-02-17  Bruno Haible  <bruno@clisp.org>
23665
23666         Speed up by 25%.
23667         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
23668         'hashcode_cached'.
23669         (entry_create): New function.
23670         (entry_hashcode): Use the cached hashcode if possible.
23671         (read_changelog_file, try_split_merged_entry): Use entry_create.
23672
23673 2008-02-17  Bruno Haible  <bruno@clisp.org>
23674
23675         Speed up from O(n^2) to O(n) for long ChangeLog files.
23676         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
23677         (read_changelog_file): Change implementation of entries_reversed list
23678         to rbtreehash.
23679         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
23680
23681 2008-02-17  Bruno Haible  <bruno@clisp.org>
23682
23683         New option --split-merged-entry.
23684         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
23685         (find_paragraph_end, try_split_merged_entry): New functions.
23686         (long_options): Add option --split-merged-entry.
23687         (usage): Document option --split-merged-entry.
23688         (main): Implement option --split-merged-entry.
23689         Reported by Eric Blake.
23690
23691 2008-02-17  Bruno Haible  <bruno@clisp.org>
23692
23693         * lib/git-merge-changelog.c: Include c-strstr.h.
23694         (main): Support the "git pull --rebase" situation.
23695         * modules/git-merge-changelog (Depends-on): Add c-strstr.
23696         Reported by Eric Blake.
23697
23698 2008-02-16  Eric Blake  <ebb9@byu.net>
23699
23700         Avoid doubling \ in common case of "c-maybe" quoting style.
23701         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
23702         eliding outer quotes.
23703         * lib/quotearg.h: Document this.
23704         * tests/test-quotearg.c (result_strings, inputs, results_g)
23705         (flag_results, locale_results): Test it by adding a new string to
23706         each test group.
23707         (compare_strings): Test new string.
23708
23709 2008-02-13  Eric Blake  <ebb9@byu.net>
23710
23711         Avoid trigraph quoting in default output.
23712         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
23713         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
23714         unless explicitly requested.
23715         * tests/test-quotearg.c (flag_results, main): Add additional tests.
23716
23717 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
23718
23719         Don't rely on signed integer overflowing to negative value.
23720         * lib/getugroups.c (getugroups): Include <limits.h>.
23721         Instead, compare against INT_MAX, and increment only if the test passes.
23722
23723 2008-02-13  Jim Meyering  <meyering@redhat.com>
23724         and Eric Blake  <ebb9@byu.net>
23725
23726         Avoid shadowing warning and compile errors on Linux.
23727         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
23728         forwarding macros on Linux.
23729         (dcgettext): Define a stub, for Linux.
23730         (results_g, main): Avoid warnings.
23731
23732 2008-02-12  Eric Blake  <ebb9@byu.net>
23733
23734         Silence warning in last patch.
23735         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
23736
23737         Quotearg part 4: add tests, fix c-maybe colon quoting.
23738         * lib/quotearg.h: Improve documentation.
23739         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
23740         escapes when adding outer quotes.  When quoting trigraphs, use
23741         valid C notation.  When quoting NUL, omit extra characters if next
23742         character is not digit.  Alter prototype.
23743         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
23744         callers.
23745         * modules/quotearg-tests: New module.
23746         * tests/test-quotearg.c: New test.
23747
23748 2008-02-07  Eric Blake  <ebb9@byu.net>
23749
23750         Quotearg part 3: add flag to control outer quote elision.
23751         * lib/quotearg.h (c_maybe_quoting_style): New style.
23752         (enum quoting_flags): Better documentation of flags.
23753         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
23754         c-maybe style.
23755         (quotearg_buffer_restyled): Handle new flag to elide outer
23756         quotes.
23757
23758         Quotearg part 2: add flag that can control NUL elision.
23759         * lib/quotearg.h (set_quoting_flags): New prototype.
23760         * lib/quotearg.c (struct quoting_options): Add flag field.
23761         (set_quoting_flags): New function.
23762         (quotearg_buffer_restyled): Add flags parameter.
23763         (quotearg_alloc_mem): Set the flag if length cannot be returned.
23764         (quotearg_n_options): Set the flag, since length cannot be
23765         returned.
23766         (quoting_options_from_style): Default flags correctly.
23767
23768         Quotearg part 1: more wrappers, restore quotearg_char state.
23769         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
23770         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
23771         (quotearg_colon_mem): New wrappers.
23772         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
23773         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
23774         functions.
23775         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
23776         (quotearg_colon_mem): New functions.
23777
23778 2008-02-11  Bruno Haible  <bruno@clisp.org>
23779
23780         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
23781         library in the current directory: it does not work with parallel make.
23782         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23783
23784 2008-02-11  Bruno Haible  <bruno@clisp.org>
23785
23786         * .gitattributes: New file.
23787
23788 2008-02-11  Jim Meyering  <meyering@redhat.com>
23789
23790         useless-if-before-free: Fix reversed exit values.
23791         * build-aux/useless-if-before-free: Use correct values
23792         for EXIT_MATCH and EXIT_NO_MATCH.
23793
23794         * build-aux/useless-if-before-free: Close stdout carefully.
23795
23796 2008-02-10  Bruno Haible  <bruno@clisp.org>
23797
23798         New module 'git-merge-changelog'.
23799         * modules/git-merge-changelog: New file.
23800         * lib/git-merge-changelog.c: New file.
23801
23802 2008-02-10  Jim Meyering  <meyering@redhat.com>
23803
23804         useless-if-before-free: New option: --list (-l).
23805
23806         useless-if-before-free: Don't exit immediately upon open failure.
23807         * build-aux/useless-if-before-free: Exit 2 for errors.
23808         Upon failure to open a file, don't exit immediately.
23809         Rather, just warn and continue with any remaining files.
23810
23811 2008-02-10  Bruno Haible  <bruno@clisp.org>
23812
23813         New abstract list operation 'node_set_value'.
23814         * lib/gl_list.h (gl_list_node_set_value): New function.
23815         (struct gl_list_implementation): New field node_set_value.
23816         * lib/gl_list.c (gl_list_node_set_value): New function.
23817         * lib/gl_array_list.c (gl_array_node_set_value): New function.
23818         (gl_array_list_implementation): Update.
23819         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
23820         (gl_carray_list_implementation): Update.
23821         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
23822         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
23823         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
23824         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
23825         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
23826         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
23827         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
23828         Update.
23829         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
23830         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
23831         (gl_sublist_list_implementation): Update.
23832
23833 2008-02-10  Bruno Haible  <bruno@clisp.org>
23834
23835         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
23836         Needed when ELEMENT is #defined to 'some_type *'.
23837
23838 2008-02-10  Jim Meyering  <meyering@redhat.com>
23839
23840         New script and module: useless-if-before-free
23841         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
23842         * build-aux/useless-if-before-free: New file.
23843         * modules/useless-if-before-free: New file.
23844
23845         * build-aux/gitlog-to-changelog: Use committer date, not author date.
23846
23847         xstrtol_error: Fix typo.
23848         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
23849         s/exit_failure/exit_status/.
23850
23851 2008-02-09  Jim Meyering  <meyering@redhat.com>
23852
23853         New script and module: gitlog-to-changelog
23854         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
23855         * modules/gitlog-to-changelog: New file.
23856         * build-aux/gitlog-to-changelog: New file.
23857
23858 2008-02-08  Jim Meyering  <meyering@redhat.com>
23859
23860         Avoid two "parameter unused" warnings.
23861         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
23862         Mark "st" as used.
23863
23864         Use "git COMMAND", not "git-COMMAND".
23865         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
23866         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
23867         * build-aux/git-version-gen: Use "git status", not "git-status".
23868
23869 2008-02-07  Bruno Haible  <bruno@clisp.org>
23870
23871         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
23872         Avoids a crash on Windows Vista.
23873         Reported by Adam Strzelecki <ono@java.pl> via
23874         Simon Josefsson <simon@josefsson.org>.
23875
23876 2008-02-06  Bruno Haible  <bruno@clisp.org>
23877
23878         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
23879         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
23880         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
23881         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
23882         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
23883         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23884         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
23885         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
23886         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23887         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23888         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23889         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23890         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23891         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23892         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23893         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
23894         left-adjust flag.
23895         * tests/test-snprintf-posix.h (test_function): Likewise.
23896         * tests/test-sprintf-posix.h (test_function): Likewise.
23897         * tests/test-vasprintf-posix.c (test_function): Likewise.
23898         * doc/posix-functions/fprintf.texi: Update.
23899         * doc/posix-functions/printf.texi: Update.
23900         * doc/posix-functions/snprintf.texi: Update.
23901         * doc/posix-functions/sprintf.texi: Update.
23902         * doc/posix-functions/vfprintf.texi: Update.
23903         * doc/posix-functions/vprintf.texi: Update.
23904         * doc/posix-functions/vsnprintf.texi: Update.
23905         * doc/posix-functions/vsprintf.texi: Update.
23906         Reported by Peter Fales <psfales@alcatel-lucent.com>.
23907
23908 2008-02-06  Bruno Haible  <bruno@clisp.org>
23909
23910         Fix bug introduced on 2008-01-26.
23911         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
23912
23913 2008-02-06  Bruno Haible  <bruno@clisp.org>
23914
23915         Fix bug introduced on 2007-06-10.
23916         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
23917         !NEED_PRINTF_FLAG_ZERO.
23918
23919 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
23920
23921         getloadavg: use libperfstat on AIX5
23922         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
23923
23924 2008-02-03  Bruno Haible  <bruno@clisp.org>
23925
23926         * lib/diffseq.h: Add comments about required #includes.
23927         Reported by Michael Biggs <gnulib@doubleplum.net>.
23928
23929 2008-02-01  Bruno Haible  <bruno@clisp.org>
23930
23931         * users.txt: Add gnuit.
23932
23933 2008-01-31  Bruno Haible  <bruno@clisp.org>
23934
23935         * lib/md4.c (set_uint32): Mark as inline.
23936         * lib/md5.c (set_uint32): Likewise.
23937         * lib/sha1.c (set_uint32): Likewise.
23938         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
23939         * m4/md5.m4 (gl_MD5): Likewise.
23940         * m4/sha1.m4 (gl_SHA1): Likewise.
23941
23942 2008-01-31  Jim Meyering  <meyering@redhat.com>
23943
23944         Use "sizeof VAR", rather than a literal "4".
23945         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
23946         * lib/md4.c (md4_read_ctx): Likewise.
23947         * lib/sha1.c (sha1_read_ctx): Likewise.
23948
23949 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23950
23951         * tests/test-sha1.c: New file, based on test-md5.c.
23952
23953         * modules/crypto/sha1-tests: New file.
23954
23955 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23956
23957         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
23958
23959 2008-01-31  Jim Meyering  <meyering@redhat.com>
23960
23961         Prefer "sizeof v" over the equivalent "4".
23962         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
23963         * lib/md5.c (set_uint32): Likewise.
23964         * lib/sha1.c (set_uint32): Likewise.
23965
23966 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23967
23968         * lib/sha1.c (set_uint32): Mark function as static.
23969
23970 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23971
23972         md2: clarify comments to say that alignment is not required.
23973         * lib/md2.h: Remove warning about alignment in comment.
23974         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
23975         never been required.
23976
23977 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23978
23979         md4: adapt alignment constraint fix from sha1.
23980         * lib/md4.c (set_uint32): New function, from sha1.c
23981         (md4_read_ctx): Use it.
23982         (md4_finish_ctx): Doc fix.
23983         * lib/md4.h: Doc fix.
23984
23985 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23986
23987         md5: adapt alignment constraint fix from sha1.
23988         * lib/md5.c (set_uint32): New function, from sha1.c
23989         (md5_read_ctx): Use it.
23990         (md5_finish_ctx): Doc fix.
23991         * lib/md5.h: Doc fix.
23992
23993 2008-01-30  Peter Palfrader  <weasel@debian.org>
23994
23995         sha1: remove the result buffer alignment constraint
23996         * lib/sha1.c (set_uint32): New function.
23997         (sha1_read_ctx): Rewrite to remove the result buffer alignment
23998         constraint.
23999         (sha1_finish_ctx): Remove comment warning about alignment constraint.
24000         * lib/sha1.h: Likewise.
24001
24002 2008-01-30  Andreas Schwab  <schwab@suse.de>
24003             Bruno Haible  <bruno@clisp.org>
24004
24005         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
24006         correct definition of LDBL_MIN_EXP.
24007
24008 2008-01-30  Karl Berry  <karl@gnu.org>
24009
24010         * config/srclist-update: try to preserve x bit on updates.
24011         * config/srclistvars.sh: update for karl.
24012
24013 2008-01-29  Jim Meyering  <meyering@redhat.com>
24014
24015         vasnprintf.c: Avoid warning about unused label
24016         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
24017         "overflow" label definition and associated code with the
24018         same cpp condition that guards the sole use of that label.
24019
24020 2008-01-26  Bruno Haible  <bruno@clisp.org>
24021
24022         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
24023         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
24024         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
24025         * lib/isnanl-nolibm.h (isnanl): Likewise.
24026         Reported by Paul Eggert <eggert@cs.ucla.edu>.
24027
24028 2008-01-26  Bruno Haible  <bruno@clisp.org>
24029
24030         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
24031         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
24032
24033 2008-01-26  Bruno Haible  <bruno@clisp.org>
24034
24035         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
24036         GCC >= 4.0 built-in.
24037         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
24038
24039 2008-01-26  Bruno Haible  <bruno@clisp.org>
24040
24041         Rename isnan, applicable to 'double' only, to isnand.
24042         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
24043         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
24044         (configure.ac): Update.
24045         (Include): Replace "isnan.h" with "isnand.h".
24046         * m4/isnand.m4: Renamed from m4/isnan.m4.
24047         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
24048         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
24049         instead of isnan.c.
24050         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
24051         instead of HAVE_ISNAN_IN_LIBC.
24052         (isnand): Renamed from isnan.
24053         * lib/isnand.c: New file.
24054         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
24055         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
24056         (Makefile.am): Update.
24057         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
24058         Include isnand.h instead of isnan.h.
24059         (main): Test isnand instead of isnan.
24060         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
24061         isnan-nolibm.
24062         * modules/frexp (Depends-on): Likewise.
24063         * modules/frexp-tests (Depends-on): Likewise.
24064         * modules/frexp-nolibm (Depends-on): Likewise.
24065         * modules/frexp-nolibm-tests (Depends-on): Likewise.
24066         * modules/isfinite (Depends-on): Likewise.
24067         * modules/round-tests (Depends-on): Likewise.
24068         * modules/signbit (Depends-on): Likewise.
24069         * modules/signbit-tests (Depends-on): Likewise.
24070         * modules/snprintf-posix (Depends-on): Likewise.
24071         * modules/sprintf-posix (Depends-on): Likewise.
24072         * modules/trunc-tests (Depends-on): Likewise.
24073         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24074         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24075         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24076         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24077         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24078         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24079         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24080         * modules/vasnprintf-posix (Depends-on): Likewise.
24081         * modules/vasprintf-posix (Depends-on): Likewise.
24082         * modules/vfprintf-posix (Depends-on): Likewise.
24083         * modules/vsnprintf-posix (Depends-on): Likewise.
24084         * modules/vsprintf-posix (Depends-on): Likewise.
24085         * lib/frexp.c: Include isnand.h instead of isnan.h.
24086         (ISNAN): Set to isnand instead of isnan.
24087         * lib/isfinite.c: Include isnand.h instead of isnan.h.
24088         (gl_isfinited): Use isnand instead of isnan.
24089         * lib/signbitd.c: Include isnand.h instead of isnan.h.
24090         (gl_signbitd): Use isnand instead of isnan.
24091         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
24092         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
24093         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
24094         (main): Use isnand instead of isnan.
24095         * tests/test-round1.c: Include isnand.h.
24096         (main): Use isnand instead of isnan.
24097         * tests/test-round2.c: Include isnand.h instead of isnan.h.
24098         (ISNAN): Set to isnand instead of isnan.
24099         * tests/test-trunc1.c: Include isnand.h.
24100         (main): Use isnand instead of isnan.
24101         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
24102         (equal): Use isnand instead of isnan.
24103         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
24104         isnand-nolibm.
24105         * NEWS: Mention the change.
24106
24107 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
24108             Bruno Haible  <bruno@clisp.org>
24109
24110         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
24111         the GCC builtins for signbits are present and set
24112         REPLACE_SIGNBIT_USING_GCC if so.
24113         * lib/math.in.h (signbit): Define using GCC builtins if
24114         REPLACE_SIGNBIT_USING_GCC is set.
24115         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
24116         REPLACE_SIGNBIT_USING_GCC.
24117         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
24118
24119 2008-01-25  Jim Meyering  <meyering@redhat.com>
24120
24121         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
24122         * lib/poll.c: Include <config.h>, not "config.h".
24123         * tests/test-getaddrinfo.c: Likewise.
24124
24125 2008-01-25  Simon Josefsson  <simon@josefsson.org>
24126
24127         * modules/sockets-tests: New file.
24128
24129 2008-01-24  Simon Josefsson  <simon@josefsson.org>
24130
24131         * modules/sockets: New module, can be used to call WSA_Startup and
24132         WSA_Cleanup when needed.
24133
24134         * lib/sockets.h, lib/sockets.c: New files.
24135
24136         * m4/sockets.m4: New file.
24137
24138         * tests/test-sockets.c: New file.
24139
24140 2008-01-19  Bruno Haible  <bruno@clisp.org>
24141
24142         * doc/posix-headers: Renamed from doc/headers.
24143         * doc/posix-functions: Renamed from doc/functions.
24144         * doc/gnulib.texi: Update.
24145
24146 2008-01-19  Bruno Haible  <bruno@clisp.org>
24147
24148         * doc/glibc-functions/strcasestr.texi: Include contents of
24149         doc/functions/strcasestr.texi, fixing the list of platforms.
24150         * doc/functions/strcasestr.texi: Remove file.
24151
24152 2008-01-19  Bruno Haible  <bruno@clisp.org>
24153
24154         * doc/glibc-functions/memmem.texi: Include contents of
24155         doc/functions/memmem.texi.
24156         * doc/functions/memmem.texi: Remove file.
24157
24158 2008-01-18  Bruno Haible  <bruno@clisp.org>
24159
24160         * doc/glibc-functions/*.texi: New files.
24161         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
24162         to use the new files.
24163
24164 2008-01-17  Bruno Haible  <bruno@clisp.org>
24165
24166         * tests/test-gethostname.c (main): Fix printf statement.
24167
24168 2008-01-17  Simon Josefsson  <simon@josefsson.org>
24169
24170         * modules/gethostname-tests: New file.
24171
24172         * tests/test-gethostname.c: New file.
24173
24174 2008-01-17  Simon Josefsson  <simon@josefsson.org>
24175
24176         * lib/gethostname.c: Include string.h unconditionally, strncpy is
24177         used by the UNAME case.  Reported by Bruno Haible
24178         <bruno@clisp.org>.
24179
24180 2008-01-17  Eric Blake  <ebb9@byu.net>
24181
24182         Convert c-strcasestr to be more efficient.
24183         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
24184         (Depends-on): Add c-strcase, remove malloca, strnlen.
24185         * tests/test-c-strcasestr.c (main): Enhance test.
24186         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
24187
24188 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
24189
24190         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
24191         Use it in creating po/Makevars.
24192
24193 2008-01-15  Simon Josefsson  <simon@josefsson.org>
24194
24195         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
24196         Applications that requires it should initialize libgcrypt
24197         manually.
24198
24199 2008-01-16  Simon Josefsson  <simon@josefsson.org>
24200
24201         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
24202
24203 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
24204
24205         Fix problem with getdate on mingw32 reported by Simon Josefsson
24206         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
24207         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
24208         tzname", when deciding whether to declare tzname.
24209         * lib/strftime.c (tzname): Likewise.
24210
24211 2008-01-15  Bruno Haible  <bruno@clisp.org>
24212
24213         Work around a MacOS X 10.5 bug in frexpl().
24214         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
24215         * doc/functions/frexpl.texi: Document the bug.
24216         Reported by Elias Pipping <pipping@gentoo.org>.
24217
24218 2008-01-14  Eric Blake  <ebb9@byu.net>
24219
24220         Touch up previous patch.
24221         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
24222         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
24223
24224         Convert strcasestr module to use Two-Way algorithm.
24225         * modules/strcasestr-simple: New module, based on the old
24226         strcasestr, but with Two-Way rather than KMP.
24227         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
24228         * lib/string.in.h (rpl_strcasestr): Declare.
24229         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
24230         performance.
24231         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
24232         * modules/string (Makefile.am): Support strcasestr.
24233         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
24234         * modules/strcasestr-tests (Depends-on): Check for alarm.
24235         * tests/test-strcasestr.c: Augment test.
24236         * lib/str-two-way.h: Clean up stray macro.
24237         * NEWS: Document new module.
24238         * MODULES.html.sh (string handling): Likewise.
24239         * doc/functions/strcasestr.texi: New file.
24240         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
24241         here, since it is not a POSIX function.
24242
24243 2008-01-14  Colin Watson  <cjwatson@debian.org>
24244             Bruno Haible  <bruno@clisp.org>
24245
24246         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
24247         works fine; if not, set REPLACE_STRSIGNAL.
24248         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
24249         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24250         REPLACE_STRSIGNAL.
24251         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
24252         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
24253         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
24254
24255 2008-01-14  Bruno Haible  <bruno@clisp.org>
24256
24257         * modules/strsignal (Include): Change to <string.h>.
24258
24259 2008-01-14  Colin Watson  <cjwatson@debian.org>
24260
24261         * modules/argp (Notice): Add a notice recommending to change
24262         XGETTEXT_OPTIONS.
24263         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
24264
24265 2008-01-13  Colin Watson  <cjwatson@debian.org>
24266
24267         * modules/strsignal-tests: New file.
24268         * tests/test-strsignal.c: New file.
24269
24270         * lib/strsignal.c: New file, from glibc with modifications.
24271         * lib/siglist.h: New file, from glibc with modifications.
24272         * lib/string.in.h (strsignal): New declaration.
24273         * m4/strsignal.m4: New file.
24274         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24275         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
24276         * modules/strsignal: New file.
24277         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
24278         HAVE_DECL_STRSIGNAL.
24279
24280 2008-01-13  Bruno Haible  <bruno@clisp.org>
24281
24282         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
24283         locale encoding is not ASCII. Needed for OpenBSD 4.0.
24284         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
24285         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24286
24287 2008-01-13  Bruno Haible  <bruno@clisp.org>
24288
24289         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
24290         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
24291         * lib/argp.h (__attribute__): Likewise.
24292         * lib/c-stack.c (__attribute__): Likewise.
24293         * lib/error.h (__attribute__): Likewise.
24294         * lib/fts.c (__attribute__): Likewise.
24295         * lib/openat.h (__attribute__): Likewise.
24296         * lib/stdio.in.h (__attribute__): Likewise.
24297         * lib/string.in.h (__attribute__): Likewise.
24298         * lib/utimens.c (__attribute__): Likewise.
24299         * lib/vasnprintf.h (__attribute__): Likewise.
24300         * lib/xalloc.h (__attribute__): Likewise.
24301         * lib/xprintf.h (__attribute__): Likewise.
24302         * lib/xstrtol.h (__attribute__): Likewise.
24303         * lib/xvasprintf.h (__attribute__): Likewise.
24304
24305 2008-01-12  Bruno Haible  <bruno@clisp.org>
24306
24307         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
24308         * doc/glibc-headers/a.out.texi: New file.
24309         * doc/glibc-headers/aliases.texi: New file.
24310         * doc/glibc-headers/alloca.texi: New file.
24311         * doc/glibc-headers/ar.texi: New file.
24312         * doc/glibc-headers/argp.texi: New file.
24313         * doc/glibc-headers/argz.texi: New file.
24314         * doc/glibc-headers/byteswap.texi: New file.
24315         * doc/glibc-headers/crypt.texi: New file.
24316         * doc/glibc-headers/endian.texi: New file.
24317         * doc/glibc-headers/envz.texi: New file.
24318         * doc/glibc-headers/err.texi: New file.
24319         * doc/glibc-headers/error.texi: New file.
24320         * doc/glibc-headers/execinfo.texi: New file.
24321         * doc/glibc-headers/fpu_control.texi: New file.
24322         * doc/glibc-headers/fstab.texi: New file.
24323         * doc/glibc-headers/fts.texi: New file.
24324         * doc/glibc-headers/getopt.texi: New file.
24325         * doc/glibc-headers/ieee754.texi: New file.
24326         * doc/glibc-headers/ifaddrs.texi: New file.
24327         * doc/glibc-headers/libintl.texi: New file.
24328         * doc/glibc-headers/mcheck.texi: New file.
24329         * doc/glibc-headers/mntent.texi: New file.
24330         * doc/glibc-headers/obstack.texi: New file.
24331         * doc/glibc-headers/paths.texi: New file.
24332         * doc/glibc-headers/printf.texi: New file.
24333         * doc/glibc-headers/pty.texi: New file.
24334         * doc/glibc-headers/resolv.texi: New file.
24335         * doc/glibc-headers/shadow.texi: New file.
24336         * doc/glibc-headers/sysexits.texi: New file.
24337         * doc/glibc-headers/ttyent.texi: New file.
24338
24339 2008-01-12  Jim Meyering  <meyering@redhat.com>
24340
24341         announce-gen: emit Gnulib's git-based version string.
24342         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
24343         New option --gnulib-version=V, where V is expected to be
24344         the output of running git describe in the gnulib directory.
24345         (get_tool_versions): Request feedback on xdelta.  I suspect it's
24346         not useful, and plan to stop publishing an xdelta file with each
24347         coreutils release.
24348
24349         * build-aux/announce-gen: Also check for lzma-compressed files.
24350
24351 2008-01-11  Bruno Haible  <bruno@clisp.org>
24352
24353         * tests/test-memmem.c (main): Increase maximum allowed time.
24354         * tests/test-strstr.c (main): Likewise.
24355
24356 2008-01-11  Bruno Haible  <bruno@clisp.org>
24357
24358         * doc/functions/memmem.texi: Add more precisions about platforms.
24359         * doc/functions/strstr.texi: Likewise.
24360
24361 2008-01-10  Eric Blake  <ebb9@byu.net>
24362
24363         * m4/strstr.m4: Delete cruft from copy-n-paste.
24364         Reported by Bruno Haible.
24365
24366 2008-01-10  Bruno Haible  <bruno@clisp.org>
24367
24368         Make c-strstr rely on strstr.
24369         * lib/c-strstr.c: Don't include str-kmp.h.
24370         (c_strstr): Define in terms of strstr.
24371         * modules/c-strstr (Files): Remove lib/str-kmp.h.
24372         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
24373
24374 2008-01-10  Bruno Haible  <bruno@clisp.org>
24375
24376         * doc/gnulib.texi (String Functions in C Locale): New section.
24377         * doc/c-ctype.texi: New file.
24378         * doc/c-strcase.texi: New file.
24379         * doc/c-strcaseeq.texi: New file.
24380         * doc/c-strcasestr.texi: New file.
24381         * doc/c-strstr.texi: New file.
24382         * doc/c-strtod.texi: New file.
24383         * doc/c-strtold.texi: New file.
24384
24385 2008-01-10  Eric Blake  <ebb9@byu.net>
24386
24387         * lib/relocatable.h: Fix a comment.
24388
24389 2008-01-10  Eric Blake  <ebb9@byu.net>
24390
24391         Share two-way algorithm.
24392         * lib/str-two-way.h: New file, merged from...
24393         * lib/memmem.c: ...here...
24394         * lib/strstr.c: ...and here.
24395         * modules/memmem (Files): Use it.
24396         * modules/strstr (Files): Likewise.
24397
24398         Avoid quadratic strstr implementations.
24399         * lib/strstr.c: New file.
24400         * m4/strstr.m4: Likewise.
24401         * modules/strstr: Likewise.
24402         * modules/strstr-tests: Likewise.
24403         * tests/test-strstr.c: Likewise.
24404         * lib/string.in.h (rpl_strstr): Declare.
24405         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
24406         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
24407         * modules/string (Makefile.am): Likewise.
24408         * MODULES.html.sh (string handling): Mention new module.
24409         * doc/functions/strstr.texi (strstr): Document the bug.
24410
24411 2008-01-10  Bruno Haible  <bruno@clisp.org>
24412
24413         * lib/relocatable.h (relocate): State whether result is freshly
24414         allocated or not.
24415         * lib/relocatable.c (relocate): Return a freshly allocated string
24416         instead of a pointer to a privately held string.
24417         Reported by Sylvain Beucler <beuc@gnu.org>.
24418
24419 2008-01-10  Colin Watson  <cjwatson@debian.org>
24420
24421         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
24422         s/S_ISNLK/S_ISLNK/.
24423
24424 2008-01-09  Bruno Haible  <bruno@clisp.org>
24425
24426         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
24427         and other files.
24428         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
24429         if it's only a guess.
24430         * modules/memmem: Simplify by depending on memmem-simple.
24431
24432 2008-01-09  Bruno Haible  <bruno@clisp.org>
24433
24434         Work around OpenBSD 4.0 tdelete() bug.
24435         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
24436         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
24437         macros and don't redefine the enum values.
24438         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
24439         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
24440         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
24441
24442 2008-01-09  Bruno Haible  <bruno@clisp.org>
24443
24444         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
24445         (main): Don't perform the tests if setlocale did not install a UTF-8
24446         locale. Needed on OpenBSD 4.0.
24447         * modules/wcwidth-tests (Depends-on): Add localcharset.
24448
24449 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24450
24451         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
24452         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
24453         * NEWS: announce this.
24454         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
24455
24456 2008-01-09  Simon Josefsson  <simon@josefsson.org>
24457         and Eric Blake  <ebb9@byu.net>
24458
24459         Add memmem-simple module.
24460         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
24461         (gl_FUNC_MEMMEM): Separate performance from presence checks.
24462         * modules/memmem-simple: New file.
24463         * modules/memmem (Description): Tweak.
24464         * MODULES.html.sh (string handling): Mention new module.
24465         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
24466         addressed by memmem-simple.
24467         * NEWS: Document the difference.
24468
24469 2008-01-09  Eric Blake  <ebb9@byu.net>
24470
24471         Give gcc some memmem optimization hints.
24472         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
24473         (strcasestr): Declare as pure.
24474         * modules/memmem (Maintainer): Claim my implementation.
24475
24476 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24477
24478         Support AIX 6.1 and higher.
24479         * build-aux/config.libpath: Likewise.
24480         * build-aux/config.rpath: Likewise.
24481
24482 2008-01-08  Jim Meyering  <meyering@redhat.com>
24483             Bruno Haible  <bruno@clisp.org>
24484
24485         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
24486         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
24487         Reported by Peter Fales in
24488         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
24489
24490 2008-01-08  Bruno Haible  <bruno@clisp.org>
24491
24492         * modules/unictype/category-of (Depends-on): Add
24493         unictype/category-none.
24494         * modules/unictype/category-and-tests (Depends-on): Add
24495         unictype/category-{L,N,Lu,Nd}.
24496         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
24497         * modules/unictype/category-or-tests (Depends-on): Add
24498         unictype/category-{L,N}.
24499         * modules/unictype/category-name-tests (Depends-on): Add
24500         unictype/category-{Z,Nl}.
24501         Reported by Simon Josefsson.
24502
24503 2008-01-08  Bruno Haible  <bruno@clisp.org>
24504
24505         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
24506         convention better.
24507         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
24508         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
24509         Reported by Peter Miller <millerp@canb.auug.org.au>.
24510
24511 2008-01-08  Eric Blake  <ebb9@byu.net>
24512
24513         Rewrite memmem to guarantee linear complexity without malloc.
24514         * lib/memmem.c (memmem): Use Two-Way rather than
24515         Knuth-Morris-Pratt, to allow O(1) space usage.
24516         (critical_factorization, two_way_short_needle)
24517         (two_way_long_needle): New functions.
24518         (knuth_morris_pratt): Delete.
24519         * modules/memmem (Depends-on): No longer need malloca or stdbool.
24520         Add stdint.
24521         * tests/test-memmem.c (main): Add tests for periodic needle and
24522         sublinear performance.
24523         * doc/functions/memmem.texi (memmem): Document other deficiencies
24524         in cygwin and older glibc.
24525
24526 2008-01-08  Bruno Haible  <bruno@clisp.org>
24527
24528         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
24529         augmentation.
24530
24531 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
24532
24533         Add a configure time option: --disable-acl.
24534         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
24535         AC_ARG_ENABLE(acl).
24536
24537 2008-01-06  Simon Josefsson  <simon@josefsson.org>
24538
24539         * tests/test-localename.c: Don't include obsolete "setenv.h".
24540
24541         * modules/localename-tests (Depends-on): Need unsetenv.
24542
24543 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24544
24545         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
24546
24547 2008-01-06  Colin Watson  <cjwatson@debian.org>
24548
24549         * users.txt: Add man-db.
24550
24551 2008-01-07  Bruno Haible  <bruno@clisp.org>
24552
24553         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
24554         previous section name.
24555
24556 2008-01-07  Bruno Haible  <bruno@clisp.org>
24557
24558         * lib/progname.c (set_program_name): Don't strip off a leading
24559         "lt-" prefix outside a .libs directory.
24560         Suggested by Paul Eggert.
24561
24562 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
24563             Bruno Haible  <bruno@clisp.org>
24564
24565         Improve memory cleanup in 'relocatable' module.
24566         * lib/relocatable.h (compute_curr_prefix): Change return type to
24567         'char *'.
24568         * lib/relocatable.c (compute_curr_prefix): Change return type to
24569         'char *'. Free curr_installdir after use.
24570         (relocate): Free curr_prefix_better after use.
24571         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
24572
24573 2008-01-01  Bruno Haible  <bruno@clisp.org>
24574
24575         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
24576         failure on older glibc systems.
24577         Reported by Peter Fales <psfales@alcatel-lucent.com>.
24578
24579 2008-01-05  Eric Blake  <ebb9@byu.net>
24580
24581         Avoid quadratic system memmem.
24582         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
24583         Reported by Ralf Wildenhues.
24584
24585         Fix memmem test for mingw.
24586         * modules/memmem-tests (configure.ac): Check for alarm.
24587         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
24588         it.
24589         * doc/functions/memmem.texi: New file.
24590         * doc/gnulib.texi (Function Substitutes): Add memmem.
24591         Reported by Bruno Haible.
24592
24593 2008-01-04  Bruno Haible  <bruno@clisp.org>
24594
24595         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
24596         Require gl_HEADER_STRINGS_H_DEFAULTS, not
24597         gl_HEADER_STRING_H_DEFAULTS.
24598
24599 2008-01-04  Eric Blake  <ebb9@byu.net>
24600
24601         Shorten duration of memmem test.
24602         * tests/test-memmem.c (main): Use alarm to declare failure if test
24603         is taking too long.
24604         Reported by Ralf Wildenhues.
24605
24606 2007-12-21  Simon Josefsson  <simon@josefsson.org>
24607
24608         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
24609         string, needed by strerror.
24610
24611 2008-01-03  Colin Watson  <cjwatson@debian.org>
24612             Bruno Haible  <bruno@clisp.org>
24613
24614         * doc/gnulib-tool.texi (Localization): New section.
24615
24616 2008-01-02  Bruno Haible  <bruno@clisp.org>
24617
24618         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
24619         variables to 'unsigned char *' type.
24620         Reported by Paul Eggert.
24621
24622 2008-01-02  Jim Meyering  <jim@meyering.net>
24623
24624         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
24625
24626 2007-12-31  Jim Meyering  <jim@meyering.net>
24627
24628         Avoid use of private FTS type name.
24629         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
24630
24631 2007-12-30  Karl Berry  <karl@gnu.org>
24632
24633         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
24634         work around defect in Texinfo and/or the standalone Info browser.
24635
24636 2007-12-30  Bruno Haible  <bruno@clisp.org>
24637
24638         Unify 5 copies of the KMP code.
24639         * lib/str-kmp.h: New file.
24640         * lib/c-strcasestr.c: Include str-kmp.h.
24641         (knuth_morris_pratt): Remove function.
24642         (c_strcasestr): Update.
24643         * lib/c-strstr.c: Include str-kmp.h.
24644         (knuth_morris_pratt): Remove function.
24645         (c_strcasestr): Update.
24646         * lib/mbscasestr.c: Include str-kmp.h.
24647         (knuth_morris_pratt_unibyte): Remove function.
24648         * lib/mbsstr.c: Include str-kmp.h.
24649         (knuth_morris_pratt_unibyte): Remove function.
24650         * lib/strcasestr.c: Include str-kmp.h.
24651         (knuth_morris_pratt): Remove function.
24652         (strcasestr): Update.
24653         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
24654         * modules/c-strstr (Files): Likewise.
24655         * modules/mbscasestr (Files): Likewise.
24656         * modules/mbsstr (Files): Likewise.
24657         * modules/strcasestr (Files): Likewise.
24658         Suggested by Paul Eggert.
24659
24660 2007-12-30  Bruno Haible  <bruno@clisp.org>
24661
24662         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
24663         defined.
24664
24665 2007-12-30  Bruno Haible  <bruno@clisp.org>
24666
24667         * lib/xmalloca.h: Include xalloc.h.
24668         (xnmalloca): New macro.
24669
24670 2007-12-30  Bruno Haible  <bruno@clisp.org>
24671
24672         * lib/malloca.h (nmalloca): New macro.
24673         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
24674         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
24675         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
24676         knuth_morris_pratt_multibyte): Likewise.
24677         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
24678         knuth_morris_pratt_multibyte): Likewise.
24679         * lib/memmem.c (knuth_morris_pratt): Likewise.
24680         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
24681
24682 2007-12-25  Bruno Haible  <bruno@clisp.org>
24683
24684         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
24685         * lib/glob.c: Don't include openat.h.
24686         (link_exists2_p): Add back the code that deals with the
24687         !GLOB_ALTDIRFUNC case.
24688         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
24689         let it do the filename concatenation.
24690         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
24691         * modules/glob (Depends-on): Remove openat.
24692
24693 2007-12-31  Bruno Haible  <bruno@clisp.org>
24694
24695         * modules/dirfd (License): Change to LGPLv2+.
24696         Approved by Jim Meyering.
24697
24698 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
24699
24700         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
24701         when multiplying M by sizeof (size_t).
24702
24703 2007-12-10  Martin Lambers  <marlam@marlam.de>
24704
24705         Override getpagesize on mingw.
24706         * lib/getpagesize.c: New file.
24707         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
24708         * modules/getpagesize (Files): Add lib/getpagesize.c.
24709         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
24710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24711         REPLACE_GETPAGESIZE.
24712         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
24713
24714 2007-12-25  Bruno Haible  <bruno@clisp.org>
24715
24716         * modules/localcharset (Notice): New field.
24717         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
24718         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
24719
24720 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
24721             Bruno Haible  <bruno@clisp.org>
24722
24723         Avoid using the syntax symbol() in formatted documentation.
24724         * MODULES.html.sh (func_module): When replacing symbol() with a
24725         hyperlink, remove the parentheses. Show an error if some remain.
24726         Recognize and render the '...' syntax.
24727         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
24728         Rework. Add paragraph about GCC's inlining.
24729         * doc/alloca.texi: Likewise.
24730         * doc/error.texi: Remove parentheses from symbol reference.
24731         * doc/gnulib-intro.texi: Likewise.
24732         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
24733         * modules/fnmatch (Description): Reword to say "the ... function".
24734         * modules/full-read (Description): Likewise.
24735         * modules/full-write (Description): Likewise.
24736         * modules/safe-read (Description): Likewise.
24737         * modules/safe-write (Description): Likewise.
24738         * modules/strchrnul (Description): Likewise.
24739         * modules/trim (Description): Likewise.
24740         * modules/error (Description): Remove parentheses from symbol
24741         references.
24742         * modules/verror (Description): Likewise.
24743         Reported by Karl Berry.
24744
24745 2007-12-25  Bruno Haible  <bruno@clisp.org>
24746
24747         Fixup after 2007-10-16 commit.
24748         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
24749
24750 2007-12-24  Bruno Haible  <bruno@clisp.org>
24751
24752         Make --enable-relocatable work with DESTDIR.
24753         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
24754         to compute installdir from destprog.
24755         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
24756         also set the RELOC_DESTDIR variable.
24757         Reported by Левашев Иван <octagram@bluebottle.com>.
24758
24759 2007-12-24  Bruno Haible  <bruno@clisp.org>
24760
24761         Fix link error due to xalloc_die().
24762         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
24763         of xreadlink.
24764         * lib/relocwrapper.c: Update comments.
24765         * build-aux/install-reloc: Remove xreadlink.c from file list.
24766         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
24767         xreadlink.c.
24768         Reported by Левашев Иван <octagram@bluebottle.com>.
24769
24770 2007-12-24  Bruno Haible  <bruno@clisp.org>
24771
24772         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
24773         * lib/setenv.h: Remove file.
24774         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
24775         lib/setenv.h.
24776         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
24777         (Depends-on): Add stdlib.
24778         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
24779         gl_FUNC_UNSETENV.
24780         (Include): Replace setenv.h with <stdlib.h>.
24781         * modules/unsetenv: New file.
24782         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
24783         * lib/unsetenv.c: Include <stdlib.h> first.
24784         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
24785         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
24786         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
24787         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
24788         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
24789         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
24790         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
24791         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
24792         * doc/functions/unsetenv.texi: Update.
24793         * modules/xsetenv (Depends-on): Add unsetenv.
24794         * modules/getdate (Depends-on): Likewise.
24795         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
24796         * lib/xsetenv.c: Don't include setenv.h.
24797         * lib/getdate.y: Likewise.
24798         * lib/relocwrapper.c: Likewise.
24799         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
24800         (Depends-on): Add stdlib.
24801         * NEWS: Mention the changes.
24802         Reported by Левашев Иван <octagram@bluebottle.com>.
24803
24804 2007-12-23  Bruno Haible  <bruno@clisp.org>
24805
24806         * lib/memmem.c (memmem): Use lowercase variable names. Tab
24807         indentation.
24808
24809 2007-12-23  Bruno Haible  <bruno@clisp.org>
24810
24811         * lib/c-strcasestr.c: Add more comments.
24812         * lib/c-strstr.c: Likewise.
24813         * lib/mbscasestr.c: Likewise.
24814         * lib/mbsstr.c: Likewise.
24815         * lib/strcasestr.c: Likewise.
24816         * lib/memmem.c: Likewise.
24817
24818 2007-12-23  Bruno Haible  <bruno@clisp.org>
24819
24820         * tests/test-memmem.c: Include <string.h> first.
24821
24822 2007-12-22  Bruno Haible  <bruno@clisp.org>
24823
24824         * gnulib-tool (func_create_testdir): Change $auxdir while generating
24825         the contents of $testsbase.
24826         Reported by Ralf Wildenhues.
24827
24828 2007-12-22  Bruno Haible  <bruno@clisp.org>
24829
24830         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
24831         two variables local_ldadd_before, local_ldadd_last.
24832
24833 2007-12-20  Eric Blake  <ebb9@byu.net>
24834
24835         Work around circular library issue when cross-compiling.
24836         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
24837         that progname.o does not need to pull in rpl_memcmp.
24838
24839 2007-12-19  Eric Blake  <ebb9@byu.net>
24840
24841         Fix memmem to avoid O(n^2) worst-case complexity.
24842         * lib/memmem.c (knuth_morris_pratt): New function.
24843         (memmem): Use it if first few naive iterations fail.
24844         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
24845         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
24846         * modules/memchr (License): Likewise.
24847         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
24848         malloca.
24849         * tests/test-memmem.c: Rewrite, borrowing ideas from
24850         test-mbsstr1.c; the old version wouldn't even compile!
24851         * modules/memmem-tests: New file.
24852         * lib/string.in.h (rpl_memmem): Add declaration.
24853         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
24854         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
24855         REPLACE_MEMMEM.
24856
24857 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24858
24859         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
24860         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
24861         before any system include files, and undef after them all.  This
24862         should fix a problem on VMS reported by John E. Malmberg in
24863         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
24864
24865 2007-12-17  Eric Blake  <ebb9@byu.net>
24866
24867         Revert addition of verify, for BSD/OS.
24868         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
24869         can't handle large files, for the sake of obsolete platforms.
24870         * modules/fseeko (Depends-on): Remove verify.
24871         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
24872         * doc/functions/ftello.texi (ftello): Likewise.
24873         * doc/functions/fgetpos.texi (fgetpos): Likewise.
24874         Reported by Larry Jones.
24875
24876 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
24877
24878         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
24879         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
24880
24881 2007-12-17  Jim Meyering  <meyering@redhat.com>
24882
24883         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
24884         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
24885         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
24886         * modules/getcwd (Depends-on): Add openat.
24887         Reported by Petr Salinger.
24888
24889 2007-12-17  Bruno Haible  <bruno@clisp.org>
24890
24891         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
24892         avoid a segmentation fault of the configure test on x86_64 systems.
24893
24894 2007-12-15  Jim Meyering  <meyering@redhat.com>
24895
24896         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
24897
24898 2007-12-13  Eric Blake  <ebb9@byu.net>
24899
24900         Another fseek test.
24901         * tests/test-fseek.c (main): Also test ungetc handling.
24902         * tests/test-fseeko.c (main): Likewise.
24903         * modules/fseeko (Depends-on): Add verify.
24904         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
24905         large.
24906         Reported by Larry Jones.
24907
24908         Fix fseeko on mingw.
24909         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
24910         seek.
24911
24912         Beef up fseek tests.
24913         * tests/test-fseek.c (main): Also test eof handling.
24914         * tests/test-fseeko.c (main): Likewise.
24915         Reported by Larry Jones.
24916
24917 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
24918
24919         Fix fseeko on BSD-based platforms.
24920         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
24921         successful seek.
24922
24923 2007-12-12  Eric Blake  <ebb9@byu.net>
24924
24925         Allow circular dependency of separate libtests.a
24926         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
24927         when use_libtests.
24928
24929 2007-12-11  Eric Blake  <ebb9@byu.net>
24930
24931         Fix bug with -0.0L in previous patch.
24932         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
24933         * tests/test-isnan.c (main): Also test on zeroes.
24934         * tests/test-isnanf.c (main): Likewise.
24935         * tests/test-isnanl.h (main): Likewise.
24936
24937         Detect pseudo-denormals on x86 even when cross-compiling.
24938         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
24939         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
24940         invalid bit patterns that happen to satisfy ==.
24941
24942         Avoid link failures with separate libtests.a.
24943         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
24944         last, to satisfy circular dependencies.
24945
24946 2007-12-11  Eric Blake  <ebb9@byu.net>
24947         and Bruno Haible  <bruno@clisp.org>
24948
24949         Fix OpenBSD 4.0 <float.h> handling of long double.
24950         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
24951         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
24952         * doc/headers/float.texi (float.h): Document OpenBSD bug.
24953
24954 2007-12-11  Jim Meyering  <meyering@redhat.com>
24955
24956         * users.txt: Add libvirt.
24957
24958         Support versions of autoconf prior to 2.59c.
24959         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
24960         if it is not already defined.
24961
24962 2007-12-09  Bruno Haible  <bruno@clisp.org>
24963
24964         Let 'gnulib-tool --import' collect sources needed for the tests in
24965         tests/ rather than in lib/.
24966         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
24967         argument. If true, add rules to generate libtests.a, and put libtests.a
24968         into $(LDADD). Consider source files in subdirectories and set
24969         uses_subdirs.
24970         (func_emit_initmacro_start, func_emit_initmacro_end,
24971         func_emit_initmacro_done): Pass all arguments explicitly.
24972         (func_import): Determine two module lists main_modules,
24973         testsrelated_modules. Determine use_libtests. Determine two variables
24974         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
24975         instead of just sed_transform_lib_file. Determine two variables
24976         main_files and testsrelated_files. Compute 'files' as the union of
24977         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
24978         func_add_or_update. In the generated gnulib-comp.m4, collect the
24979         object files for tests/ in different variables than those for lib/.
24980         Substitute LIBTESTS_LIBDEPS.
24981         (func_create_testdir): Combine the uses_subdirs results from
24982         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
24983
24984 2007-12-09  Bruno Haible  <bruno@clisp.org>
24985
24986         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
24987         the build-aux directory.
24988
24989 2007-12-09  Bruno Haible  <bruno@clisp.org>
24990
24991         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
24992         introduced on 2006-09-09.
24993
24994 2007-12-07  Jim Meyering  <meyering@redhat.com>
24995
24996         Let these macros work also with autoconf-2.59.
24997         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
24998         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
24999         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25000
25001 2007-12-06  Jim Meyering  <meyering@redhat.com>
25002
25003         Avoid a configure-time syntax error in gl_FUNC_ACL.
25004         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
25005         function in each branch, before testing the cache variable.
25006
25007 2007-12-04  Eric Blake  <ebb9@byu.net>
25008
25009         Make scripts executable.
25010         * build-aux/config.guess: Add execute permissions.
25011         * build-aux/config.sub: Likewise.
25012         * build-aux/gendocs.sh: Likewise.
25013
25014         Fix frexp on mingw.
25015         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
25016         cross-compiling.
25017         * doc/functions/frexp.texi (frexp): Document the bug.
25018
25019         Make cygwin fseeko check more reliable.
25020         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
25021         version numbers, rather than unrelated feature check.
25022         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
25023         * doc/functions/ftello.texi (ftello): Likewise.
25024         Reported by Bruno Haible.
25025
25026         * m4/strerror.m4: Bump version number.
25027
25028 2007-12-03  Bruno Haible  <bruno@clisp.org>
25029
25030         * doc/functions/mprotect.texi: Mention the mingw problem.
25031
25032 2007-12-03  Eric Blake  <ebb9@byu.net>
25033
25034         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
25035         REPLACE_STRERROR is initialized before this macro.
25036
25037 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
25038
25039         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
25040         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
25041         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
25042         put -lsec in even for programs other than 'ls'.  This fixes a problem
25043         for gettext reported by Bruno Haible in
25044         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
25045         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
25046         Add support for Solaris 10.  This isn't efficient, but should get the
25047         job done for now.
25048
25049 2007-12-03  James Youngman  <jay@gnu.org>
25050
25051         * doc/regexprops-generic.texi: change "an close-group" to "a
25052         close-group" and "illegal" to "not allowed".
25053
25054 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25055
25056         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
25057         pr_byname.h. Needed for the rare case when the maintainer has done
25058         "make maintainer-clean" in the source directory and then attempts a
25059         build outside the source directory.
25060         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
25061         scripts_byname.h.
25062
25063 2007-12-02  Martin Lambers <marlam@marlam.de>
25064             Bruno Haible  <bruno@clisp.org>
25065
25066         * lib/getpagesize.h: Remove file.
25067         * lib/unistd.in.h: Include declaration of getpagesize here.
25068         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
25069         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
25070         HAVE_SYS_PARAM_H.
25071         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
25072         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
25073         * modules/getpagesize (Files): Remove lib/getpagesize.h.
25074         (Depends-on): Add unistd.
25075         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25076         (Include): Use <unistd.h> instead of getpagesize.h.
25077         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
25078         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
25079         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
25080         gl_GETPAGESIZE invocation, already handled by module dependency.
25081         * lib/pagealign_alloc.c: Don't include getpagesize.h.
25082
25083 2007-12-02  Bruno Haible  <bruno@clisp.org>
25084
25085         * modules/strings-tests: New file.
25086         * tests/test-strings.c: New file.
25087
25088         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
25089         * lib/strings.in.h: New file.
25090         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
25091         * m4/strings_h.m4: New file.
25092         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
25093         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
25094         * modules/strings: New file.
25095         * modules/string (Makefile.am): Update.
25096         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
25097         Reported by Karl Berry.
25098
25099 2007-12-01  Eric Blake  <ebb9@byu.net>
25100
25101         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
25102         accomodate fix in cygwin 1.5.25.
25103
25104 2007-12-01  Jim Meyering  <meyering@redhat.com>
25105
25106         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
25107         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
25108         that would inhibit utf8-optimization of a regexp containing line-
25109         or buffer-anchors, e.g., `^', `$'.
25110
25111 2007-11-30  Bruno Haible  <bruno@clisp.org>
25112
25113         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
25114         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
25115         glthread_recursive_lock_init.
25116         * lib/lock.c (glthread_recursive_lock_init)
25117         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
25118         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25119
25120 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
25121
25122         New function qset_acl, like set_acl but with syscall semantics.
25123         * lib/acl.h (qset_acl): New decl.
25124         * lib/acl.c (qset_acl): New function.
25125         (set_acl): Use new function.  Use more-consistent diagnostics.
25126
25127 2007-11-28  Jim Meyering  <meyering@redhat.com>
25128
25129         * modules/physmem (License): Change from GPL to LGPLv2+.
25130
25131 2007-11-26  Bruno Haible  <bruno@clisp.org>
25132
25133         * lib/vasnprintf.c (decode_long_double): Don't abort if the
25134         'long double' type has excess precision.
25135         Reported by Jim Meyering in
25136         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
25137
25138 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25139
25140         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
25141         Sync from <http://gnu.org/licenses>.
25142         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
25143         with license text from same location.
25144         * doc/maintain.texi, doc/standards.texi:  Sync from
25145         <http://savannah.gnu.org/projects/gnustandards>.
25146
25147 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
25148         and Jim Meyering  <meyering@redhat.com>
25149
25150         Adjust getdate' grammar to accept a slightly more regular language.
25151         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
25152         Before, the former was rejected.
25153         * lib/getdate.y (digits_to_date_time): New function, factored
25154         out of ...
25155         (number): ...here.  Just call digits_to_date_time.
25156         (hybrid): New non-terminal to handle an <unsigned number,
25157         signed relative offset> sequence consistently.
25158
25159 2007-11-18  Jim Meyering  <meyering@redhat.com>
25160
25161         Pull my changes from coreutils:
25162         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
25163         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
25164         use of $gnulib_tool_option_extras, so that it's separated from the
25165         preceding argument.
25166
25167         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
25168         * build-aux/bootstrap (cp_mark_as_generated): Create any required
25169         parent destination directories before copying a file into place.
25170
25171 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
25172
25173         bootstrap: work also with 4-argument variant of AC_INIT
25174         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
25175
25176 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
25177
25178         Port test-getaddrinfo to Solaris.
25179         Problem reported by Bruno Haible in
25180         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
25181         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
25182         explanation of setting 'hints'.
25183         Don't reject an implementation merely because it returns EAI_SERVICE.
25184         (EAI_SERVICE): Define to 0 if not defined.
25185
25186 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
25187
25188         The license of gnu-make and posix-shell is now "GPLed build tool".
25189         * modules/gnu-make (License): Likewise.
25190         * modules/posix-shell (License): Likewise.
25191
25192         New module posix-shell, for determining a POSIX shell
25193         or perhaps something that is close enough to a POSIX shell.
25194         * m4/posix-shell.m4: New file.
25195         * modules/posix-shell: New file.
25196
25197         * MODULES.html.sh: Mention new module.
25198
25199         New module gnu-make, for determining whether we're using GNU Make.
25200         * m4/gnu-make.m4: New file.
25201         * modules/gnu-make: New file.
25202         * MODULES.html.sh: Mention new module.
25203
25204 2007-11-14  Jim Meyering  <meyering@redhat.com>
25205
25206         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
25207         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
25208         use this macro to create a function _definition_.
25209         Remove useless "#undef ARGMATCH_DIE".
25210
25211 2007-11-14  Bruno Haible  <bruno@clisp.org>
25212
25213         * lib/config.charset: Update for OpenBSD 4.1.
25214         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
25215
25216 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
25217
25218         Document 64-bit #if problems in stdint.texi.
25219         * doc/headers/stdint.texi (stdint.h): Mention problems with
25220         64-bit-#if, and how to work around them.
25221
25222         Don't insist on 'long long int' support in the preprocessor.  It
25223         breaks too many things.  For example, PRIdMAX still uses a 'long
25224         long int' format with the latest Sun compiler, even though
25225         HAVE_LONG_LONG_INT isn't defined due to that compiler's
25226         preprocessor problem.  This causes the latest coreutils to dump
25227         core on Solaris 10 sparc with the Sun C compiler.
25228         Instead, fix the 2007-10-16 problem in a different way, by evaluating
25229         the troublesome expressions at configure-time, not at #if-time.
25230         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
25231         preprocessor.
25232         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
25233         compile-time C checks, done at 'configure'-time.
25234         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
25235         * modules/inttypes (Makefile): Substitute the new symbols that
25236         gl_INTTYPES_H now generates.
25237         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
25238
25239 2007-11-12  Bruno Haible  <bruno@clisp.org>
25240
25241         Tests for Unicode character classification functions.
25242
25243         * modules/unictype/bidicategory-byname-tests: New file.
25244         * modules/unictype/bidicategory-name-tests: New file.
25245         * modules/unictype/bidicategory-of-tests: New file.
25246         * modules/unictype/bidicategory-test-tests: New file.
25247         * modules/unictype/block-list-tests: New file.
25248         * modules/unictype/block-of-tests: New file.
25249         * modules/unictype/block-test-tests: New file.
25250         * modules/unictype/category-C-tests: New file.
25251         * modules/unictype/category-Cc-tests: New file.
25252         * modules/unictype/category-Cf-tests: New file.
25253         * modules/unictype/category-Cn-tests: New file.
25254         * modules/unictype/category-Co-tests: New file.
25255         * modules/unictype/category-Cs-tests: New file.
25256         * modules/unictype/category-L-tests: New file.
25257         * modules/unictype/category-Ll-tests: New file.
25258         * modules/unictype/category-Lm-tests: New file.
25259         * modules/unictype/category-Lo-tests: New file.
25260         * modules/unictype/category-Lt-tests: New file.
25261         * modules/unictype/category-Lu-tests: New file.
25262         * modules/unictype/category-M-tests: New file.
25263         * modules/unictype/category-Mc-tests: New file.
25264         * modules/unictype/category-Me-tests: New file.
25265         * modules/unictype/category-Mn-tests: New file.
25266         * modules/unictype/category-N-tests: New file.
25267         * modules/unictype/category-Nd-tests: New file.
25268         * modules/unictype/category-Nl-tests: New file.
25269         * modules/unictype/category-No-tests: New file.
25270         * modules/unictype/category-P-tests: New file.
25271         * modules/unictype/category-Pc-tests: New file.
25272         * modules/unictype/category-Pd-tests: New file.
25273         * modules/unictype/category-Pe-tests: New file.
25274         * modules/unictype/category-Pf-tests: New file.
25275         * modules/unictype/category-Pi-tests: New file.
25276         * modules/unictype/category-Po-tests: New file.
25277         * modules/unictype/category-Ps-tests: New file.
25278         * modules/unictype/category-S-tests: New file.
25279         * modules/unictype/category-Sc-tests: New file.
25280         * modules/unictype/category-Sk-tests: New file.
25281         * modules/unictype/category-Sm-tests: New file.
25282         * modules/unictype/category-So-tests: New file.
25283         * modules/unictype/category-Z-tests: New file.
25284         * modules/unictype/category-Zl-tests: New file.
25285         * modules/unictype/category-Zp-tests: New file.
25286         * modules/unictype/category-Zs-tests: New file.
25287         * modules/unictype/category-and-not-tests: New file.
25288         * modules/unictype/category-and-tests: New file.
25289         * modules/unictype/category-byname-tests: New file.
25290         * modules/unictype/category-name-tests: New file.
25291         * modules/unictype/category-none-tests: New file.
25292         * modules/unictype/category-of-tests: New file.
25293         * modules/unictype/category-or-tests: New file.
25294         * modules/unictype/category-test-withtable-tests: New file.
25295         * modules/unictype/combining-class-tests: New file.
25296         * modules/unictype/ctype-alnum-tests: New file.
25297         * modules/unictype/ctype-alpha-tests: New file.
25298         * modules/unictype/ctype-blank-tests: New file.
25299         * modules/unictype/ctype-cntrl-tests: New file.
25300         * modules/unictype/ctype-digit-tests: New file.
25301         * modules/unictype/ctype-graph-tests: New file.
25302         * modules/unictype/ctype-lower-tests: New file.
25303         * modules/unictype/ctype-print-tests: New file.
25304         * modules/unictype/ctype-punct-tests: New file.
25305         * modules/unictype/ctype-space-tests: New file.
25306         * modules/unictype/ctype-upper-tests: New file.
25307         * modules/unictype/ctype-xdigit-tests: New file.
25308         * modules/unictype/decimal-digit-tests: New file.
25309         * modules/unictype/digit-tests: New file.
25310         * modules/unictype/mirror-tests: New file.
25311         * modules/unictype/numeric-tests: New file.
25312         * modules/unictype/property-alphabetic-tests: New file.
25313         * modules/unictype/property-ascii-hex-digit-tests: New file.
25314         * modules/unictype/property-bidi-arabic-digit-tests: New file.
25315         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
25316         * modules/unictype/property-bidi-block-separator-tests: New file.
25317         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
25318         * modules/unictype/property-bidi-common-separator-tests: New file.
25319         * modules/unictype/property-bidi-control-tests: New file.
25320         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
25321         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
25322         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
25323         * modules/unictype/property-bidi-european-digit-tests: New file.
25324         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
25325         * modules/unictype/property-bidi-left-to-right-tests: New file.
25326         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
25327         * modules/unictype/property-bidi-other-neutral-tests: New file.
25328         * modules/unictype/property-bidi-pdf-tests: New file.
25329         * modules/unictype/property-bidi-segment-separator-tests: New file.
25330         * modules/unictype/property-bidi-whitespace-tests: New file.
25331         * modules/unictype/property-byname-tests: New file.
25332         * modules/unictype/property-combining-tests: New file.
25333         * modules/unictype/property-composite-tests: New file.
25334         * modules/unictype/property-currency-symbol-tests: New file.
25335         * modules/unictype/property-dash-tests: New file.
25336         * modules/unictype/property-decimal-digit-tests: New file.
25337         * modules/unictype/property-default-ignorable-code-point-tests: New file.
25338         * modules/unictype/property-deprecated-tests: New file.
25339         * modules/unictype/property-diacritic-tests: New file.
25340         * modules/unictype/property-extender-tests: New file.
25341         * modules/unictype/property-format-control-tests: New file.
25342         * modules/unictype/property-grapheme-base-tests: New file.
25343         * modules/unictype/property-grapheme-extend-tests: New file.
25344         * modules/unictype/property-grapheme-link-tests: New file.
25345         * modules/unictype/property-hex-digit-tests: New file.
25346         * modules/unictype/property-hyphen-tests: New file.
25347         * modules/unictype/property-id-continue-tests: New file.
25348         * modules/unictype/property-id-start-tests: New file.
25349         * modules/unictype/property-ideographic-tests: New file.
25350         * modules/unictype/property-ids-binary-operator-tests: New file.
25351         * modules/unictype/property-ids-trinary-operator-tests: New file.
25352         * modules/unictype/property-ignorable-control-tests: New file.
25353         * modules/unictype/property-iso-control-tests: New file.
25354         * modules/unictype/property-join-control-tests: New file.
25355         * modules/unictype/property-left-of-pair-tests: New file.
25356         * modules/unictype/property-line-separator-tests: New file.
25357         * modules/unictype/property-logical-order-exception-tests: New file.
25358         * modules/unictype/property-lowercase-tests: New file.
25359         * modules/unictype/property-math-tests: New file.
25360         * modules/unictype/property-non-break-tests: New file.
25361         * modules/unictype/property-not-a-character-tests: New file.
25362         * modules/unictype/property-numeric-tests: New file.
25363         * modules/unictype/property-other-alphabetic-tests: New file.
25364         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
25365         * modules/unictype/property-other-grapheme-extend-tests: New file.
25366         * modules/unictype/property-other-id-continue-tests: New file.
25367         * modules/unictype/property-other-id-start-tests: New file.
25368         * modules/unictype/property-other-lowercase-tests: New file.
25369         * modules/unictype/property-other-math-tests: New file.
25370         * modules/unictype/property-other-uppercase-tests: New file.
25371         * modules/unictype/property-paired-punctuation-tests: New file.
25372         * modules/unictype/property-paragraph-separator-tests: New file.
25373         * modules/unictype/property-pattern-syntax-tests: New file.
25374         * modules/unictype/property-pattern-white-space-tests: New file.
25375         * modules/unictype/property-private-use-tests: New file.
25376         * modules/unictype/property-punctuation-tests: New file.
25377         * modules/unictype/property-quotation-mark-tests: New file.
25378         * modules/unictype/property-radical-tests: New file.
25379         * modules/unictype/property-sentence-terminal-tests: New file.
25380         * modules/unictype/property-soft-dotted-tests: New file.
25381         * modules/unictype/property-space-tests: New file.
25382         * modules/unictype/property-terminal-punctuation-tests: New file.
25383         * modules/unictype/property-test-tests: New file.
25384         * modules/unictype/property-titlecase-tests: New file.
25385         * modules/unictype/property-unassigned-code-value-tests: New file.
25386         * modules/unictype/property-unified-ideograph-tests: New file.
25387         * modules/unictype/property-uppercase-tests: New file.
25388         * modules/unictype/property-variation-selector-tests: New file.
25389         * modules/unictype/property-white-space-tests: New file.
25390         * modules/unictype/property-xid-continue-tests: New file.
25391         * modules/unictype/property-xid-start-tests: New file.
25392         * modules/unictype/property-zero-width-tests: New file.
25393         * modules/unictype/scripts-tests: New file.
25394         * modules/unictype/syntax-c-ident-tests: New file.
25395         * modules/unictype/syntax-c-whitespace-tests: New file.
25396         * modules/unictype/syntax-java-ident-tests: New file.
25397         * modules/unictype/syntax-java-whitespace-tests: New file.
25398         * tests/unictype/test-bidi_byname.c: New file.
25399         * tests/unictype/test-bidi_name.c: New file.
25400         * tests/unictype/test-bidi_of.c: New file.
25401         * tests/unictype/test-bidi_test.c: New file.
25402         * tests/unictype/test-block_list.c: New file.
25403         * tests/unictype/test-block_of.c: New file.
25404         * tests/unictype/test-block_test.c: New file.
25405         * tests/unictype/test-categ_and.c: New file.
25406         * tests/unictype/test-categ_and_not.c: New file.
25407         * tests/unictype/test-categ_byname.c: New file.
25408         * tests/unictype/test-categ_name.c: New file.
25409         * tests/unictype/test-categ_none.c: New file.
25410         * tests/unictype/test-categ_of.c: New file.
25411         * tests/unictype/test-categ_or.c: New file.
25412         * tests/unictype/test-categ_test_withtable.c: New file.
25413         * tests/unictype/test-combining.c: New file.
25414         * tests/unictype/test-decdigit.c: New file.
25415         * tests/unictype/test-digit.c: New file.
25416         * tests/unictype/test-mirror.c: New file.
25417         * tests/unictype/test-numeric.c: New file.
25418         * tests/unictype/test-pr_byname.c: New file.
25419         * tests/unictype/test-pr_test.c: New file.
25420         * tests/unictype/test-predicate-part1.h: New file.
25421         * tests/unictype/test-predicate-part2.h: New file.
25422         * tests/unictype/test-scripts.c: New file.
25423         * tests/unictype/test-sy_c_ident.c: New file.
25424         * tests/unictype/test-sy_java_ident.c: New file.
25425
25426         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
25427         for Unicode 5.0.0.
25428         * tests/unictype/test-categ_Cc.c: Likewise.
25429         * tests/unictype/test-categ_Cf.c: Likewise.
25430         * tests/unictype/test-categ_Cn.c: Likewise.
25431         * tests/unictype/test-categ_Co.c: Likewise.
25432         * tests/unictype/test-categ_Cs.c: Likewise.
25433         * tests/unictype/test-categ_L.c: Likewise.
25434         * tests/unictype/test-categ_Ll.c: Likewise.
25435         * tests/unictype/test-categ_Lm.c: Likewise.
25436         * tests/unictype/test-categ_Lo.c: Likewise.
25437         * tests/unictype/test-categ_Lt.c: Likewise.
25438         * tests/unictype/test-categ_Lu.c: Likewise.
25439         * tests/unictype/test-categ_M.c: Likewise.
25440         * tests/unictype/test-categ_Mc.c: Likewise.
25441         * tests/unictype/test-categ_Me.c: Likewise.
25442         * tests/unictype/test-categ_Mn.c: Likewise.
25443         * tests/unictype/test-categ_N.c: Likewise.
25444         * tests/unictype/test-categ_Nd.c: Likewise.
25445         * tests/unictype/test-categ_Nl.c: Likewise.
25446         * tests/unictype/test-categ_No.c: Likewise.
25447         * tests/unictype/test-categ_P.c: Likewise.
25448         * tests/unictype/test-categ_Pc.c: Likewise.
25449         * tests/unictype/test-categ_Pd.c: Likewise.
25450         * tests/unictype/test-categ_Pe.c: Likewise.
25451         * tests/unictype/test-categ_Pf.c: Likewise.
25452         * tests/unictype/test-categ_Pi.c: Likewise.
25453         * tests/unictype/test-categ_Po.c: Likewise.
25454         * tests/unictype/test-categ_Ps.c: Likewise.
25455         * tests/unictype/test-categ_S.c: Likewise.
25456         * tests/unictype/test-categ_Sc.c: Likewise.
25457         * tests/unictype/test-categ_Sk.c: Likewise.
25458         * tests/unictype/test-categ_Sm.c: Likewise.
25459         * tests/unictype/test-categ_So.c: Likewise.
25460         * tests/unictype/test-categ_Z.c: Likewise.
25461         * tests/unictype/test-categ_Zl.c: Likewise.
25462         * tests/unictype/test-categ_Zp.c: Likewise.
25463         * tests/unictype/test-categ_Zs.c: Likewise.
25464         * tests/unictype/test-ctype_alnum.c: Likewise.
25465         * tests/unictype/test-ctype_alpha.c: Likewise.
25466         * tests/unictype/test-ctype_blank.c: Likewise.
25467         * tests/unictype/test-ctype_cntrl.c: Likewise.
25468         * tests/unictype/test-ctype_digit.c: Likewise.
25469         * tests/unictype/test-ctype_graph.c: Likewise.
25470         * tests/unictype/test-ctype_lower.c: Likewise.
25471         * tests/unictype/test-ctype_print.c: Likewise.
25472         * tests/unictype/test-ctype_punct.c: Likewise.
25473         * tests/unictype/test-ctype_space.c: Likewise.
25474         * tests/unictype/test-ctype_upper.c: Likewise.
25475         * tests/unictype/test-ctype_xdigit.c: Likewise.
25476         * tests/unictype/test-decdigit.h: Likewise.
25477         * tests/unictype/test-digit.h: Likewise.
25478         * tests/unictype/test-numeric.h: Likewise.
25479         * tests/unictype/test-pr_alphabetic.c: Likewise.
25480         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
25481         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25482         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
25483         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
25484         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
25485         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
25486         * tests/unictype/test-pr_bidi_control.c: Likewise.
25487         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
25488         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
25489         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25490         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
25491         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25492         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25493         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25494         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25495         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
25496         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
25497         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
25498         * tests/unictype/test-pr_combining.c: Likewise.
25499         * tests/unictype/test-pr_composite.c: Likewise.
25500         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25501         * tests/unictype/test-pr_dash.c: Likewise.
25502         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25503         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
25504         * tests/unictype/test-pr_deprecated.c: Likewise.
25505         * tests/unictype/test-pr_diacritic.c: Likewise.
25506         * tests/unictype/test-pr_extender.c: Likewise.
25507         * tests/unictype/test-pr_format_control.c: Likewise.
25508         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25509         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25510         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25511         * tests/unictype/test-pr_hex_digit.c: Likewise.
25512         * tests/unictype/test-pr_hyphen.c: Likewise.
25513         * tests/unictype/test-pr_id_continue.c: Likewise.
25514         * tests/unictype/test-pr_id_start.c: Likewise.
25515         * tests/unictype/test-pr_ideographic.c: Likewise.
25516         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
25517         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
25518         * tests/unictype/test-pr_ignorable_control.c: Likewise.
25519         * tests/unictype/test-pr_iso_control.c: Likewise.
25520         * tests/unictype/test-pr_join_control.c: Likewise.
25521         * tests/unictype/test-pr_left_of_pair.c: Likewise.
25522         * tests/unictype/test-pr_line_separator.c: Likewise.
25523         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
25524         * tests/unictype/test-pr_lowercase.c: Likewise.
25525         * tests/unictype/test-pr_math.c: Likewise.
25526         * tests/unictype/test-pr_non_break.c: Likewise.
25527         * tests/unictype/test-pr_not_a_character.c: Likewise.
25528         * tests/unictype/test-pr_numeric.c: Likewise.
25529         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25530         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
25531         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
25532         * tests/unictype/test-pr_other_id_continue.c: Likewise.
25533         * tests/unictype/test-pr_other_id_start.c: Likewise.
25534         * tests/unictype/test-pr_other_lowercase.c: Likewise.
25535         * tests/unictype/test-pr_other_math.c: Likewise.
25536         * tests/unictype/test-pr_other_uppercase.c: Likewise.
25537         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
25538         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
25539         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
25540         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
25541         * tests/unictype/test-pr_private_use.c: Likewise.
25542         * tests/unictype/test-pr_punctuation.c: Likewise.
25543         * tests/unictype/test-pr_quotation_mark.c: Likewise.
25544         * tests/unictype/test-pr_radical.c: Likewise.
25545         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25546         * tests/unictype/test-pr_soft_dotted.c: Likewise.
25547         * tests/unictype/test-pr_space.c: Likewise.
25548         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25549         * tests/unictype/test-pr_titlecase.c: Likewise.
25550         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25551         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25552         * tests/unictype/test-pr_uppercase.c: Likewise.
25553         * tests/unictype/test-pr_variation_selector.c: Likewise.
25554         * tests/unictype/test-pr_white_space.c: Likewise.
25555         * tests/unictype/test-pr_xid_continue.c: Likewise.
25556         * tests/unictype/test-pr_xid_start.c: Likewise.
25557         * tests/unictype/test-pr_zero_width.c: Likewise.
25558         * tests/unictype/test-sy_c_whitespace.c: Likewise.
25559         * tests/unictype/test-sy_java_whitespace.c: Likewise.
25560
25561 2007-11-12  Bruno Haible  <bruno@clisp.org>
25562
25563         Unicode character classification functions.
25564         * lib/unictype.h: New file.
25565         * modules/unictype/base: New file.
25566         * modules/unictype/category-L: New file.
25567         * modules/unictype/category-Lu: New file.
25568         * modules/unictype/category-Ll: New file.
25569         * modules/unictype/category-Lt: New file.
25570         * modules/unictype/category-Lm: New file.
25571         * modules/unictype/category-Lo: New file.
25572         * modules/unictype/category-M: New file.
25573         * modules/unictype/category-Mn: New file.
25574         * modules/unictype/category-Mc: New file.
25575         * modules/unictype/category-Me: New file.
25576         * modules/unictype/category-N: New file.
25577         * modules/unictype/category-Nd: New file.
25578         * modules/unictype/category-Nl: New file.
25579         * modules/unictype/category-No: New file.
25580         * modules/unictype/category-P: New file.
25581         * modules/unictype/category-Pc: New file.
25582         * modules/unictype/category-Pd: New file.
25583         * modules/unictype/category-Ps: New file.
25584         * modules/unictype/category-Pe: New file.
25585         * modules/unictype/category-Pi: New file.
25586         * modules/unictype/category-Pf: New file.
25587         * modules/unictype/category-Po: New file.
25588         * modules/unictype/category-S: New file.
25589         * modules/unictype/category-Sm: New file.
25590         * modules/unictype/category-Sc: New file.
25591         * modules/unictype/category-Sk: New file.
25592         * modules/unictype/category-So: New file.
25593         * modules/unictype/category-Z: New file.
25594         * modules/unictype/category-Zs: New file.
25595         * modules/unictype/category-Zl: New file.
25596         * modules/unictype/category-Zp: New file.
25597         * modules/unictype/category-C: New file.
25598         * modules/unictype/category-Cc: New file.
25599         * modules/unictype/category-Cf: New file.
25600         * modules/unictype/category-Cs: New file.
25601         * modules/unictype/category-Co: New file.
25602         * modules/unictype/category-Cn: New file.
25603         * modules/unictype/category-or: New file.
25604         * modules/unictype/category-of: New file.
25605         * modules/unictype/category-test: New file.
25606         * modules/unictype/category-test-withtable: New file.
25607         * modules/unictype/category-byname: New file.
25608         * modules/unictype/category-none: New file.
25609         * modules/unictype/category-and: New file.
25610         * modules/unictype/category-and-not: New file.
25611         * modules/unictype/category-name: New file.
25612         * modules/unictype/combining-class: New file.
25613         * modules/unictype/category-all: New file.
25614         * modules/unictype/bidicategory-all: New file.
25615         * modules/unictype/bidicategory-byname: New file.
25616         * modules/unictype/bidicategory-name: New file.
25617         * modules/unictype/bidicategory-of: New file.
25618         * modules/unictype/bidicategory-test: New file.
25619         * modules/unictype/decimal-digit: New file.
25620         * modules/unictype/digit: New file.
25621         * modules/unictype/numeric: New file.
25622         * modules/unictype/mirror: New file.
25623         * modules/unictype/property-white-space: New file.
25624         * modules/unictype/property-alphabetic: New file.
25625         * modules/unictype/property-other-alphabetic: New file.
25626         * modules/unictype/property-not-a-character: New file.
25627         * modules/unictype/property-default-ignorable-code-point: New file.
25628         * modules/unictype/property-other-default-ignorable-code-point: New
25629         file.
25630         * modules/unictype/property-deprecated: New file.
25631         * modules/unictype/property-logical-order-exception: New file.
25632         * modules/unictype/property-variation-selector: New file.
25633         * modules/unictype/property-private-use: New file.
25634         * modules/unictype/property-unassigned-code-value: New file.
25635         * modules/unictype/property-uppercase: New file.
25636         * modules/unictype/property-other-uppercase: New file.
25637         * modules/unictype/property-lowercase: New file.
25638         * modules/unictype/property-other-lowercase: New file.
25639         * modules/unictype/property-titlecase: New file.
25640         * modules/unictype/property-soft-dotted: New file.
25641         * modules/unictype/property-id-start: New file.
25642         * modules/unictype/property-other-id-start: New file.
25643         * modules/unictype/property-id-continue: New file.
25644         * modules/unictype/property-other-id-continue: New file.
25645         * modules/unictype/property-xid-start: New file.
25646         * modules/unictype/property-xid-continue: New file.
25647         * modules/unictype/property-pattern-white-space: New file.
25648         * modules/unictype/property-pattern-syntax: New file.
25649         * modules/unictype/property-join-control: New file.
25650         * modules/unictype/property-grapheme-base: New file.
25651         * modules/unictype/property-grapheme-extend: New file.
25652         * modules/unictype/property-other-grapheme-extend: New file.
25653         * modules/unictype/property-grapheme-link: New file.
25654         * modules/unictype/property-bidi-control: New file.
25655         * modules/unictype/property-bidi-left-to-right: New file.
25656         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
25657         * modules/unictype/property-bidi-arabic-right-to-left: New file.
25658         * modules/unictype/property-bidi-european-digit: New file.
25659         * modules/unictype/property-bidi-eur-num-separator: New file.
25660         * modules/unictype/property-bidi-eur-num-terminator: New file.
25661         * modules/unictype/property-bidi-arabic-digit: New file.
25662         * modules/unictype/property-bidi-common-separator: New file.
25663         * modules/unictype/property-bidi-block-separator: New file.
25664         * modules/unictype/property-bidi-segment-separator: New file.
25665         * modules/unictype/property-bidi-whitespace: New file.
25666         * modules/unictype/property-bidi-non-spacing-mark: New file.
25667         * modules/unictype/property-bidi-boundary-neutral: New file.
25668         * modules/unictype/property-bidi-pdf: New file.
25669         * modules/unictype/property-bidi-embedding-or-override: New file.
25670         * modules/unictype/property-bidi-other-neutral: New file.
25671         * modules/unictype/property-hex-digit: New file.
25672         * modules/unictype/property-ascii-hex-digit: New file.
25673         * modules/unictype/property-ideographic: New file.
25674         * modules/unictype/property-unified-ideograph: New file.
25675         * modules/unictype/property-radical: New file.
25676         * modules/unictype/property-ids-binary-operator: New file.
25677         * modules/unictype/property-ids-trinary-operator: New file.
25678         * modules/unictype/property-zero-width: New file.
25679         * modules/unictype/property-space: New file.
25680         * modules/unictype/property-non-break: New file.
25681         * modules/unictype/property-iso-control: New file.
25682         * modules/unictype/property-format-control: New file.
25683         * modules/unictype/property-dash: New file.
25684         * modules/unictype/property-hyphen: New file.
25685         * modules/unictype/property-punctuation: New file.
25686         * modules/unictype/property-line-separator: New file.
25687         * modules/unictype/property-paragraph-separator: New file.
25688         * modules/unictype/property-quotation-mark: New file.
25689         * modules/unictype/property-sentence-terminal: New file.
25690         * modules/unictype/property-terminal-punctuation: New file.
25691         * modules/unictype/property-currency-symbol: New file.
25692         * modules/unictype/property-math: New file.
25693         * modules/unictype/property-other-math: New file.
25694         * modules/unictype/property-paired-punctuation: New file.
25695         * modules/unictype/property-left-of-pair: New file.
25696         * modules/unictype/property-combining: New file.
25697         * modules/unictype/property-composite: New file.
25698         * modules/unictype/property-decimal-digit: New file.
25699         * modules/unictype/property-numeric: New file.
25700         * modules/unictype/property-diacritic: New file.
25701         * modules/unictype/property-extender: New file.
25702         * modules/unictype/property-ignorable-control: New file.
25703         * modules/unictype/property-test: New file.
25704         * modules/unictype/property-byname: New file.
25705         * modules/unictype/property-all: New file.
25706         * modules/unictype/scripts: New file.
25707         * modules/unictype/scripts-all: New file.
25708         * modules/unictype/block-of: New file.
25709         * modules/unictype/block-test: New file.
25710         * modules/unictype/block-list: New file.
25711         * modules/unictype/block-all: New file.
25712         * modules/unictype/syntax-c-whitespace: New file.
25713         * modules/unictype/syntax-java-whitespace: New file.
25714         * modules/unictype/syntax-c-ident: New file.
25715         * modules/unictype/syntax-java-ident: New file.
25716         * modules/unictype/ctype-alnum: New file.
25717         * modules/unictype/ctype-alpha: New file.
25718         * modules/unictype/ctype-cntrl: New file.
25719         * modules/unictype/ctype-digit: New file.
25720         * modules/unictype/ctype-graph: New file.
25721         * modules/unictype/ctype-lower: New file.
25722         * modules/unictype/ctype-print: New file.
25723         * modules/unictype/ctype-punct: New file.
25724         * modules/unictype/ctype-space: New file.
25725         * modules/unictype/ctype-upper: New file.
25726         * modules/unictype/ctype-xdigit: New file.
25727         * modules/unictype/ctype-blank: New file.
25728         * lib/unictype/bidi_byname.c: New file.
25729         * lib/unictype/bidi_name.c: New file.
25730         * lib/unictype/bidi_of.c: New file.
25731         * lib/unictype/bidi_test.c: New file.
25732         * lib/unictype/bitmap.h: New file.
25733         * lib/unictype/block_test.c: New file.
25734         * lib/unictype/blocks.c: New file.
25735         * lib/unictype/categ_C.c: New file.
25736         * lib/unictype/categ_Cc.c: New file.
25737         * lib/unictype/categ_Cf.c: New file.
25738         * lib/unictype/categ_Cn.c: New file.
25739         * lib/unictype/categ_Co.c: New file.
25740         * lib/unictype/categ_Cs.c: New file.
25741         * lib/unictype/categ_L.c: New file.
25742         * lib/unictype/categ_Ll.c: New file.
25743         * lib/unictype/categ_Lm.c: New file.
25744         * lib/unictype/categ_Lo.c: New file.
25745         * lib/unictype/categ_Lt.c: New file.
25746         * lib/unictype/categ_Lu.c: New file.
25747         * lib/unictype/categ_M.c: New file.
25748         * lib/unictype/categ_Mc.c: New file.
25749         * lib/unictype/categ_Me.c: New file.
25750         * lib/unictype/categ_Mn.c: New file.
25751         * lib/unictype/categ_N.c: New file.
25752         * lib/unictype/categ_Nd.c: New file.
25753         * lib/unictype/categ_Nl.c: New file.
25754         * lib/unictype/categ_No.c: New file.
25755         * lib/unictype/categ_P.c: New file.
25756         * lib/unictype/categ_Pc.c: New file.
25757         * lib/unictype/categ_Pd.c: New file.
25758         * lib/unictype/categ_Pe.c: New file.
25759         * lib/unictype/categ_Pf.c: New file.
25760         * lib/unictype/categ_Pi.c: New file.
25761         * lib/unictype/categ_Po.c: New file.
25762         * lib/unictype/categ_Ps.c: New file.
25763         * lib/unictype/categ_S.c: New file.
25764         * lib/unictype/categ_Sc.c: New file.
25765         * lib/unictype/categ_Sk.c: New file.
25766         * lib/unictype/categ_Sm.c: New file.
25767         * lib/unictype/categ_So.c: New file.
25768         * lib/unictype/categ_Z.c: New file.
25769         * lib/unictype/categ_Zl.c: New file.
25770         * lib/unictype/categ_Zp.c: New file.
25771         * lib/unictype/categ_Zs.c: New file.
25772         * lib/unictype/categ_and.c: New file.
25773         * lib/unictype/categ_and_not.c: New file.
25774         * lib/unictype/categ_byname.c: New file.
25775         * lib/unictype/categ_name.c: New file.
25776         * lib/unictype/categ_none.c: New file.
25777         * lib/unictype/categ_of.c: New file.
25778         * lib/unictype/categ_or.c: New file.
25779         * lib/unictype/categ_test.c: New file.
25780         * lib/unictype/combining.c: New file.
25781         * lib/unictype/ctype_alnum.c: New file.
25782         * lib/unictype/ctype_alpha.c: New file.
25783         * lib/unictype/ctype_blank.c: New file.
25784         * lib/unictype/ctype_cntrl.c: New file.
25785         * lib/unictype/ctype_digit.c: New file.
25786         * lib/unictype/ctype_graph.c: New file.
25787         * lib/unictype/ctype_lower.c: New file.
25788         * lib/unictype/ctype_print.c: New file.
25789         * lib/unictype/ctype_punct.c: New file.
25790         * lib/unictype/ctype_space.c: New file.
25791         * lib/unictype/ctype_upper.c: New file.
25792         * lib/unictype/ctype_xdigit.c: New file.
25793         * lib/unictype/decdigit.c: New file.
25794         * lib/unictype/digit.c: New file.
25795         * lib/unictype/identsyntaxmap.h: New file.
25796         * lib/unictype/mirror.c: New file.
25797         * lib/unictype/numeric.c: New file.
25798         * lib/unictype/pr_alphabetic.c: New file.
25799         * lib/unictype/pr_ascii_hex_digit.c: New file.
25800         * lib/unictype/pr_bidi_arabic_digit.c: New file.
25801         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
25802         * lib/unictype/pr_bidi_block_separator.c: New file.
25803         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
25804         * lib/unictype/pr_bidi_common_separator.c: New file.
25805         * lib/unictype/pr_bidi_control.c: New file.
25806         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
25807         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
25808         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
25809         * lib/unictype/pr_bidi_european_digit.c: New file.
25810         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
25811         * lib/unictype/pr_bidi_left_to_right.c: New file.
25812         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
25813         * lib/unictype/pr_bidi_other_neutral.c: New file.
25814         * lib/unictype/pr_bidi_pdf.c: New file.
25815         * lib/unictype/pr_bidi_segment_separator.c: New file.
25816         * lib/unictype/pr_bidi_whitespace.c: New file.
25817         * lib/unictype/pr_byname.c: New file.
25818         * lib/unictype/pr_byname.gperf: New file.
25819         * lib/unictype/pr_combining.c: New file.
25820         * lib/unictype/pr_composite.c: New file.
25821         * lib/unictype/pr_currency_symbol.c: New file.
25822         * lib/unictype/pr_dash.c: New file.
25823         * lib/unictype/pr_decimal_digit.c: New file.
25824         * lib/unictype/pr_default_ignorable_code_point.c: New file.
25825         * lib/unictype/pr_deprecated.c: New file.
25826         * lib/unictype/pr_diacritic.c: New file.
25827         * lib/unictype/pr_extender.c: New file.
25828         * lib/unictype/pr_format_control.c: New file.
25829         * lib/unictype/pr_grapheme_base.c: New file.
25830         * lib/unictype/pr_grapheme_extend.c: New file.
25831         * lib/unictype/pr_grapheme_link.c: New file.
25832         * lib/unictype/pr_hex_digit.c: New file.
25833         * lib/unictype/pr_hyphen.c: New file.
25834         * lib/unictype/pr_id_continue.c: New file.
25835         * lib/unictype/pr_id_start.c: New file.
25836         * lib/unictype/pr_ideographic.c: New file.
25837         * lib/unictype/pr_ids_binary_operator.c: New file.
25838         * lib/unictype/pr_ids_trinary_operator.c: New file.
25839         * lib/unictype/pr_ignorable_control.c: New file.
25840         * lib/unictype/pr_iso_control.c: New file.
25841         * lib/unictype/pr_join_control.c: New file.
25842         * lib/unictype/pr_left_of_pair.c: New file.
25843         * lib/unictype/pr_line_separator.c: New file.
25844         * lib/unictype/pr_logical_order_exception.c: New file.
25845         * lib/unictype/pr_lowercase.c: New file.
25846         * lib/unictype/pr_math.c: New file.
25847         * lib/unictype/pr_non_break.c: New file.
25848         * lib/unictype/pr_not_a_character.c: New file.
25849         * lib/unictype/pr_numeric.c: New file.
25850         * lib/unictype/pr_other_alphabetic.c: New file.
25851         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
25852         * lib/unictype/pr_other_grapheme_extend.c: New file.
25853         * lib/unictype/pr_other_id_continue.c: New file.
25854         * lib/unictype/pr_other_id_start.c: New file.
25855         * lib/unictype/pr_other_lowercase.c: New file.
25856         * lib/unictype/pr_other_math.c: New file.
25857         * lib/unictype/pr_other_uppercase.c: New file.
25858         * lib/unictype/pr_paired_punctuation.c: New file.
25859         * lib/unictype/pr_paragraph_separator.c: New file.
25860         * lib/unictype/pr_pattern_syntax.c: New file.
25861         * lib/unictype/pr_pattern_white_space.c: New file.
25862         * lib/unictype/pr_private_use.c: New file.
25863         * lib/unictype/pr_punctuation.c: New file.
25864         * lib/unictype/pr_quotation_mark.c: New file.
25865         * lib/unictype/pr_radical.c: New file.
25866         * lib/unictype/pr_sentence_terminal.c: New file.
25867         * lib/unictype/pr_soft_dotted.c: New file.
25868         * lib/unictype/pr_space.c: New file.
25869         * lib/unictype/pr_terminal_punctuation.c: New file.
25870         * lib/unictype/pr_test.c: New file.
25871         * lib/unictype/pr_titlecase.c: New file.
25872         * lib/unictype/pr_unassigned_code_value.c: New file.
25873         * lib/unictype/pr_unified_ideograph.c: New file.
25874         * lib/unictype/pr_uppercase.c: New file.
25875         * lib/unictype/pr_variation_selector.c: New file.
25876         * lib/unictype/pr_white_space.c: New file.
25877         * lib/unictype/pr_xid_continue.c: New file.
25878         * lib/unictype/pr_xid_start.c: New file.
25879         * lib/unictype/pr_zero_width.c: New file.
25880         * lib/unictype/scripts.c: New file.
25881         * lib/unictype/sy_c_ident.c: New file.
25882         * lib/unictype/sy_c_whitespace.c: New file.
25883         * lib/unictype/sy_java_ident.c: New file.
25884         * lib/unictype/sy_java_whitespace.c: New file.
25885
25886         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
25887         Unicode 5.0.0.
25888         * lib/unictype/blocks.h: Likewise.
25889         * lib/unictype/categ_C.h: Likewise.
25890         * lib/unictype/categ_Cc.h: Likewise.
25891         * lib/unictype/categ_Cf.h: Likewise.
25892         * lib/unictype/categ_Cn.h: Likewise.
25893         * lib/unictype/categ_Co.h: Likewise.
25894         * lib/unictype/categ_Cs.h: Likewise.
25895         * lib/unictype/categ_L.h: Likewise.
25896         * lib/unictype/categ_Ll.h: Likewise.
25897         * lib/unictype/categ_Lm.h: Likewise.
25898         * lib/unictype/categ_Lo.h: Likewise.
25899         * lib/unictype/categ_Lt.h: Likewise.
25900         * lib/unictype/categ_Lu.h: Likewise.
25901         * lib/unictype/categ_M.h: Likewise.
25902         * lib/unictype/categ_Mc.h: Likewise.
25903         * lib/unictype/categ_Me.h: Likewise.
25904         * lib/unictype/categ_Mn.h: Likewise.
25905         * lib/unictype/categ_N.h: Likewise.
25906         * lib/unictype/categ_Nd.h: Likewise.
25907         * lib/unictype/categ_Nl.h: Likewise.
25908         * lib/unictype/categ_No.h: Likewise.
25909         * lib/unictype/categ_P.h: Likewise.
25910         * lib/unictype/categ_Pc.h: Likewise.
25911         * lib/unictype/categ_Pd.h: Likewise.
25912         * lib/unictype/categ_Pe.h: Likewise.
25913         * lib/unictype/categ_Pf.h: Likewise.
25914         * lib/unictype/categ_Pi.h: Likewise.
25915         * lib/unictype/categ_Po.h: Likewise.
25916         * lib/unictype/categ_Ps.h: Likewise.
25917         * lib/unictype/categ_S.h: Likewise.
25918         * lib/unictype/categ_Sc.h: Likewise.
25919         * lib/unictype/categ_Sk.h: Likewise.
25920         * lib/unictype/categ_Sm.h: Likewise.
25921         * lib/unictype/categ_So.h: Likewise.
25922         * lib/unictype/categ_Z.h: Likewise.
25923         * lib/unictype/categ_Zl.h: Likewise.
25924         * lib/unictype/categ_Zp.h: Likewise.
25925         * lib/unictype/categ_Zs.h: Likewise.
25926         * lib/unictype/categ_of.h: Likewise.
25927         * lib/unictype/combining.h: Likewise.
25928         * lib/unictype/ctype_alnum.h: Likewise.
25929         * lib/unictype/ctype_alpha.h: Likewise.
25930         * lib/unictype/ctype_blank.h: Likewise.
25931         * lib/unictype/ctype_cntrl.h: Likewise.
25932         * lib/unictype/ctype_digit.h: Likewise.
25933         * lib/unictype/ctype_graph.h: Likewise.
25934         * lib/unictype/ctype_lower.h: Likewise.
25935         * lib/unictype/ctype_print.h: Likewise.
25936         * lib/unictype/ctype_punct.h: Likewise.
25937         * lib/unictype/ctype_space.h: Likewise.
25938         * lib/unictype/ctype_upper.h: Likewise.
25939         * lib/unictype/ctype_xdigit.h: Likewise.
25940         * lib/unictype/decdigit.h: Likewise.
25941         * lib/unictype/digit.h: Likewise.
25942         * lib/unictype/mirror.h: Likewise.
25943         * lib/unictype/numeric.h: Likewise.
25944         * lib/unictype/pr_alphabetic.h: Likewise.
25945         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25946         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25947         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25948         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25949         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25950         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25951         * lib/unictype/pr_bidi_control.h: Likewise.
25952         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25953         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25954         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25955         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25956         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25957         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25958         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25959         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25960         * lib/unictype/pr_bidi_pdf.h: Likewise.
25961         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25962         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25963         * lib/unictype/pr_combining.h: Likewise.
25964         * lib/unictype/pr_composite.h: Likewise.
25965         * lib/unictype/pr_currency_symbol.h: Likewise.
25966         * lib/unictype/pr_dash.h: Likewise.
25967         * lib/unictype/pr_decimal_digit.h: Likewise.
25968         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25969         * lib/unictype/pr_deprecated.h: Likewise.
25970         * lib/unictype/pr_diacritic.h: Likewise.
25971         * lib/unictype/pr_extender.h: Likewise.
25972         * lib/unictype/pr_format_control.h: Likewise.
25973         * lib/unictype/pr_grapheme_base.h: Likewise.
25974         * lib/unictype/pr_grapheme_extend.h: Likewise.
25975         * lib/unictype/pr_grapheme_link.h: Likewise.
25976         * lib/unictype/pr_hex_digit.h: Likewise.
25977         * lib/unictype/pr_hyphen.h: Likewise.
25978         * lib/unictype/pr_id_continue.h: Likewise.
25979         * lib/unictype/pr_id_start.h: Likewise.
25980         * lib/unictype/pr_ideographic.h: Likewise.
25981         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25982         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25983         * lib/unictype/pr_ignorable_control.h: Likewise.
25984         * lib/unictype/pr_iso_control.h: Likewise.
25985         * lib/unictype/pr_join_control.h: Likewise.
25986         * lib/unictype/pr_left_of_pair.h: Likewise.
25987         * lib/unictype/pr_line_separator.h: Likewise.
25988         * lib/unictype/pr_logical_order_exception.h: Likewise.
25989         * lib/unictype/pr_lowercase.h: Likewise.
25990         * lib/unictype/pr_math.h: Likewise.
25991         * lib/unictype/pr_non_break.h: Likewise.
25992         * lib/unictype/pr_not_a_character.h: Likewise.
25993         * lib/unictype/pr_numeric.h: Likewise.
25994         * lib/unictype/pr_other_alphabetic.h: Likewise.
25995         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25996         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25997         * lib/unictype/pr_other_id_continue.h: Likewise.
25998         * lib/unictype/pr_other_id_start.h: Likewise.
25999         * lib/unictype/pr_other_lowercase.h: Likewise.
26000         * lib/unictype/pr_other_math.h: Likewise.
26001         * lib/unictype/pr_other_uppercase.h: Likewise.
26002         * lib/unictype/pr_paired_punctuation.h: Likewise.
26003         * lib/unictype/pr_paragraph_separator.h: Likewise.
26004         * lib/unictype/pr_pattern_syntax.h: Likewise.
26005         * lib/unictype/pr_pattern_white_space.h: Likewise.
26006         * lib/unictype/pr_private_use.h: Likewise.
26007         * lib/unictype/pr_punctuation.h: Likewise.
26008         * lib/unictype/pr_quotation_mark.h: Likewise.
26009         * lib/unictype/pr_radical.h: Likewise.
26010         * lib/unictype/pr_sentence_terminal.h: Likewise.
26011         * lib/unictype/pr_soft_dotted.h: Likewise.
26012         * lib/unictype/pr_space.h: Likewise.
26013         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26014         * lib/unictype/pr_titlecase.h: Likewise.
26015         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26016         * lib/unictype/pr_unified_ideograph.h: Likewise.
26017         * lib/unictype/pr_uppercase.h: Likewise.
26018         * lib/unictype/pr_variation_selector.h: Likewise.
26019         * lib/unictype/pr_white_space.h: Likewise.
26020         * lib/unictype/pr_xid_continue.h: Likewise.
26021         * lib/unictype/pr_xid_start.h: Likewise.
26022         * lib/unictype/pr_zero_width.h: Likewise.
26023         * lib/unictype/scripts.h: Likewise.
26024         * lib/unictype/scripts_byname.gperf: Likewise.
26025         * lib/unictype/sy_c_ident.h: Likewise.
26026         * lib/unictype/sy_c_whitespace.h: Likewise.
26027         * lib/unictype/sy_java_ident.h: Likewise.
26028         * lib/unictype/sy_java_whitespace.h: Likewise.
26029
26030         * lib/unictype/Makefile: New file.
26031         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
26032         glibc.
26033         * lib/unictype/3level.h: New file, copied from glibc.
26034         * lib/unictype/3levelbit.h: New file.
26035
26036 2007-11-11  Bruno Haible  <bruno@clisp.org>
26037
26038         * modules/gperf: New file.
26039         * modules/iconv_open (Depends-on): Add it.
26040         (Makefile.am): Remove the GPERF definition.
26041
26042 2007-11-11  Bruno Haible  <bruno@clisp.org>
26043
26044         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
26045         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
26046
26047 2007-11-11  Bruno Haible  <bruno@clisp.org>
26048
26049         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
26050         (usage): Remove function.
26051
26052 2007-11-11  Bruno Haible  <bruno@clisp.org>
26053
26054         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
26055         gl_FUNC_CEILF_LIBS.
26056         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
26057         gl_FUNC_CEIL_LIBS.
26058         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
26059         gl_FUNC_CEILL_LIBS.
26060         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
26061         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
26062         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
26063
26064 2007-11-11  Bruno Haible  <bruno@clisp.org>
26065
26066         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
26067         roundf were declared but do not exist on functions.
26068         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
26069         roundl were declared but do not exist on functions.
26070         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
26071         HAVE_FLOORL_AND_CEILL, respectively.
26072         Needed for Sun C on Solaris 10.
26073
26074 2007-11-11  Bruno Haible  <bruno@clisp.org>
26075
26076         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
26077         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
26078         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
26079         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
26080         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
26081         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
26082         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
26083         HAVE_DECL_ROUNDF.
26084         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
26085         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
26086         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
26087         of HAVE_DECL_ROUND*.
26088         * modules/math (Makefile.am): Update.
26089
26090 2007-11-10  Bruno Haible  <bruno@clisp.org>
26091
26092         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
26093         ptrdiff_t as m4/intl.m4.
26094
26095 2007-11-10  Jim Meyering  <meyering@redhat.com>
26096
26097         Avoid link failure for the argmatch test.
26098         * tests/test-argmatch.c (usage): Define function to avoid a link
26099         failure: argmatch_die requires a usage function.
26100
26101 2007-11-09  Bruno Haible  <bruno@clisp.org>
26102
26103         * doc/functions/snprintf.texi: Mention BeOS deficiency.
26104         * doc/functions/vsnprintf.texi: Likewise.
26105         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
26106         with a size argument < 2.
26107
26108 2007-11-09  Bruno Haible  <bruno@clisp.org>
26109
26110         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
26111         buffer. Fixes an inefficiency introduced on 2007-11-03.
26112
26113 2007-11-09  Bruno Haible  <bruno@clisp.org>
26114
26115         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
26116         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
26117
26118 2007-11-08  Jim Meyering  <meyering@redhat.com>
26119
26120         Change cache variable name prefix "jm_" to "gl_" everywhere.
26121         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
26122         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
26123         * m4/uptime.m4: s/gl_/jm_/
26124
26125 2007-11-07  Bruno Haible  <bruno@clisp.org>
26126
26127         Update to GNU gettext 0.17.
26128         * m4/intl.m4: Update to GNU gettext 0.17.
26129         * m4/po.m4: Likewise.
26130         * modules/gettext (Files): Remove m4/ulonglong.m4.
26131         (configure.ac): Require gettext infrastructure from version 0.17.
26132
26133 2007-11-06  Bruno Haible  <bruno@clisp.org>
26134
26135         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
26136         symbolic values are not defined in a public header.
26137         * lib/freadable.c (freadable) [QNX]: Likewise.
26138         * lib/freadahead.c (freadahead) [QNX]: Likewise.
26139         * lib/freading.c (freading) [QNX]: Likewise.
26140         * lib/fseterr.c (fseterr) [QNX]: Likewise.
26141         * lib/fwritable.c (fwritable) [QNX]: Likewise.
26142         * lib/fwriting.c (fwriting) [QNX]: Likewise.
26143         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
26144         Reported by Alain Magloire.
26145
26146         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
26147
26148 2007-11-05  Bruno Haible  <bruno@clisp.org>
26149
26150         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
26151         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
26152         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
26153         Reported by Eric Blake.
26154
26155 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26156             Bruno Haible  <bruno@clisp.org>
26157
26158         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
26159         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
26160         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
26161         (malloc): Undefine also before including <stdlib.h>.
26162         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
26163         Needed on OSF/1 4.0.
26164
26165 2007-11-05  Jim Meyering  <meyering@redhat.com>
26166
26167         git-version-gen: sync from coreutils.
26168         * build-aux/git-version-gen: Add comments.
26169         Change the first '-' to '.' in the snapshot version string,
26170         e.g., 6.9-377-08144 -> 6.9.377-08144
26171         Remove first parameter.
26172         Don't declare a version "-dirty" merely because a time
26173         stamp has changed.
26174
26175 2007-11-04  Bruno Haible  <bruno@clisp.org>
26176
26177         * lib/lock.h: Protect all macro definitions containing an 'if'
26178         statement through a "do { ... } while (0)".
26179         * lib/tls.h: Likewise.
26180
26181 2007-11-04  Bruno Haible  <bruno@clisp.org>
26182
26183         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
26184
26185 2007-11-04  Bruno Haible  <bruno@clisp.org>
26186
26187         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
26188         * modules/fprintf-posix (Depends-on): Add nocrash.
26189         * modules/snprintf-posix (Depends-on): Likewise.
26190         * modules/sprintf-posix (Depends-on): Likewise.
26191         * modules/vasnprintf-posix (Depends-on): Likewise.
26192         * modules/vasprintf-posix (Depends-on): Likewise.
26193         * modules/vfprintf-posix (Depends-on): Likewise.
26194         * modules/vsnprintf-posix (Depends-on): Likewise.
26195         * modules/vsprintf-posix (Depends-on): Likewise.
26196         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26197         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26198         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26199         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26200         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26201         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26202         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26203
26204 2007-11-04  Bruno Haible  <bruno@clisp.org>
26205
26206         * modules/nocrash: New file.
26207         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
26208         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
26209
26210 2007-11-04  Bruno Haible  <bruno@clisp.org>
26211
26212         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
26213         precision handling.
26214         * tests/test-vasprintf-posix.c (test_function): Likewise.
26215         * tests/test-snprintf-posix.h (test_function): Likewise.
26216         * tests/test-sprintf-posix.h (test_function): Likewise.
26217
26218         Fix *printf behaviour for large precisions on mingw and BeOS.
26219         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
26220         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
26221         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
26222         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26223         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26224         gl_PRINTF_PRECISION and test its result. Invoke
26225         gl_PREREQ_VASNPRINTF_PRECISION.
26226         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26227         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26228         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26229         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26230         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26231         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26232         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26233         * doc/functions/fprintf.texi: Update.
26234         * doc/functions/printf.texi: Update.
26235         * doc/functions/snprintf.texi: Update.
26236         * doc/functions/sprintf.texi: Update.
26237         * doc/functions/vfprintf.texi: Update.
26238         * doc/functions/vprintf.texi: Update.
26239         * doc/functions/vsnprintf.texi: Update.
26240         * doc/functions/vsprintf.texi: Update.
26241
26242 2007-11-04  Bruno Haible  <bruno@clisp.org>
26243
26244         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
26245
26246 2007-11-04  Bruno Haible  <bruno@clisp.org>
26247
26248         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
26249         Reported by Sylvain Beucler <beuc@gnu.org>.
26250
26251 2007-11-03  Bruno Haible  <bruno@clisp.org>
26252
26253         * tests/test-fprintf-posix2.sh: New file.
26254         * tests/test-fprintf-posix2.c: New file.
26255         * modules/fprintf-posix-tests (Files): Add them.
26256         (TESTS): Add test-fprintf-posix2.sh.
26257         (configure.ac): Check for getrlimit and setrlimit.
26258         (check_PROGRAMS): Add test-fprintf-posix2.
26259
26260         * tests/test-printf-posix2.sh: New file.
26261         * tests/test-printf-posix2.c: New file.
26262         * modules/printf-posix-tests (Files): Add them.
26263         (TESTS): Add test-printf-posix2.sh.
26264         (configure.ac): Check for getrlimit and setrlimit.
26265         (check_PROGRAMS): Add test-printf-posix2.
26266
26267         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
26268         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
26269         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
26270         (decode_double): New function, copied from decode_long_double.
26271         (scale10_round_decimal_decoded): New function, extracted from
26272         scale10_round_decimal_long_double.
26273         (scale10_round_decimal_long_double): Use it.
26274         (scale10_round_decimal_double): New function.
26275         (floorlog10): New function.
26276         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
26277         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
26278         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26279         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26280         gl_PRINTF_ENOMEM and test its result. Invoke
26281         gl_PREREQ_VASNPRINTF_ENOMEM.
26282         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26283         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26284         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26285         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26286         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26287         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26288         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26289         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
26290         * modules/snprintf-posix (Depends-on): Likewise.
26291         * modules/sprintf-posix (Depends-on): Likewise.
26292         * modules/vasnprintf-posix (Depends-on): Likewise.
26293         * modules/vasprintf-posix (Depends-on): Likewise.
26294         * modules/vfprintf-posix (Depends-on): Likewise.
26295         * modules/vsnprintf-posix (Depends-on): Likewise.
26296         * modules/vsprintf-posix (Depends-on): Likewise.
26297         * doc/functions/fprintf.texi: Update.
26298         * doc/functions/printf.texi: Update.
26299         * doc/functions/snprintf.texi: Update.
26300         * doc/functions/sprintf.texi: Update.
26301         * doc/functions/vfprintf.texi: Update.
26302         * doc/functions/vprintf.texi: Update.
26303         * doc/functions/vsnprintf.texi: Update.
26304         * doc/functions/vsprintf.texi: Update.
26305
26306 2007-11-03  Bruno Haible  <bruno@clisp.org>
26307
26308         * modules/frexp-nolibm-tests: New file.
26309
26310         * modules/frexp-nolibm: New file.
26311         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
26312
26313 2007-11-03  Bruno Haible  <bruno@clisp.org>
26314
26315         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
26316         value is C99 compliant.
26317         Needed for OSF/1 5.1.
26318
26319 2007-11-03  Bruno Haible  <bruno@clisp.org>
26320
26321         Fix out-of-memory handling of vasnprintf.
26322         * lib/printf-parse.c: Include <errno.h>.
26323         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
26324         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
26325         is already set.
26326
26327 2007-11-02  Eric Blake  <ebb9@byu.net>
26328
26329         Fix tests on cygwin.
26330         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
26331
26332 2007-11-01  Bruno Haible  <bruno@clisp.org>
26333
26334         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
26335         warning.
26336         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
26337         needed for POSIX compatibility.
26338
26339 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
26340
26341         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
26342         for compatibility with GNU.
26343
26344 2007-11-01  Bruno Haible  <bruno@clisp.org>
26345
26346         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
26347         (putenv): Renamed from rpl_putenv. Change argument type from
26348         'const char *' to 'char *'.
26349         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
26350         of defining putenv in config.h, just set REPLACE_PUTENV.
26351         * modules/putenv (Depends-on): Add stdlib.
26352         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26353         (Include): Use <stdlib.h>.
26354         * lib/stdlib.in.h (putenv): New declaration.
26355         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
26356         REPLACE_PUTENV.
26357         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
26358         REPLACE_PUTENV.
26359         Needed for MacOS X 10.5.0.
26360         Reported by Peter O'Gorman <peter@pogma.com>.
26361
26362 2007-11-01  Jim Meyering  <meyering@redhat.com>
26363
26364         Treat an empty date string exactly like "0".
26365         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
26366         if the remaining date string (to be parsed) is empty, use "0".
26367         Reported by Mischa Molhoek and discussed in this thread:
26368         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
26369
26370 2007-10-31  Bruno Haible  <bruno@clisp.org>
26371
26372         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
26373         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
26374         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
26375         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
26376         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
26377         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
26378
26379 2007-10-31  Bruno Haible  <bruno@clisp.org>
26380
26381         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
26382         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
26383         (AC_TYPE_LONG_LONG_INT): Use it.
26384         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
26385         it as well.
26386         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
26387         to m4/longlong.m4.
26388         * modules/stdint (Files): Remove m4/ulonglong.m4.
26389         * modules/strtoull (Files): Use m4/longlong.m4 instead of
26390         m4/ulonglong.m4.
26391         * modules/strtoumax (Files): Likewise.
26392
26393 2007-10-30  Bruno Haible  <bruno@clisp.org>
26394
26395         * modules/xvasprintf-posix: New file.
26396         Suggested by Eric Blake.
26397
26398 2007-10-30  Bruno Haible  <bruno@clisp.org>
26399
26400         * modules/xprintf-posix-tests: New file.
26401         * tests/test-xprintf-posix.sh: New file.
26402         * tests/test-xprintf-posix.c: New file.
26403         * tests/test-xfprintf-posix.c: New file.
26404
26405         * modules/xprintf-posix: New file.
26406
26407 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26408
26409         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
26410         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
26411         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
26412
26413 2007-10-29  Bruno Haible  <bruno@clisp.org>
26414
26415         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
26416         contain the special marker '_cv_'.
26417         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26418         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26419         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26420         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26421         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26422         Reported by Ralf Wildenhues.
26423
26424 2007-10-29  Bruno Haible  <bruno@clisp.org>
26425
26426         * gnulib-tool (func_import): When --lgpl is not specified, set
26427         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
26428         GPLv3.
26429         Reported by Simon Josefsson.
26430
26431 2007-10-28  Bruno Haible  <bruno@clisp.org>
26432
26433         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
26434         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
26435         HAVE_DECL_ISFINITE.
26436         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
26437         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
26438         HAVE_DECL_ISFINITE.
26439
26440 2007-10-28  Bruno Haible  <bruno@clisp.org>
26441
26442         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
26443         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
26444
26445 2007-10-28  Bruno Haible  <bruno@clisp.org>
26446
26447         Fix link errors with Sun C 5.0 on Solaris 10.
26448         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
26449         function is declared but not present in the compiler's libm.
26450         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
26451         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
26452         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
26453         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
26454         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
26455         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
26456         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
26457         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
26458         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
26459         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
26460         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
26461         HAVE_DECL_FLOORL.
26462
26463 2007-10-28  Bruno Haible  <bruno@clisp.org>
26464
26465         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
26466         gl_FUNC_FLOORL. Cache the result.
26467         (gl_FUNC_FLOORL): Use it.
26468         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
26469         gl_FUNC_CEILL. Cache the result.
26470         (gl_FUNC_CEILL): Use it.
26471
26472         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
26473         gl_FUNC_FLOOR. Cache the result.
26474         (gl_FUNC_FLOOR): Use it.
26475         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
26476         gl_FUNC_CEIL. Cache the result.
26477         (gl_FUNC_CEIL): Use it.
26478
26479         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
26480         gl_FUNC_FLOORF. Cache the result.
26481         (gl_FUNC_FLOORF): Use it.
26482         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
26483         gl_FUNC_CEILF. Cache the result.
26484         (gl_FUNC_CEILF): Use it.
26485
26486 2007-10-28  Bruno Haible  <bruno@clisp.org>
26487
26488         * gnulib-tool: Allow specifying the LGPL version number through
26489         --lgpl=2 or --lgpl=3.
26490         (func_usage): Document --lgpl with argument.
26491         Handle --lgpl=... arguments.
26492         (func_import): Recognize also gl_LGPL calls with an argument. When
26493         --lgpl=2 is used and the module's license is just LGPL, report an
26494         error. Set sed_transform_lib_file according to the lgpl variable. In
26495         the generated files, use --lgpl or gl_LGPL invocations with argument,
26496         if necessary.
26497         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
26498         an LGPv2+ license.
26499         * doc/gnulib-tool.texi (Modified imports): Update explanation of
26500         gl_LGPL macro.
26501
26502 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26503             Bruno Haible  <bruno@clisp.org>
26504
26505         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
26506         (u16_uctomb_aux): Likewise.
26507         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
26508         !HAVE_INLINE.
26509         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
26510
26511 2007-10-28  Bruno Haible  <bruno@clisp.org>
26512
26513         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
26514         Invoke AM_GETTEXT_OPTION if it exists.
26515         * modules/vasprintf: Likewise.
26516         * modules/verror: Likewise.
26517         * modules/xprintf: Likewise.
26518         * modules/xvasprintf: Likewise.
26519
26520 2007-10-27  Ben Pfaff  <blp@gnu.org>
26521
26522         * lib/math.in.h: Define isfinite macro and prototypes for
26523         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
26524         implementations.
26525         * m4/math_h.m4: New substitutions for isfinite module.
26526         * lib/isfinite.c: New file.
26527         * m4/isfinite.m4: New file.
26528         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
26529         * modules/isfinite: New file.
26530         * modules/isfinite-tests: New file.
26531         * tests/tests-isfinite.c: New file.
26532         * doc/functions/isfinite.texi: Mention isfinite module.
26533         * MODULES.html.sh: Mention new module.
26534
26535 2007-10-27  Ben Pfaff  <blp@gnu.org>
26536
26537         Ralf Wildenhues reported that Tru64 4.0D declares the round
26538         functions but does not have definitions.
26539         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
26540         cannot be found in any library, set the output variable to
26541         "missing" instead of "".
26542         * m4/round.m4: Also use our substitute if we cannot find round in
26543         any library, even if it is declared.
26544         * m4/roundf.m4: Likewise for roundf.
26545         * m4/roundl.m4: Likewise for roundl.
26546         * lib/math.in.h: Undefine roundf, round, roundl before defining
26547         their replacements, to allow for hypothetical systems where these
26548         may be defined as macros but not available in libraries.
26549
26550 2007-10-27  Bruno Haible  <bruno@clisp.org>
26551
26552         * doc/gnulib.texi: Invoke @firstparagraphindent.
26553         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
26554         changes in gnulib.
26555         (Source changes): New section.
26556
26557 2007-10-26  Bruno Haible  <bruno@clisp.org>
26558
26559         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
26560         borrowed from autoconf.
26561
26562 2007-10-26  Bruno Haible  <bruno@clisp.org>
26563
26564         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
26565         strerror returned the empty string. Needed on HP-UX 11.00.
26566
26567 2007-10-24  Micah Cowan  <micah@cowan.name>
26568
26569         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
26570         * build-aux/bootstrap: Remove support for now-unnecessary option,
26571         --cvs-user, and envvars CVS_USER, CVS_RSH.
26572
26573 2007-10-24  Jim Meyering  <meyering@redhat.com>
26574
26575         Avoid diagnostics from sha1sum when there is no cached checksum.
26576         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
26577         if the po.s1 file hasn't been created yet.
26578
26579         * build-aux/bootstrap: Sync from coreutils:
26580         2007-10-24  Jim Meyering  <meyering@redhat.com>
26581         Get gnulib from the git repository, not from an obsolete cvs one.
26582         * build-aux/bootstrap: Suggestion from Micah Cowan.
26583         2007-10-04  Jim Meyering  <jim@meyering.net>
26584         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
26585         (update_po_files): Work also when there are no .po files in po/.
26586
26587 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
26588
26589         * README: Append ".git" to git and cg examples.
26590         Problem reported by Benoit Sigoure.
26591
26592 2007-10-23  Micah Cowan  <micah@cowan.name>
26593
26594         * users.txt: Add wget.
26595
26596 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26597
26598         Fix linking of some unistdio tests on FreeBSD.
26599         * modules/unistdio/u16-vsnprintf-tests
26600         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
26601         * modules/unistdio/u16-vsprintf-tests
26602         (test_u16_vsnprintf1_LDADD): Likewise.
26603         * modules/unistdio/u32-vsnprintf-tests
26604         (test_u32_vsnprintf1_LDADD): Likewise.
26605         * modules/unistdio/u32-vsprintf-tests
26606         (test_u32_vsprintf1_LDADD): Likewise.
26607         * modules/unistdio/u8-vsnprintf-tests
26608         (test_u8_vsnprintf1_LDADD): Likewise.
26609         * modules/unistdio/u8-vsprintf-tests
26610         (test_u8_vsprintf1_LDADD): Likewise.
26611         * modules/unistdio/ulc-vsnprintf-tests
26612         (test_ulc_vsnprintf1_LDADD): Likewise.
26613         * modules/unistdio/ulc-vsprintf-tests
26614         (test_ulc_vsprintf1_LDADD): Likewise.
26615
26616         Fix linking of some uniconv tests on FreeBSD.
26617         * modules/uniconv/u16-conv-from-enc-tests
26618         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
26619         * modules/uniconv/u16-conv-to-enc-tests
26620         (test_u16_conv_to_enc_LDADD): Likewise.
26621         * modules/uniconv/u16-strconv-from-enc-tests
26622         (test_u16_strconv_from_enc_LDADD): Likewise.
26623         * modules/uniconv/u16-strconv-to-enc-tests
26624         (test_u16_strconv_to_enc_LDADD): Likewise.
26625         * modules/uniconv/u32-conv-from-enc-tests
26626         (test_u32_conv_from_enc_LDADD): Likewise.
26627         * modules/uniconv/u32-conv-to-enc-tests
26628         (test_u32_conv_to_enc_LDADD): Likewise.
26629         * modules/uniconv/u32-strconv-from-enc-tests
26630         (test_u32_strconv_from_enc_LDADD): Likewise.
26631         * modules/uniconv/u32-strconv-to-enc-tests
26632         (test_u32_strconv_to_enc_LDADD): Likewise.
26633         * modules/uniconv/u8-conv-from-enc-tests
26634         (test_u8_conv_from_enc_LDADD): Likewise.
26635         * modules/uniconv/u8-conv-to-enc-tests
26636         (test_u8_conv_to_enc_LDADD): Likewise.
26637         * modules/uniconv/u8-strconv-from-enc-tests
26638         (test_u8_strconv_from_enc_LDADD): Likewise.
26639         * modules/uniconv/u8-strconv-to-enc-tests
26640         (test_u8_strconv_to_enc_LDADD): Likewise.
26641
26642 2007-10-22  Bruno Haible  <bruno@clisp.org>
26643
26644         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
26645         size.
26646
26647 2007-10-22  Eric Blake  <ebb9@byu.net>
26648
26649         Tweak x*printf documentation.
26650         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
26651         variable name and comments.
26652         Suggested by Bruno Haible.
26653
26654 2007-10-22  Bruno Haible  <bruno@clisp.org>
26655
26656         * lib/acl.c (copy_acl): Fix file name in comment.
26657
26658 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
26659
26660         Fix Tru64 problem with stdbool.h.
26661         * lib/stdbool.in.h (false, true):
26662         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
26663         Don't declare as an enum in this situation; it runs afoul of Tru64.
26664         Problem reported by Steven M. Schweda in
26665         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
26666
26667 2007-10-22  Eric Blake  <ebb9@byu.net>
26668
26669         Also wrap vf?printf.
26670         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
26671         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
26672         (xvprintf, xvfprintf): New functions.
26673
26674 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26675
26676         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
26677         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
26678
26679         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
26680         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
26681
26682 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
26683
26684         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
26685         by Bruno Haible.
26686
26687 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26688
26689         * lib/getloadavg.c
26690         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
26691         Undef `sys' after including sys/table.h, for Tru64 4.0D.
26692
26693         * tests/test-i-ring.c: Work for C89.
26694
26695 2007-10-22  Bruno Haible  <bruno@clisp.org>
26696
26697         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
26698         -1u, in preprocessor expression, so that we don't test for the bug
26699         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
26700         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
26701
26702 2007-10-22  Eric Blake  <ebb9@byu.net>
26703
26704         * tests/test-yesno.sh: Silence stderr during test.
26705
26706 2007-10-22  Simon Josefsson  <simon@josefsson.org>
26707
26708         * modules/crypto/gc-camellia: New file.
26709
26710         * m4/gc-camellia.m4: New file.
26711
26712         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
26713
26714         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
26715
26716 2007-10-22  Simon Josefsson  <simon@josefsson.org>
26717
26718         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
26719         --help to stdout.  Reported by sms@antinode.org (Steven
26720         M. Schweda).
26721
26722 2007-10-22  Simon Josefsson  <simon@josefsson.org>
26723
26724         * users.txt: Fix link to libksba.
26725
26726 2007-10-21  Ben Pfaff  <blp@gnu.org>
26727
26728         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
26729         round.c roundf implementation that depends on floorf and ceilf to
26730         be tested unconditionally.
26731
26732 2007-10-21  Ben Pfaff  <blp@gnu.org>
26733
26734         * m4/check-libm-func.m4: Removed.
26735         * m4/check-math-lib.m4: New file.
26736         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
26737         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
26738         definition and lack of AC_LIBOBJ([roundf]).
26739         * m4/roundl.m4: Ditto, and similarly for roundl.
26740         * modules/round: Reference new m4 file.
26741         * modules/roundf: Ditto.
26742         * modules/roundl: Ditto.
26743         * tests/test-round2.c (main): Use ROUND instead of round.
26744         Bug report from Bruno Haible.
26745
26746 2007-10-21  Bruno Haible  <bruno@clisp.org>
26747
26748         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
26749         context.
26750
26751 2007-10-21  Bruno Haible  <bruno@clisp.org>
26752
26753         * tests/test-wcwidth.c (main): Allow negative result for some control
26754         characters.
26755
26756         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
26757         Needed on OSF/1 5.1.
26758
26759 2007-10-21  Bruno Haible  <bruno@clisp.org>
26760
26761         * tests/test-floorf1.c: Include isnanf.h.
26762         (main): Use isnanf() instead of isnan().
26763         * tests/test-ceilf1.c: Include isnanf.h.
26764         (main): Use isnanf() instead of isnan().
26765         * tests/test-truncf1.c: Include isnanf.h.
26766         (main): Use isnanf() instead of isnan().
26767         * tests/test-roundf1.c: Include isnanf.h.
26768         (main): Use isnanf() instead of isnan().
26769
26770 2007-10-21  Eric Blake  <ebb9@byu.net>
26771
26772         * users.txt: Update URL for m4.
26773
26774 2007-10-21  Bruno Haible  <bruno@clisp.org>
26775
26776         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
26777
26778 2007-10-21  Bruno Haible  <bruno@clisp.org>
26779
26780         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
26781         Git's management files if the CVS files are not present.
26782
26783 2007-10-20  Bruno Haible  <bruno@clisp.org>
26784
26785         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
26786         gcc-3.4.x.
26787
26788 2007-10-20  Ben Pfaff  <blp@gnu.org>
26789
26790         * lib/math.in.h: Declare round, roundf, roundl if we are providing
26791         implementations.
26792         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
26793         * lib/round.c: New file.
26794         * lib/roundf.c: New file.
26795         * lib/roundl.c: New file.
26796         * m4/round.m4: New file.
26797         * m4/roundf.m4: New file.
26798         * m4/roundl.m4: New file.
26799         * m4/check-libm-func-m4: New file.
26800         * modules/math: Replace round, roundf, roundl related @VARS@ in
26801         math.in.h.
26802         * modules/round: New file.
26803         * modules/round-tests: New file.
26804         * modules/roundf: New file.
26805         * modules/roundf-tests: New file.
26806         * modules/roundl: New file.
26807         * modules/roundl-tests: New file.
26808         * tests/test-round1.c: New file.
26809         * tests/test-round2.c: New file.
26810         * tests/test-roundf1.c: New file.
26811         * tests/test-roundf2.c: New file.
26812         * tests/test-roundl.c: New file.
26813         * doc/functions/round.texi: Mention round module.
26814         * doc/functions/roundf.texi: Mention roundf module.
26815         * doc/functions/roundl.texi: Mention roundl module.
26816         * MODULES.html.sh: Mention new modules.
26817         Thanks to Bruno Haible for suggestions.
26818
26819 2007-10-20  Jim Meyering  <meyering@redhat.com>
26820
26821         * lib/xprintf.c: Include <config.h> unconditionally.
26822
26823         Change xprintf's license to GPL.
26824         * modules/xprintf (License): s/LGPL/GPL/, since this module
26825         depends on modules (exit and exitfail) which are GPL.
26826         Suggestion from Bruno Haible.
26827
26828         xprintf fixes.
26829         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
26830         Use a clearer diagnostic.
26831         Patch from Bruno Haible.
26832
26833 2007-10-20  Bruno Haible  <bruno@clisp.org>
26834
26835         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
26836         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
26837         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26838
26839 2007-10-20  Bruno Haible  <bruno@clisp.org>
26840
26841         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
26842         precision in the comparison result > x - 1 or similar.
26843         * tests/test-ceilf2.c (correct_result_p): Likewise.
26844         * tests/test-truncf2.c (correct_result_p): Likewise.
26845         * tests/test-trunc2.c (correct_result_p): Likewise.
26846         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26847
26848 2007-10-20  Bruno Haible  <bruno@clisp.org>
26849
26850         * modules/ceil: New file.
26851         * m4/ceil.m4: New file.
26852         * doc/functions/ceil.texi: Mention the 'ceil' module.
26853
26854 2007-10-20  Bruno Haible  <bruno@clisp.org>
26855
26856         * modules/floor: New file.
26857         * m4/floor.m4: New file.
26858         * doc/functions/floor.texi: Mention the 'floor' module.
26859
26860 2007-10-20  Bruno Haible  <bruno@clisp.org>
26861
26862         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
26863         of %a.
26864         * modules/floorf-tests (Depends-on): Likewise.
26865         * modules/truncf-tests (Depends-on): Likewise.
26866         * modules/trunc-tests (Depends-on): Likewise.
26867         Reported by Ben Pfaff.
26868
26869 2007-10-19  Jim Meyering  <meyering@redhat.com>
26870
26871         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
26872         Don't bother testing specific errno values.  Just test ferror.
26873
26874         New module: xprintf
26875         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
26876
26877 2007-10-19  Bruno Haible  <bruno@clisp.org>
26878
26879         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
26880         syntax.
26881         * modules/javaexec (Makefile.am): Likewise.
26882         * modules/relocatable-prog (Makefile.am): Likewise.
26883         Suggested by Jim Meyering.
26884
26885 2007-10-18  Bruno Haible  <bruno@clisp.org>
26886
26887         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
26888         Reported by Jim Meyering.
26889
26890 2007-10-18  Eric Blake  <ebb9@byu.net>
26891
26892         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
26893
26894 2007-10-18  Bruno Haible  <bruno@clisp.org>
26895
26896         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
26897         the format string into writable memory. Needed in Fortify conditions.
26898
26899 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
26900             Bruno Haible  <bruno@clisp.org>
26901
26902         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
26903         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
26904         * modules/trim (Depends-on): Add mbchar.
26905         (configure.ac): Add gl_FUNC_MBRTOWC.
26906         (Makefile.am): Augment lib_SOURCES.
26907
26908 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
26909
26910         Modify glob.c to use fstatat and dirfd, to simplify it.
26911         Suggested by Eric Blake.
26912         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
26913         Don't include <stdbool.h>; not used.
26914         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
26915         (link_exists_p): Simplify implementation, since we can now assume
26916         dirfd and fstatat.
26917         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
26918
26919 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26920
26921         * gnulib-tool (func_get_dependencies): Fix sed script to
26922         match only tests.
26923
26924 2007-10-17  Bruno Haible  <bruno@clisp.org>
26925
26926         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
26927         allow locale names without encoding suffix.
26928         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
26929         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26930
26931 2007-10-16  Bruno Haible  <bruno@clisp.org>
26932
26933         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
26934         * lib/getgroups.c (getgroups): Likewise.
26935         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
26936
26937 2007-10-16  Bruno Haible  <bruno@clisp.org>
26938
26939         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
26940         * modules/malloc-posix (License): Likewise.
26941         * modules/realloc-posix (License): Likewise.
26942         * modules/calloc-posix (License): Likewise.
26943         * modules/intprops (License): Change from GPL to LGPL, with
26944         Paul Eggert's approval.
26945
26946 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
26947
26948         Merge glibc changes into lib/glob.c.
26949
26950         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
26951         2007-10-15 04:59:03 UTC.  Here are the changes:
26952
26953         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
26954
26955         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
26956
26957         * lib/glob.c: Add some branch prediction throughout.
26958
26959         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
26960
26961         [BZ #5103]
26962         * lib/glob.c (glob): Recognize patterns starting \/.
26963
26964         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
26965
26966         [BZ #3996]
26967         * lib/glob.c (attribute_hidden): Define if not defined.
26968         (glob): Unescape dirname, filename or username when needed and not
26969         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
26970         is NULL.  Handle unescaped [ in pattern without closing ].
26971         Don't pass GLOB_CHECK down to recursive glob for directories.
26972         (__glob_pattern_type): New function.
26973         (__glob_pattern_p): Implement using __glob_pattern_type.
26974         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
26975         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
26976         Remove unreachable code.
26977
26978         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
26979
26980         * lib/glob.c (glob_in_dir): Add some comments and asserts to
26981         explain why there are no leaks.
26982
26983         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
26984
26985         [BZ #3253]
26986         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
26987         time, rather allocate increasingly bigger arrays of pointers, if
26988         possible with alloca, if too large with malloc.
26989
26990 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
26991
26992         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
26993         Problem reported by H.Merijn Brand in
26994         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
26995         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
26996         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
26997
26998 2007-10-15  Bruno Haible  <bruno@clisp.org>
26999
27000         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
27001         with explicit rpl_ prefix.
27002         * lib/fopen.c (fopen): Likewise.
27003         * lib/freopen.c (freopen): Likewise.
27004         * lib/iconv.c (iconv): Likewise.
27005         * lib/iconv_close.c (iconv_close): Likewise.
27006
27007 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27008
27009         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
27010
27011 2007-10-15  Bruno Haible  <bruno@clisp.org>
27012
27013         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
27014         <stddef.h> instead of <stdlib.h> since we only need NULL.
27015         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27016
27017 2007-10-15  Bruno Haible  <bruno@clisp.org>
27018
27019         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
27020         Replace paragraph talking about LIBOBJS.
27021         Reported by Colin Watson <cjwatson@debian.org>.
27022
27023 2007-10-15  Bruno Haible  <bruno@clisp.org>
27024
27025         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
27026         <stdlib.h> before using NULL.
27027
27028 2007-10-15  Simon Josefsson  <simon@josefsson.org>
27029
27030         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
27031         Reported by Albert Chin <china@thewrittenword.com>.
27032
27033 2007-10-14  Bruno Haible  <bruno@clisp.org>
27034
27035         * modules/iconv_open-utf-tests: New file.
27036         * tests/test-iconv-utf.c: New file.
27037
27038         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
27039         * modules/iconv_open-utf: New file.
27040         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
27041         (iconv, iconv_close): New declarations.
27042         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
27043         be defined.
27044         (iconv_open): Add special handling of conversion between UTF-8 and
27045         UTF-{16,32}{BE,LE}.
27046         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
27047         * lib/iconv_close.c: New file.
27048         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
27049         gl_FUNC_ICONV_OPEN.
27050         (gl_FUNC_ICONV_OPEN): Use it.
27051         (gl_FUNC_ICONV_OPEN_UTF): New macro.
27052         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
27053         and REPLACE_ICONV_UTF.
27054         * modules/iconv_open (Depends-on): Add c-strcase.
27055         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
27056         ICONV_CONST.
27057         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
27058
27059 2007-10-13  Albert Chin  <china@thewrittenword.com>
27060             Bruno Haible  <bruno@clisp.org>
27061
27062         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
27063         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
27064
27065 2007-10-13  Bruno Haible  <bruno@clisp.org>
27066
27067         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
27068         defined, use the ISO C99 inline semantics.
27069         * lib/argp.h (ARGP_EI): Likewise.
27070
27071 2007-10-13  Bruno Haible  <bruno@clisp.org>
27072
27073         Handle 'inline' change in gcc 4.3.0.
27074         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
27075         argp_fmtstream_write, argp_fmtstream_set_lmargin,
27076         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
27077         argp_fmtstream_point): Disable 'extern' declaration if the function
27078         definition is going to be provided inline.
27079         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
27080         semantics, not the ISO C99 inline semantics.
27081         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
27082         'extern' declaration if the function definition is going to be provided
27083         inline.
27084         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
27085         the GNU C inline semantics, not the ISO C99 inline semantics. With
27086         GCC 4.2, avoid a warning.
27087
27088 2007-10-13  Bruno Haible  <bruno@clisp.org>
27089
27090         * lib/freading.h (freading): Enable the use of __freading for
27091         glibc >= 2.7.
27092         * lib/freading.c (freading): Likewise.
27093
27094 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
27095
27096         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
27097         "warning: C99 inline functions are not supported; using GNU89".
27098
27099 2007-10-12  Bruno Haible  <bruno@clisp.org>
27100
27101         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
27102         of 2.
27103         * tests/test-ceilf2.c: New file.
27104         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
27105
27106         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
27107         * modules/ceilf-tests: Update.
27108
27109 2007-10-12  Bruno Haible  <bruno@clisp.org>
27110
27111         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
27112         of 2.
27113         * tests/test-floorf2.c: New file.
27114         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
27115
27116         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
27117         * modules/floorf-tests: Update.
27118
27119 2007-10-12  Bruno Haible  <bruno@clisp.org>
27120
27121         * tests/test-trunc2.c: New file.
27122         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
27123
27124         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
27125         * modules/trunc-tests: Update.
27126
27127 2007-10-12  Bruno Haible  <bruno@clisp.org>
27128
27129         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
27130         of 2.
27131         * tests/test-truncf2.c: New file.
27132         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
27133
27134         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
27135         * modules/truncf-tests: Update.
27136
27137 2007-10-11  Eric Blake  <ebb9@byu.net>
27138
27139         Don't claim strerror is broken on Interix.
27140         * doc/functions/strerror.texi (strerror): Known broken systems are
27141         now Solaris 8, and not Interix.
27142         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
27143         Interix on cross-compile.
27144         Reported by Martin Koeppe in
27145         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
27146
27147 2007-10-11  Bruno Haible  <bruno@clisp.org>
27148
27149         * modules/i-ring-tests: New file.
27150         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
27151         instead of assert.
27152
27153 2007-10-11  Bruno Haible  <bruno@clisp.org>
27154
27155         * modules/filenamecat-tests: New file.
27156         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
27157         * lib/filenamecat.c: Remove test code.
27158
27159 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
27160
27161         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
27162
27163         * lib/strerror.c: Include <string.h> always, to test interface,
27164         and to remove the need for the dummy.
27165         Include intprops.h to compute width instead of doing it ourselves
27166         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
27167         (strerror): Define it to return NULL if there's no system strerror.
27168         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
27169         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
27170         ancient pre-strerror Unix systems well any more.  Saying "unknown
27171         system error" is enough.
27172         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
27173         simpler strerror.c implementation.
27174         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
27175         Simplify the tests to reflect the simpler strerror implementation.
27176         * modules/strerror (Depends-on): Add intprops.
27177
27178 2007-10-09  Eric Blake  <ebb9@byu.net>
27179
27180         Silence test-fpending.
27181         * modules/fpending-tests (Files): Add wrapper script.
27182         * tests/test-fpending.sh: New file.
27183
27184 2007-10-09  Bruno Haible  <bruno@clisp.org>
27185
27186         * MODULES.html.sh (func_module): Don't create a hyperlink for
27187         function names like 'printf_frexp'.
27188         (Misc): Add crc, memxor.
27189         (Characteristics of floating types): New section.
27190         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
27191         isnanf-nolibm, signbit, trunc, truncf, truncl.
27192         (Enhancements for ISO C 99 functions): New subsection Input/output.
27193         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
27194         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
27195         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
27196         (Compatibility checks for POSIX:2001 functions): Add clock-time.
27197         (Enhancements for POSIX:2001 functions): Add chdir-long.
27198         (File system functions): Add areadlink, chdir-safer, read-file.
27199         Remove cycle-check.
27200         (File system as inode set): New section.
27201         (Date and time): Add gethrxtime.
27202         (Multithreading): Add openmp.
27203         (Internationalization functions): Add localename.
27204         (Unicode string functions): Add unistr/u*-mbsnlen.
27205         (Support for maintaining and releasing projects): Add git-version-gen.
27206         (Lone files): Remove directories.
27207
27208 2007-10-08  Ben Pfaff  <blp@gnu.org>
27209
27210         * lib/xmalloca.h: Fix typo in comment.
27211
27212 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
27213
27214         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
27215         when avoiding problems with integer overflow.  Use a portable test
27216         instead.
27217
27218 2007-10-08  Simon Josefsson  <simon@josefsson.org>
27219
27220         * modules/dummy (License): Change to LGPLv2+.
27221         * modules/float (License): Likewise
27222         * modules/realloc (License): Likewise
27223         * modules/stdlib (License): Likewise
27224
27225 2007-10-07  Bruno Haible  <bruno@clisp.org>
27226
27227         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
27228         * floor.c (TWO_MANT_DIG): Likewise.
27229         * ceil.c (TWO_MANT_DIG): Likewise.
27230         Reported by Ben Pfaff.
27231
27232 2007-10-07  Bruno Haible  <bruno@clisp.org>
27233
27234         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
27235         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
27236         * lib/frexp.c (FUNC): Likewise.
27237         * lib/printf-frexp.h (printf_frexp): Likewise.
27238         * lib/printf-frexpl.h (printf_frexpl): Likewise.
27239         * lib/printf-frexp.c (FUNC): Likewise.
27240         Suggested by Jim Meyering.
27241
27242 2007-10-07  Jim Meyering  <meyering@redhat.com>
27243
27244         Make xnanosleep's integer overflow test more robust.
27245         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
27246         so that gcc-4.3.0 doesn't optimize away this test for overflow.
27247
27248 2007-10-07  Bruno Haible  <bruno@clisp.org>
27249
27250         * NEWS: Mention the license change.
27251
27252         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
27253         abbreviations in the modules files.
27254
27255         Change copyright notice from GPLv2+ to GPLv3+.
27256         * README: Change copyright notice.
27257         * MODULES.html.sh: Likewise.
27258         * build-aux/bootstrap.conf: Likewise.
27259         * build-aux/config.libpath: Likewise.
27260         * build-aux/csharpcomp.sh.in: Likewise.
27261         * build-aux/csharpexec.sh.in: Likewise.
27262         * build-aux/install-reloc: Likewise.
27263         * build-aux/javacomp.sh.in: Likewise.
27264         * build-aux/javaexec.sh.in: Likewise.
27265         * build-aux/ldd.sh.in: Likewise.
27266         * build-aux/reloc-ldflags: Likewise.
27267         * build-aux/relocatable.sh.in: Likewise.
27268         * build-aux/x-to-1.in: Likewise.
27269         * check-module: Likewise.
27270         * config/srclistvars.sh: Likewise.
27271         * gnulib-tool: Likewise.
27272         * lib/acl-internal.h: Likewise.
27273         * lib/acl.c: Likewise.
27274         * lib/acl.h: Likewise.
27275         * lib/acl_entries.c: Likewise.
27276         * lib/areadlink-with-size.c: Likewise.
27277         * lib/areadlink.c: Likewise.
27278         * lib/areadlink.h: Likewise.
27279         * lib/argmatch.c: Likewise.
27280         * lib/argmatch.h: Likewise.
27281         * lib/argp-ba.c: Likewise.
27282         * lib/argp-eexst.c: Likewise.
27283         * lib/argp-fmtstream.c: Likewise.
27284         * lib/argp-fmtstream.h: Likewise.
27285         * lib/argp-fs-xinl.c: Likewise.
27286         * lib/argp-help.c: Likewise.
27287         * lib/argp-namefrob.h: Likewise.
27288         * lib/argp-parse.c: Likewise.
27289         * lib/argp-pin.c: Likewise.
27290         * lib/argp-pv.c: Likewise.
27291         * lib/argp-pvh.c: Likewise.
27292         * lib/argp-xinl.c: Likewise.
27293         * lib/argp.h: Likewise.
27294         * lib/at-func.c: Likewise.
27295         * lib/atanl.c: Likewise.
27296         * lib/backupfile.c: Likewise.
27297         * lib/backupfile.h: Likewise.
27298         * lib/basename.c: Likewise.
27299         * lib/binary-io.h: Likewise.
27300         * lib/byteswap.in.h: Likewise.
27301         * lib/c-stack.c: Likewise.
27302         * lib/c-stack.h: Likewise.
27303         * lib/c-strcasestr.c: Likewise.
27304         * lib/c-strcasestr.h: Likewise.
27305         * lib/c-strstr.c: Likewise.
27306         * lib/c-strstr.h: Likewise.
27307         * lib/c-strtod.c: Likewise.
27308         * lib/calloc.c: Likewise.
27309         * lib/canon-host.c: Likewise.
27310         * lib/canon-host.h: Likewise.
27311         * lib/canonicalize-lgpl.c: Likewise.
27312         * lib/canonicalize.c: Likewise.
27313         * lib/canonicalize.h: Likewise.
27314         * lib/ceil.c: Likewise.
27315         * lib/ceilf.c: Likewise.
27316         * lib/ceill.c: Likewise.
27317         * lib/chdir-long.c: Likewise.
27318         * lib/chdir-long.h: Likewise.
27319         * lib/chdir-safer.c: Likewise.
27320         * lib/chdir-safer.h: Likewise.
27321         * lib/chown.c: Likewise.
27322         * lib/classpath.c: Likewise.
27323         * lib/classpath.h: Likewise.
27324         * lib/clean-temp.c: Likewise.
27325         * lib/clean-temp.h: Likewise.
27326         * lib/cloexec.c: Likewise.
27327         * lib/close-stream.c: Likewise.
27328         * lib/closein.c: Likewise.
27329         * lib/closein.h: Likewise.
27330         * lib/closeout.c: Likewise.
27331         * lib/closeout.h: Likewise.
27332         * lib/concat-filename.c: Likewise.
27333         * lib/copy-file.c: Likewise.
27334         * lib/copy-file.h: Likewise.
27335         * lib/count-one-bits.h: Likewise.
27336         * lib/crc.c: Likewise.
27337         * lib/crc.h: Likewise.
27338         * lib/creat-safer.c: Likewise.
27339         * lib/csharpcomp.c: Likewise.
27340         * lib/csharpcomp.h: Likewise.
27341         * lib/csharpexec.c: Likewise.
27342         * lib/csharpexec.h: Likewise.
27343         * lib/cycle-check.c: Likewise.
27344         * lib/cycle-check.h: Likewise.
27345         * lib/diacrit.c: Likewise.
27346         * lib/diacrit.h: Likewise.
27347         * lib/diffseq.h: Likewise.
27348         * lib/dirchownmod.c: Likewise.
27349         * lib/dirent.in.h: Likewise.
27350         * lib/dirfd.c: Likewise.
27351         * lib/dirfd.h: Likewise.
27352         * lib/dirname.c: Likewise.
27353         * lib/dirname.h: Likewise.
27354         * lib/dummy.c: Likewise.
27355         * lib/dup-safer.c: Likewise.
27356         * lib/dup2.c: Likewise.
27357         * lib/eealloc.h: Likewise.
27358         * lib/error.c: Likewise.
27359         * lib/error.h: Likewise.
27360         * lib/euidaccess.c: Likewise.
27361         * lib/exclude.c: Likewise.
27362         * lib/exclude.h: Likewise.
27363         * lib/execute.c: Likewise.
27364         * lib/execute.h: Likewise.
27365         * lib/exitfail.c: Likewise.
27366         * lib/exitfail.h: Likewise.
27367         * lib/expl.c: Likewise.
27368         * lib/fatal-signal.c: Likewise.
27369         * lib/fatal-signal.h: Likewise.
27370         * lib/fbufmode.c: Likewise.
27371         * lib/fbufmode.h: Likewise.
27372         * lib/fchdir.c: Likewise.
27373         * lib/fchmodat.c: Likewise.
27374         * lib/fchownat.c: Likewise.
27375         * lib/fcntl--.h: Likewise.
27376         * lib/fcntl-safer.h: Likewise.
27377         * lib/fcntl.in.h: Likewise.
27378         * lib/fd-safer.c: Likewise.
27379         * lib/fflush.c: Likewise.
27380         * lib/file-has-acl.c: Likewise.
27381         * lib/file-set.c: Likewise.
27382         * lib/file-type.c: Likewise.
27383         * lib/file-type.h: Likewise.
27384         * lib/fileblocks.c: Likewise.
27385         * lib/filemode.c: Likewise.
27386         * lib/filemode.h: Likewise.
27387         * lib/filename.h: Likewise.
27388         * lib/filenamecat.c: Likewise.
27389         * lib/filenamecat.h: Likewise.
27390         * lib/findprog.c: Likewise.
27391         * lib/findprog.h: Likewise.
27392         * lib/float.in.h: Likewise.
27393         * lib/floor.c: Likewise.
27394         * lib/floorf.c: Likewise.
27395         * lib/floorl.c: Likewise.
27396         * lib/fopen-safer.c: Likewise.
27397         * lib/fopen.c: Likewise.
27398         * lib/fpending.c: Likewise.
27399         * lib/fpending.h: Likewise.
27400         * lib/fprintf.c: Likewise.
27401         * lib/fprintftime.h: Likewise.
27402         * lib/fpucw.h: Likewise.
27403         * lib/fpurge.c: Likewise.
27404         * lib/fpurge.h: Likewise.
27405         * lib/freadable.c: Likewise.
27406         * lib/freadable.h: Likewise.
27407         * lib/freadahead.c: Likewise.
27408         * lib/freadahead.h: Likewise.
27409         * lib/freading.c: Likewise.
27410         * lib/freading.h: Likewise.
27411         * lib/free.c: Likewise.
27412         * lib/freopen.c: Likewise.
27413         * lib/frexp.c: Likewise.
27414         * lib/frexpl.c: Likewise.
27415         * lib/fseek.c: Likewise.
27416         * lib/fseterr.c: Likewise.
27417         * lib/fseterr.h: Likewise.
27418         * lib/fstatat.c: Likewise.
27419         * lib/fstrcmp.c: Likewise.
27420         * lib/fstrcmp.h: Likewise.
27421         * lib/fsusage.c: Likewise.
27422         * lib/fsusage.h: Likewise.
27423         * lib/ftell.c: Likewise.
27424         * lib/ftello.c: Likewise.
27425         * lib/fts-cycle.c: Likewise.
27426         * lib/fts.c: Likewise.
27427         * lib/fts_.h: Likewise.
27428         * lib/full-read.c: Likewise.
27429         * lib/full-read.h: Likewise.
27430         * lib/full-write.c: Likewise.
27431         * lib/full-write.h: Likewise.
27432         * lib/fwritable.c: Likewise.
27433         * lib/fwritable.h: Likewise.
27434         * lib/fwriteerror.c: Likewise.
27435         * lib/fwriteerror.h: Likewise.
27436         * lib/fwriting.c: Likewise.
27437         * lib/fwriting.h: Likewise.
27438         * lib/gcd.c: Likewise.
27439         * lib/gcd.h: Likewise.
27440         * lib/getcwd.c: Likewise.
27441         * lib/getdate.h: Likewise.
27442         * lib/getdate.y: Likewise.
27443         * lib/getdomainname.c: Likewise.
27444         * lib/getdomainname.h: Likewise.
27445         * lib/getgroups.c: Likewise.
27446         * lib/gethostname.c: Likewise.
27447         * lib/gethrxtime.c: Likewise.
27448         * lib/gethrxtime.h: Likewise.
27449         * lib/getloadavg.c: Likewise.
27450         * lib/getndelim2.c: Likewise.
27451         * lib/getndelim2.h: Likewise.
27452         * lib/getnline.c: Likewise.
27453         * lib/getnline.h: Likewise.
27454         * lib/getopt.c: Likewise.
27455         * lib/getopt.in.h: Likewise.
27456         * lib/getopt1.c: Likewise.
27457         * lib/getopt_int.h: Likewise.
27458         * lib/getpagesize.h: Likewise.
27459         * lib/getsubopt.c: Likewise.
27460         * lib/gettime.c: Likewise.
27461         * lib/getugroups.c: Likewise.
27462         * lib/getugroups.h: Likewise.
27463         * lib/getusershell.c: Likewise.
27464         * lib/gl_anyavltree_list1.h: Likewise.
27465         * lib/gl_anyavltree_list2.h: Likewise.
27466         * lib/gl_anyhash_list1.h: Likewise.
27467         * lib/gl_anyhash_list2.h: Likewise.
27468         * lib/gl_anylinked_list1.h: Likewise.
27469         * lib/gl_anylinked_list2.h: Likewise.
27470         * lib/gl_anyrbtree_list1.h: Likewise.
27471         * lib/gl_anyrbtree_list2.h: Likewise.
27472         * lib/gl_anytree_list1.h: Likewise.
27473         * lib/gl_anytree_list2.h: Likewise.
27474         * lib/gl_anytree_oset.h: Likewise.
27475         * lib/gl_anytreehash_list1.h: Likewise.
27476         * lib/gl_anytreehash_list2.h: Likewise.
27477         * lib/gl_array_list.c: Likewise.
27478         * lib/gl_array_list.h: Likewise.
27479         * lib/gl_array_oset.c: Likewise.
27480         * lib/gl_array_oset.h: Likewise.
27481         * lib/gl_avltree_list.c: Likewise.
27482         * lib/gl_avltree_list.h: Likewise.
27483         * lib/gl_avltree_oset.c: Likewise.
27484         * lib/gl_avltree_oset.h: Likewise.
27485         * lib/gl_avltreehash_list.c: Likewise.
27486         * lib/gl_avltreehash_list.h: Likewise.
27487         * lib/gl_carray_list.c: Likewise.
27488         * lib/gl_carray_list.h: Likewise.
27489         * lib/gl_linked_list.c: Likewise.
27490         * lib/gl_linked_list.h: Likewise.
27491         * lib/gl_linkedhash_list.c: Likewise.
27492         * lib/gl_linkedhash_list.h: Likewise.
27493         * lib/gl_list.c: Likewise.
27494         * lib/gl_list.h: Likewise.
27495         * lib/gl_oset.c: Likewise.
27496         * lib/gl_oset.h: Likewise.
27497         * lib/gl_rbtree_list.c: Likewise.
27498         * lib/gl_rbtree_list.h: Likewise.
27499         * lib/gl_rbtree_oset.c: Likewise.
27500         * lib/gl_rbtree_oset.h: Likewise.
27501         * lib/gl_rbtreehash_list.c: Likewise.
27502         * lib/gl_rbtreehash_list.h: Likewise.
27503         * lib/gl_sublist.c: Likewise.
27504         * lib/gl_sublist.h: Likewise.
27505         * lib/group-member.c: Likewise.
27506         * lib/group-member.h: Likewise.
27507         * lib/hard-locale.c: Likewise.
27508         * lib/hard-locale.h: Likewise.
27509         * lib/hash-pjw.c: Likewise.
27510         * lib/hash-pjw.h: Likewise.
27511         * lib/hash-triple.c: Likewise.
27512         * lib/hash.c: Likewise.
27513         * lib/hash.h: Likewise.
27514         * lib/human.c: Likewise.
27515         * lib/human.h: Likewise.
27516         * lib/i-ring.c: Likewise.
27517         * lib/i-ring.h: Likewise.
27518         * lib/idcache.c: Likewise.
27519         * lib/imaxabs.c: Likewise.
27520         * lib/imaxdiv.c: Likewise.
27521         * lib/inet_pton.c: Likewise.
27522         * lib/inet_pton.h: Likewise.
27523         * lib/intprops.h: Likewise.
27524         * lib/inttostr.c: Likewise.
27525         * lib/inttostr.h: Likewise.
27526         * lib/inttypes.in.h: Likewise.
27527         * lib/isapipe.c: Likewise.
27528         * lib/isdir.c: Likewise.
27529         * lib/isnan.c: Likewise.
27530         * lib/isnan.h: Likewise.
27531         * lib/isnanf.c: Likewise.
27532         * lib/isnanf.h: Likewise.
27533         * lib/isnanl-nolibm.h: Likewise.
27534         * lib/isnanl.c: Likewise.
27535         * lib/isnanl.h: Likewise.
27536         * lib/javacomp.c: Likewise.
27537         * lib/javacomp.h: Likewise.
27538         * lib/javaexec.c: Likewise.
27539         * lib/javaexec.h: Likewise.
27540         * lib/javaversion.c: Likewise.
27541         * lib/javaversion.h: Likewise.
27542         * lib/javaversion.java: Likewise.
27543         * lib/lbrkprop.h: Likewise.
27544         * lib/lchmod.h: Likewise.
27545         * lib/lchown.c: Likewise.
27546         * lib/ldexpl.c: Likewise.
27547         * lib/linebreak.c: Likewise.
27548         * lib/linebreak.h: Likewise.
27549         * lib/linebuffer.c: Likewise.
27550         * lib/linebuffer.h: Likewise.
27551         * lib/locale.in.h: Likewise.
27552         * lib/logl.c: Likewise.
27553         * lib/long-options.c: Likewise.
27554         * lib/long-options.h: Likewise.
27555         * lib/lstat.c: Likewise.
27556         * lib/lstat.h: Likewise.
27557         * lib/math.in.h: Likewise.
27558         * lib/mbchar.c: Likewise.
27559         * lib/mbchar.h: Likewise.
27560         * lib/mbfile.h: Likewise.
27561         * lib/mbiter.h: Likewise.
27562         * lib/mbscasecmp.c: Likewise.
27563         * lib/mbscasestr.c: Likewise.
27564         * lib/mbschr.c: Likewise.
27565         * lib/mbscspn.c: Likewise.
27566         * lib/mbslen.c: Likewise.
27567         * lib/mbsncasecmp.c: Likewise.
27568         * lib/mbsnlen.c: Likewise.
27569         * lib/mbspbrk.c: Likewise.
27570         * lib/mbspcasecmp.c: Likewise.
27571         * lib/mbsrchr.c: Likewise.
27572         * lib/mbssep.c: Likewise.
27573         * lib/mbsspn.c: Likewise.
27574         * lib/mbsstr.c: Likewise.
27575         * lib/mbstok_r.c: Likewise.
27576         * lib/mbswidth.c: Likewise.
27577         * lib/mbswidth.h: Likewise.
27578         * lib/mbuiter.h: Likewise.
27579         * lib/memcasecmp.c: Likewise.
27580         * lib/memcasecmp.h: Likewise.
27581         * lib/memchr.c: Likewise.
27582         * lib/memcmp.c: Likewise.
27583         * lib/memcoll.c: Likewise.
27584         * lib/memcoll.h: Likewise.
27585         * lib/memcpy.c: Likewise.
27586         * lib/memrchr.c: Likewise.
27587         * lib/mkancesdirs.c: Likewise.
27588         * lib/mkdir-p.c: Likewise.
27589         * lib/mkdir-p.h: Likewise.
27590         * lib/mkdir.c: Likewise.
27591         * lib/mkdirat.c: Likewise.
27592         * lib/mkdtemp.c: Likewise.
27593         * lib/mkstemp-safer.c: Likewise.
27594         * lib/mkstemp.c: Likewise.
27595         * lib/modechange.c: Likewise.
27596         * lib/modechange.h: Likewise.
27597         * lib/mountlist.c: Likewise.
27598         * lib/mountlist.h: Likewise.
27599         * lib/mpsort.c: Likewise.
27600         * lib/nanosleep.c: Likewise.
27601         * lib/obstack.c: Likewise.
27602         * lib/obstack.h: Likewise.
27603         * lib/open-safer.c: Likewise.
27604         * lib/open.c: Likewise.
27605         * lib/openat-die.c: Likewise.
27606         * lib/openat-priv.h: Likewise.
27607         * lib/openat-proc.c: Likewise.
27608         * lib/openat.c: Likewise.
27609         * lib/openat.h: Likewise.
27610         * lib/pagealign_alloc.c: Likewise.
27611         * lib/pagealign_alloc.h: Likewise.
27612         * lib/physmem.c: Likewise.
27613         * lib/physmem.h: Likewise.
27614         * lib/pipe-safer.c: Likewise.
27615         * lib/pipe.c: Likewise.
27616         * lib/pipe.h: Likewise.
27617         * lib/posixtm.c: Likewise.
27618         * lib/posixtm.h: Likewise.
27619         * lib/posixver.c: Likewise.
27620         * lib/printf-frexp.c: Likewise.
27621         * lib/printf-frexp.h: Likewise.
27622         * lib/printf-frexpl.c: Likewise.
27623         * lib/printf-frexpl.h: Likewise.
27624         * lib/printf.c: Likewise.
27625         * lib/progname.c: Likewise.
27626         * lib/progname.h: Likewise.
27627         * lib/progreloc.c: Likewise.
27628         * lib/putenv.c: Likewise.
27629         * lib/quote.c: Likewise.
27630         * lib/quote.h: Likewise.
27631         * lib/quotearg.c: Likewise.
27632         * lib/quotearg.h: Likewise.
27633         * lib/raise.c: Likewise.
27634         * lib/readline.c: Likewise.
27635         * lib/readline.h: Likewise.
27636         * lib/readlink.c: Likewise.
27637         * lib/readtokens.c: Likewise.
27638         * lib/readtokens.h: Likewise.
27639         * lib/readtokens0.c: Likewise.
27640         * lib/readtokens0.h: Likewise.
27641         * lib/readutmp.c: Likewise.
27642         * lib/readutmp.h: Likewise.
27643         * lib/realloc.c: Likewise.
27644         * lib/relocwrapper.c: Likewise.
27645         * lib/rename-dest-slash.c: Likewise.
27646         * lib/rename.c: Likewise.
27647         * lib/rmdir.c: Likewise.
27648         * lib/rpmatch.c: Likewise.
27649         * lib/safe-read.c: Likewise.
27650         * lib/safe-read.h: Likewise.
27651         * lib/safe-write.c: Likewise.
27652         * lib/safe-write.h: Likewise.
27653         * lib/same-inode.h: Likewise.
27654         * lib/same.c: Likewise.
27655         * lib/same.h: Likewise.
27656         * lib/save-cwd.c: Likewise.
27657         * lib/save-cwd.h: Likewise.
27658         * lib/savedir.c: Likewise.
27659         * lib/savedir.h: Likewise.
27660         * lib/savewd.c: Likewise.
27661         * lib/savewd.h: Likewise.
27662         * lib/search.in.h: Likewise.
27663         * lib/setenv.c: Likewise.
27664         * lib/setenv.h: Likewise.
27665         * lib/settime.c: Likewise.
27666         * lib/sh-quote.c: Likewise.
27667         * lib/sh-quote.h: Likewise.
27668         * lib/sig2str.c: Likewise.
27669         * lib/sig2str.h: Likewise.
27670         * lib/signal.in.h: Likewise.
27671         * lib/signbitd.c: Likewise.
27672         * lib/signbitf.c: Likewise.
27673         * lib/signbitl.c: Likewise.
27674         * lib/sigprocmask.c: Likewise.
27675         * lib/sincosl.c: Likewise.
27676         * lib/sleep.c: Likewise.
27677         * lib/sprintf.c: Likewise.
27678         * lib/sqrtl.c: Likewise.
27679         * lib/stat-time.h: Likewise.
27680         * lib/stdio--.h: Likewise.
27681         * lib/stdio-safer.h: Likewise.
27682         * lib/stdlib--.h: Likewise.
27683         * lib/stdlib-safer.h: Likewise.
27684         * lib/stdlib.in.h: Likewise.
27685         * lib/stpcpy.c: Likewise.
27686         * lib/stpncpy.c: Likewise.
27687         * lib/strchrnul.c: Likewise.
27688         * lib/strcspn.c: Likewise.
27689         * lib/strerror.c: Likewise.
27690         * lib/strftime.c: Likewise.
27691         * lib/strftime.h: Likewise.
27692         * lib/striconveh.c: Likewise.
27693         * lib/striconveh.h: Likewise.
27694         * lib/striconveha.c: Likewise.
27695         * lib/striconveha.h: Likewise.
27696         * lib/stripslash.c: Likewise.
27697         * lib/strnlen1.c: Likewise.
27698         * lib/strnlen1.h: Likewise.
27699         * lib/strtod.c: Likewise.
27700         * lib/strtoimax.c: Likewise.
27701         * lib/strtok_r.c: Likewise.
27702         * lib/strtol.c: Likewise.
27703         * lib/strtoll.c: Likewise.
27704         * lib/strtoul.c: Likewise.
27705         * lib/strtoull.c: Likewise.
27706         * lib/sysexits.in.h: Likewise.
27707         * lib/tempname.c: Likewise.
27708         * lib/tempname.h: Likewise.
27709         * lib/timespec.h: Likewise.
27710         * lib/tls.c: Likewise.
27711         * lib/tls.h: Likewise.
27712         * lib/tmpdir.c: Likewise.
27713         * lib/tmpdir.h: Likewise.
27714         * lib/tmpfile-safer.c: Likewise.
27715         * lib/tmpfile.c: Likewise.
27716         * lib/trigl.c: Likewise.
27717         * lib/trigl.h: Likewise.
27718         * lib/trim.c: Likewise.
27719         * lib/trim.h: Likewise.
27720         * lib/trunc.c: Likewise.
27721         * lib/truncf.c: Likewise.
27722         * lib/truncl.c: Likewise.
27723         * lib/tsearch.c: Likewise.
27724         * lib/unicodeio.c: Likewise.
27725         * lib/unicodeio.h: Likewise.
27726         * lib/unistd--.h: Likewise.
27727         * lib/unistd-safer.h: Likewise.
27728         * lib/unistdio/ulc-fprintf.c: Likewise.
27729         * lib/unistdio/ulc-vfprintf.c: Likewise.
27730         * lib/unlinkdir.c: Likewise.
27731         * lib/unlinkdir.h: Likewise.
27732         * lib/unlocked-io.h: Likewise.
27733         * lib/unsetenv.c: Likewise.
27734         * lib/userspec.c: Likewise.
27735         * lib/utime.c: Likewise.
27736         * lib/utimecmp.c: Likewise.
27737         * lib/utimecmp.h: Likewise.
27738         * lib/utimens.c: Likewise.
27739         * lib/verify.h: Likewise.
27740         * lib/verror.c: Likewise.
27741         * lib/verror.h: Likewise.
27742         * lib/version-etc-fsf.c: Likewise.
27743         * lib/version-etc.c: Likewise.
27744         * lib/version-etc.h: Likewise.
27745         * lib/vfprintf.c: Likewise.
27746         * lib/vprintf.c: Likewise.
27747         * lib/vsprintf.c: Likewise.
27748         * lib/w32spawn.h: Likewise.
27749         * lib/wait-process.c: Likewise.
27750         * lib/wait-process.h: Likewise.
27751         * lib/wcwidth.c: Likewise.
27752         * lib/write-any-file.c: Likewise.
27753         * lib/xalloc-die.c: Likewise.
27754         * lib/xalloc.h: Likewise.
27755         * lib/xasprintf.c: Likewise.
27756         * lib/xgetcwd.c: Likewise.
27757         * lib/xgetcwd.h: Likewise.
27758         * lib/xgetdomainname.c: Likewise.
27759         * lib/xgetdomainname.h: Likewise.
27760         * lib/xgethostname.c: Likewise.
27761         * lib/xmalloc.c: Likewise.
27762         * lib/xmalloca.c: Likewise.
27763         * lib/xmalloca.h: Likewise.
27764         * lib/xmemcoll.c: Likewise.
27765         * lib/xnanosleep.c: Likewise.
27766         * lib/xreadlink.c: Likewise.
27767         * lib/xreadlink.h: Likewise.
27768         * lib/xsetenv.c: Likewise.
27769         * lib/xsetenv.h: Likewise.
27770         * lib/xstriconv.c: Likewise.
27771         * lib/xstriconv.h: Likewise.
27772         * lib/xstrndup.c: Likewise.
27773         * lib/xstrndup.h: Likewise.
27774         * lib/xstrtod.c: Likewise.
27775         * lib/xstrtod.h: Likewise.
27776         * lib/xstrtol-error.c: Likewise.
27777         * lib/xstrtol.c: Likewise.
27778         * lib/xstrtol.h: Likewise.
27779         * lib/xtime.h: Likewise.
27780         * lib/xvasprintf.c: Likewise.
27781         * lib/xvasprintf.h: Likewise.
27782         * lib/yesno.c: Likewise.
27783         * lib/yesno.h: Likewise.
27784         * posix-modules: Likewise.
27785         * tests/test-alloca-opt.c: Likewise.
27786         * tests/test-arcfour.c: Likewise.
27787         * tests/test-arctwo.c: Likewise.
27788         * tests/test-argmatch.c: Likewise.
27789         * tests/test-argp-2.sh: Likewise.
27790         * tests/test-argp.c: Likewise.
27791         * tests/test-arpa_inet.c: Likewise.
27792         * tests/test-array_list.c: Likewise.
27793         * tests/test-array_oset.c: Likewise.
27794         * tests/test-atexit.c: Likewise.
27795         * tests/test-avltree_list.c: Likewise.
27796         * tests/test-avltree_oset.c: Likewise.
27797         * tests/test-avltreehash_list.c: Likewise.
27798         * tests/test-base64.c: Likewise.
27799         * tests/test-binary-io.c: Likewise.
27800         * tests/test-byteswap.c: Likewise.
27801         * tests/test-c-ctype.c: Likewise.
27802         * tests/test-c-strcasecmp.c: Likewise.
27803         * tests/test-c-strcasestr.c: Likewise.
27804         * tests/test-c-strncasecmp.c: Likewise.
27805         * tests/test-c-strstr.c: Likewise.
27806         * tests/test-canonicalize-lgpl.c: Likewise.
27807         * tests/test-canonicalize.c: Likewise.
27808         * tests/test-carray_list.c: Likewise.
27809         * tests/test-ceilf.c: Likewise.
27810         * tests/test-ceill.c: Likewise.
27811         * tests/test-count-one-bits.c: Likewise.
27812         * tests/test-crc.c: Likewise.
27813         * tests/test-dirname.c: Likewise.
27814         * tests/test-fbufmode.c: Likewise.
27815         * tests/test-fcntl.c: Likewise.
27816         * tests/test-fflush.c: Likewise.
27817         * tests/test-floorf.c: Likewise.
27818         * tests/test-floorl.c: Likewise.
27819         * tests/test-fopen.c: Likewise.
27820         * tests/test-fprintf-posix.c: Likewise.
27821         * tests/test-fprintf-posix.h: Likewise.
27822         * tests/test-fpurge.c: Likewise.
27823         * tests/test-freadable.c: Likewise.
27824         * tests/test-freadahead.c: Likewise.
27825         * tests/test-freading.c: Likewise.
27826         * tests/test-freopen.c: Likewise.
27827         * tests/test-frexp.c: Likewise.
27828         * tests/test-frexpl.c: Likewise.
27829         * tests/test-fseek.c: Likewise.
27830         * tests/test-fseeko.c: Likewise.
27831         * tests/test-fseterr.c: Likewise.
27832         * tests/test-fstrcmp.c: Likewise.
27833         * tests/test-ftell.c: Likewise.
27834         * tests/test-ftello.c: Likewise.
27835         * tests/test-fwritable.c: Likewise.
27836         * tests/test-fwriting.c: Likewise.
27837         * tests/test-getaddrinfo.c: Likewise.
27838         * tests/test-getpass.c: Likewise.
27839         * tests/test-gettimeofday.c: Likewise.
27840         * tests/test-hmac-md5.c: Likewise.
27841         * tests/test-hmac-sha1.c: Likewise.
27842         * tests/test-iconv.c: Likewise.
27843         * tests/test-iconvme.c: Likewise.
27844         * tests/test-inttypes.c: Likewise.
27845         * tests/test-isnan.c: Likewise.
27846         * tests/test-isnanf.c: Likewise.
27847         * tests/test-isnanl-nolibm.c: Likewise.
27848         * tests/test-isnanl.c: Likewise.
27849         * tests/test-isnanl.h: Likewise.
27850         * tests/test-ldexpl.c: Likewise.
27851         * tests/test-linked_list.c: Likewise.
27852         * tests/test-linkedhash_list.c: Likewise.
27853         * tests/test-locale.c: Likewise.
27854         * tests/test-localename.c: Likewise.
27855         * tests/test-lock.c: Likewise.
27856         * tests/test-lseek.c: Likewise.
27857         * tests/test-malloca.c: Likewise.
27858         * tests/test-math.c: Likewise.
27859         * tests/test-mbscasecmp.c: Likewise.
27860         * tests/test-mbscasestr1.c: Likewise.
27861         * tests/test-mbscasestr2.c: Likewise.
27862         * tests/test-mbscasestr3.c: Likewise.
27863         * tests/test-mbscasestr4.c: Likewise.
27864         * tests/test-mbschr.c: Likewise.
27865         * tests/test-mbscspn.c: Likewise.
27866         * tests/test-mbsncasecmp.c: Likewise.
27867         * tests/test-mbspbrk.c: Likewise.
27868         * tests/test-mbspcasecmp.c: Likewise.
27869         * tests/test-mbsrchr.c: Likewise.
27870         * tests/test-mbsspn.c: Likewise.
27871         * tests/test-mbsstr1.c: Likewise.
27872         * tests/test-mbsstr2.c: Likewise.
27873         * tests/test-mbsstr3.c: Likewise.
27874         * tests/test-md5.c: Likewise.
27875         * tests/test-memmem.c: Likewise.
27876         * tests/test-netinet_in.c: Likewise.
27877         * tests/test-open.c: Likewise.
27878         * tests/test-printf-frexp.c: Likewise.
27879         * tests/test-printf-frexpl.c: Likewise.
27880         * tests/test-printf-posix.c: Likewise.
27881         * tests/test-printf-posix.h: Likewise.
27882         * tests/test-rbtree_list.c: Likewise.
27883         * tests/test-rbtree_oset.c: Likewise.
27884         * tests/test-rbtreehash_list.c: Likewise.
27885         * tests/test-read-file.c: Likewise.
27886         * tests/test-rijndael.c: Likewise.
27887         * tests/test-search.c: Likewise.
27888         * tests/test-signbit.c: Likewise.
27889         * tests/test-sleep.c: Likewise.
27890         * tests/test-snprintf-posix.c: Likewise.
27891         * tests/test-snprintf-posix.h: Likewise.
27892         * tests/test-snprintf.c: Likewise.
27893         * tests/test-sprintf-posix.c: Likewise.
27894         * tests/test-sprintf-posix.h: Likewise.
27895         * tests/test-stat-time.c: Likewise.
27896         * tests/test-stdbool.c: Likewise.
27897         * tests/test-stdint.c: Likewise.
27898         * tests/test-stdio.c: Likewise.
27899         * tests/test-stdlib.c: Likewise.
27900         * tests/test-stpncpy.c: Likewise.
27901         * tests/test-strcasestr.c: Likewise.
27902         * tests/test-striconv.c: Likewise.
27903         * tests/test-striconveh.c: Likewise.
27904         * tests/test-striconveha.c: Likewise.
27905         * tests/test-string.c: Likewise.
27906         * tests/test-sys_select.c: Likewise.
27907         * tests/test-sys_socket.c: Likewise.
27908         * tests/test-sys_stat.c: Likewise.
27909         * tests/test-sys_time.c: Likewise.
27910         * tests/test-sysexits.c: Likewise.
27911         * tests/test-time.c: Likewise.
27912         * tests/test-tls.c: Likewise.
27913         * tests/test-trunc.c: Likewise.
27914         * tests/test-truncf.c: Likewise.
27915         * tests/test-truncl.c: Likewise.
27916         * tests/test-unistd.c: Likewise.
27917         * tests/test-vasnprintf-posix.c: Likewise.
27918         * tests/test-vasnprintf-posix2.c: Likewise.
27919         * tests/test-vasnprintf.c: Likewise.
27920         * tests/test-vasprintf-posix.c: Likewise.
27921         * tests/test-vasprintf.c: Likewise.
27922         * tests/test-verify.c: Likewise.
27923         * tests/test-vfprintf-posix.c: Likewise.
27924         * tests/test-vprintf-posix.c: Likewise.
27925         * tests/test-vsnprintf-posix.c: Likewise.
27926         * tests/test-vsnprintf.c: Likewise.
27927         * tests/test-vsprintf-posix.c: Likewise.
27928         * tests/test-wchar.c: Likewise.
27929         * tests/test-wctype.c: Likewise.
27930         * tests/test-wcwidth.c: Likewise.
27931         * tests/test-xstrtol.c: Likewise.
27932         * tests/test-xvasprintf.c: Likewise.
27933         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
27934         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
27935         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
27936         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
27937         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
27938         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
27939         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
27940         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
27941         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
27942         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
27943         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
27944         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
27945         * tests/uniname/test-uninames.c: Likewise.
27946         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
27947         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
27948         * tests/unistdio/test-u16-printf1.h: Likewise.
27949         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
27950         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
27951         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
27952         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
27953         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
27954         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
27955         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
27956         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
27957         * tests/unistdio/test-u32-printf1.h: Likewise.
27958         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
27959         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
27960         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
27961         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
27962         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
27963         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
27964         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
27965         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
27966         * tests/unistdio/test-u8-printf1.h: Likewise.
27967         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
27968         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
27969         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
27970         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
27971         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
27972         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
27973         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
27974         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
27975         * tests/unistdio/test-ulc-printf1.h: Likewise.
27976         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
27977         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
27978         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
27979         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
27980         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
27981         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
27982         * tests/uniwidth/test-u16-strwidth.c: Likewise.
27983         * tests/uniwidth/test-u16-width.c: Likewise.
27984         * tests/uniwidth/test-u32-strwidth.c: Likewise.
27985         * tests/uniwidth/test-u32-width.c: Likewise.
27986         * tests/uniwidth/test-u8-strwidth.c: Likewise.
27987         * tests/uniwidth/test-u8-width.c: Likewise.
27988         * tests/uniwidth/test-uc_width.c: Likewise.
27989         * config/srclist-update: Likewise.
27990         (fixlicense): Update to GPLv3+.
27991
27992         Change copyright notice from LGPLv2.1+ to LGPLv3+.
27993         * tests/test-tsearch.c: Change copyright notice.
27994
27995         Change copyright notice from LGPLv2.0+ to LGPLv3+.
27996         * lib/c-strcaseeq.h: Change copyright notice.
27997         * lib/streq.h: Likewise.
27998         * lib/uniconv.h: Likewise.
27999         * lib/uniconv/u-conv-from-enc.h: Likewise.
28000         * lib/uniconv/u-conv-to-enc.h: Likewise.
28001         * lib/uniconv/u-strconv-from-enc.h: Likewise.
28002         * lib/uniconv/u-strconv-to-enc.h: Likewise.
28003         * lib/uniconv/u16-conv-from-enc.c: Likewise.
28004         * lib/uniconv/u16-conv-to-enc.c: Likewise.
28005         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
28006         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
28007         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
28008         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
28009         * lib/uniconv/u32-conv-from-enc.c: Likewise.
28010         * lib/uniconv/u32-conv-to-enc.c: Likewise.
28011         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
28012         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
28013         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
28014         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
28015         * lib/uniconv/u8-conv-from-enc.c: Likewise.
28016         * lib/uniconv/u8-conv-to-enc.c: Likewise.
28017         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
28018         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
28019         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
28020         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
28021         * lib/uniname.h: Likewise.
28022         * lib/uniname/uniname.c: Likewise.
28023         * lib/unistdio.h: Likewise.
28024         * lib/unistdio/u-asnprintf.h: Likewise.
28025         * lib/unistdio/u-asprintf.h: Likewise.
28026         * lib/unistdio/u-printf-args.c: Likewise.
28027         * lib/unistdio/u-printf-args.h: Likewise.
28028         * lib/unistdio/u-printf-parse.h: Likewise.
28029         * lib/unistdio/u-snprintf.h: Likewise.
28030         * lib/unistdio/u-sprintf.h: Likewise.
28031         * lib/unistdio/u-vasprintf.h: Likewise.
28032         * lib/unistdio/u-vsnprintf.h: Likewise.
28033         * lib/unistdio/u-vsprintf.h: Likewise.
28034         * lib/unistdio/u16-asnprintf.c: Likewise.
28035         * lib/unistdio/u16-asprintf.c: Likewise.
28036         * lib/unistdio/u16-printf-parse.c: Likewise.
28037         * lib/unistdio/u16-snprintf.c: Likewise.
28038         * lib/unistdio/u16-sprintf.c: Likewise.
28039         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
28040         * lib/unistdio/u16-u16-asprintf.c: Likewise.
28041         * lib/unistdio/u16-u16-snprintf.c: Likewise.
28042         * lib/unistdio/u16-u16-sprintf.c: Likewise.
28043         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
28044         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
28045         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
28046         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
28047         * lib/unistdio/u16-vasnprintf.c: Likewise.
28048         * lib/unistdio/u16-vasprintf.c: Likewise.
28049         * lib/unistdio/u16-vsnprintf.c: Likewise.
28050         * lib/unistdio/u16-vsprintf.c: Likewise.
28051         * lib/unistdio/u32-asnprintf.c: Likewise.
28052         * lib/unistdio/u32-asprintf.c: Likewise.
28053         * lib/unistdio/u32-printf-parse.c: Likewise.
28054         * lib/unistdio/u32-snprintf.c: Likewise.
28055         * lib/unistdio/u32-sprintf.c: Likewise.
28056         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
28057         * lib/unistdio/u32-u32-asprintf.c: Likewise.
28058         * lib/unistdio/u32-u32-snprintf.c: Likewise.
28059         * lib/unistdio/u32-u32-sprintf.c: Likewise.
28060         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
28061         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
28062         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
28063         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
28064         * lib/unistdio/u32-vasnprintf.c: Likewise.
28065         * lib/unistdio/u32-vasprintf.c: Likewise.
28066         * lib/unistdio/u32-vsnprintf.c: Likewise.
28067         * lib/unistdio/u32-vsprintf.c: Likewise.
28068         * lib/unistdio/u8-asnprintf.c: Likewise.
28069         * lib/unistdio/u8-asprintf.c: Likewise.
28070         * lib/unistdio/u8-printf-parse.c: Likewise.
28071         * lib/unistdio/u8-snprintf.c: Likewise.
28072         * lib/unistdio/u8-sprintf.c: Likewise.
28073         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
28074         * lib/unistdio/u8-u8-asprintf.c: Likewise.
28075         * lib/unistdio/u8-u8-snprintf.c: Likewise.
28076         * lib/unistdio/u8-u8-sprintf.c: Likewise.
28077         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
28078         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
28079         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
28080         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
28081         * lib/unistdio/u8-vasnprintf.c: Likewise.
28082         * lib/unistdio/u8-vasprintf.c: Likewise.
28083         * lib/unistdio/u8-vsnprintf.c: Likewise.
28084         * lib/unistdio/u8-vsprintf.c: Likewise.
28085         * lib/unistdio/ulc-asnprintf.c: Likewise.
28086         * lib/unistdio/ulc-asprintf.c: Likewise.
28087         * lib/unistdio/ulc-printf-parse.c: Likewise.
28088         * lib/unistdio/ulc-snprintf.c: Likewise.
28089         * lib/unistdio/ulc-sprintf.c: Likewise.
28090         * lib/unistdio/ulc-vasnprintf.c: Likewise.
28091         * lib/unistdio/ulc-vasprintf.c: Likewise.
28092         * lib/unistdio/ulc-vsnprintf.c: Likewise.
28093         * lib/unistdio/ulc-vsprintf.c: Likewise.
28094         * lib/unistr.h: Likewise.
28095         * lib/unistr/u-cpy-alloc.h: Likewise.
28096         * lib/unistr/u-cpy.h: Likewise.
28097         * lib/unistr/u-endswith.h: Likewise.
28098         * lib/unistr/u-move.h: Likewise.
28099         * lib/unistr/u-set.h: Likewise.
28100         * lib/unistr/u-startswith.h: Likewise.
28101         * lib/unistr/u-stpcpy.h: Likewise.
28102         * lib/unistr/u-stpncpy.h: Likewise.
28103         * lib/unistr/u-strcat.h: Likewise.
28104         * lib/unistr/u-strcpy.h: Likewise.
28105         * lib/unistr/u-strcspn.h: Likewise.
28106         * lib/unistr/u-strdup.h: Likewise.
28107         * lib/unistr/u-strlen.h: Likewise.
28108         * lib/unistr/u-strncat.h: Likewise.
28109         * lib/unistr/u-strncpy.h: Likewise.
28110         * lib/unistr/u-strnlen.h: Likewise.
28111         * lib/unistr/u-strpbrk.h: Likewise.
28112         * lib/unistr/u-strspn.h: Likewise.
28113         * lib/unistr/u-strstr.h: Likewise.
28114         * lib/unistr/u-strtok.h: Likewise.
28115         * lib/unistr/u16-check.c: Likewise.
28116         * lib/unistr/u16-chr.c: Likewise.
28117         * lib/unistr/u16-cmp.c: Likewise.
28118         * lib/unistr/u16-cpy-alloc.c: Likewise.
28119         * lib/unistr/u16-cpy.c: Likewise.
28120         * lib/unistr/u16-endswith.c: Likewise.
28121         * lib/unistr/u16-mblen.c: Likewise.
28122         * lib/unistr/u16-mbsnlen.c: Likewise.
28123         * lib/unistr/u16-mbtouc-aux.c: Likewise.
28124         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
28125         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
28126         * lib/unistr/u16-mbtouc.c: Likewise.
28127         * lib/unistr/u16-mbtoucr.c: Likewise.
28128         * lib/unistr/u16-move.c: Likewise.
28129         * lib/unistr/u16-next.c: Likewise.
28130         * lib/unistr/u16-prev.c: Likewise.
28131         * lib/unistr/u16-set.c: Likewise.
28132         * lib/unistr/u16-startswith.c: Likewise.
28133         * lib/unistr/u16-stpcpy.c: Likewise.
28134         * lib/unistr/u16-stpncpy.c: Likewise.
28135         * lib/unistr/u16-strcat.c: Likewise.
28136         * lib/unistr/u16-strchr.c: Likewise.
28137         * lib/unistr/u16-strcmp.c: Likewise.
28138         * lib/unistr/u16-strcpy.c: Likewise.
28139         * lib/unistr/u16-strcspn.c: Likewise.
28140         * lib/unistr/u16-strdup.c: Likewise.
28141         * lib/unistr/u16-strlen.c: Likewise.
28142         * lib/unistr/u16-strmblen.c: Likewise.
28143         * lib/unistr/u16-strmbtouc.c: Likewise.
28144         * lib/unistr/u16-strncat.c: Likewise.
28145         * lib/unistr/u16-strncmp.c: Likewise.
28146         * lib/unistr/u16-strncpy.c: Likewise.
28147         * lib/unistr/u16-strnlen.c: Likewise.
28148         * lib/unistr/u16-strpbrk.c: Likewise.
28149         * lib/unistr/u16-strrchr.c: Likewise.
28150         * lib/unistr/u16-strspn.c: Likewise.
28151         * lib/unistr/u16-strstr.c: Likewise.
28152         * lib/unistr/u16-strtok.c: Likewise.
28153         * lib/unistr/u16-to-u32.c: Likewise.
28154         * lib/unistr/u16-to-u8.c: Likewise.
28155         * lib/unistr/u16-uctomb-aux.c: Likewise.
28156         * lib/unistr/u16-uctomb.c: Likewise.
28157         * lib/unistr/u32-check.c: Likewise.
28158         * lib/unistr/u32-chr.c: Likewise.
28159         * lib/unistr/u32-cmp.c: Likewise.
28160         * lib/unistr/u32-cpy-alloc.c: Likewise.
28161         * lib/unistr/u32-cpy.c: Likewise.
28162         * lib/unistr/u32-endswith.c: Likewise.
28163         * lib/unistr/u32-mblen.c: Likewise.
28164         * lib/unistr/u32-mbsnlen.c: Likewise.
28165         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
28166         * lib/unistr/u32-mbtouc.c: Likewise.
28167         * lib/unistr/u32-mbtoucr.c: Likewise.
28168         * lib/unistr/u32-move.c: Likewise.
28169         * lib/unistr/u32-next.c: Likewise.
28170         * lib/unistr/u32-prev.c: Likewise.
28171         * lib/unistr/u32-set.c: Likewise.
28172         * lib/unistr/u32-startswith.c: Likewise.
28173         * lib/unistr/u32-stpcpy.c: Likewise.
28174         * lib/unistr/u32-stpncpy.c: Likewise.
28175         * lib/unistr/u32-strcat.c: Likewise.
28176         * lib/unistr/u32-strchr.c: Likewise.
28177         * lib/unistr/u32-strcmp.c: Likewise.
28178         * lib/unistr/u32-strcpy.c: Likewise.
28179         * lib/unistr/u32-strcspn.c: Likewise.
28180         * lib/unistr/u32-strdup.c: Likewise.
28181         * lib/unistr/u32-strlen.c: Likewise.
28182         * lib/unistr/u32-strmblen.c: Likewise.
28183         * lib/unistr/u32-strmbtouc.c: Likewise.
28184         * lib/unistr/u32-strncat.c: Likewise.
28185         * lib/unistr/u32-strncmp.c: Likewise.
28186         * lib/unistr/u32-strncpy.c: Likewise.
28187         * lib/unistr/u32-strnlen.c: Likewise.
28188         * lib/unistr/u32-strpbrk.c: Likewise.
28189         * lib/unistr/u32-strrchr.c: Likewise.
28190         * lib/unistr/u32-strspn.c: Likewise.
28191         * lib/unistr/u32-strstr.c: Likewise.
28192         * lib/unistr/u32-strtok.c: Likewise.
28193         * lib/unistr/u32-to-u16.c: Likewise.
28194         * lib/unistr/u32-to-u8.c: Likewise.
28195         * lib/unistr/u32-uctomb.c: Likewise.
28196         * lib/unistr/u8-check.c: Likewise.
28197         * lib/unistr/u8-chr.c: Likewise.
28198         * lib/unistr/u8-cmp.c: Likewise.
28199         * lib/unistr/u8-cpy-alloc.c: Likewise.
28200         * lib/unistr/u8-cpy.c: Likewise.
28201         * lib/unistr/u8-endswith.c: Likewise.
28202         * lib/unistr/u8-mblen.c: Likewise.
28203         * lib/unistr/u8-mbsnlen.c: Likewise.
28204         * lib/unistr/u8-mbtouc-aux.c: Likewise.
28205         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
28206         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
28207         * lib/unistr/u8-mbtouc.c: Likewise.
28208         * lib/unistr/u8-mbtoucr.c: Likewise.
28209         * lib/unistr/u8-move.c: Likewise.
28210         * lib/unistr/u8-next.c: Likewise.
28211         * lib/unistr/u8-prev.c: Likewise.
28212         * lib/unistr/u8-set.c: Likewise.
28213         * lib/unistr/u8-startswith.c: Likewise.
28214         * lib/unistr/u8-stpcpy.c: Likewise.
28215         * lib/unistr/u8-stpncpy.c: Likewise.
28216         * lib/unistr/u8-strcat.c: Likewise.
28217         * lib/unistr/u8-strchr.c: Likewise.
28218         * lib/unistr/u8-strcmp.c: Likewise.
28219         * lib/unistr/u8-strcpy.c: Likewise.
28220         * lib/unistr/u8-strcspn.c: Likewise.
28221         * lib/unistr/u8-strdup.c: Likewise.
28222         * lib/unistr/u8-strlen.c: Likewise.
28223         * lib/unistr/u8-strmblen.c: Likewise.
28224         * lib/unistr/u8-strmbtouc.c: Likewise.
28225         * lib/unistr/u8-strncat.c: Likewise.
28226         * lib/unistr/u8-strncmp.c: Likewise.
28227         * lib/unistr/u8-strncpy.c: Likewise.
28228         * lib/unistr/u8-strnlen.c: Likewise.
28229         * lib/unistr/u8-strpbrk.c: Likewise.
28230         * lib/unistr/u8-strrchr.c: Likewise.
28231         * lib/unistr/u8-strspn.c: Likewise.
28232         * lib/unistr/u8-strstr.c: Likewise.
28233         * lib/unistr/u8-strtok.c: Likewise.
28234         * lib/unistr/u8-to-u16.c: Likewise.
28235         * lib/unistr/u8-to-u32.c: Likewise.
28236         * lib/unistr/u8-uctomb-aux.c: Likewise.
28237         * lib/unistr/u8-uctomb.c: Likewise.
28238         * lib/unitypes.h: Likewise.
28239         * lib/uniwidth.h: Likewise.
28240         * lib/uniwidth/cjk.h: Likewise.
28241         * lib/uniwidth/u16-strwidth.c: Likewise.
28242         * lib/uniwidth/u16-width.c: Likewise.
28243         * lib/uniwidth/u32-strwidth.c: Likewise.
28244         * lib/uniwidth/u32-width.c: Likewise.
28245         * lib/uniwidth/u8-strwidth.c: Likewise.
28246         * lib/uniwidth/u8-width.c: Likewise.
28247         * lib/uniwidth/width.c: Likewise.
28248
28249 2007-10-07  Bruno Haible  <bruno@clisp.org>
28250
28251         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
28252         The file is still under LGPL (see modules/inttypes).
28253
28254 2007-10-06  Bruno Haible  <bruno@clisp.org>
28255
28256         * modules/trunc (Dependencies): Add 'extensions'.
28257         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
28258         Reported by Ben Pfaff <blp@gnu.org>.
28259
28260 2007-10-06  Bruno Haible  <bruno@clisp.org>
28261
28262         * modules/freopen-tests: New file.
28263         * tests/test-freopen.c: New file.
28264
28265         * modules/fopen-tests: New file.
28266         * tests/test-fopen.c: New file.
28267
28268         * modules/fopen: New file.
28269         * lib/fopen.c: New file.
28270         * m4/fopen.m4: New file.
28271         * modules/freopen: New file.
28272         * lib/freopen.c: New file.
28273         * m4/freopen.m4: New file.
28274         * lib/stdio.in.h (fopen, freopen): New declarations.
28275         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
28276         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
28277         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
28278         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
28279         * doc/functions/fopen.texi: Mention the 'fopen' module.
28280         * doc/functions/freopen.texi: Mention the 'freopen' module.
28281
28282 2007-10-06  Bruno Haible  <bruno@clisp.org>
28283
28284         * modules/open-tests: New file.
28285         * tests/test-open.c: New file.
28286
28287         * modules/open: New file.
28288         * lib/open.c: New file.
28289         * m4/open.m4: New file.
28290         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
28291         lib/open.c does.
28292         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
28293         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
28294         macros.
28295         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
28296         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
28297         REPLACE_OPEN.
28298         * doc/functions/open.texi: Mention the 'open' module.
28299
28300 2007-10-04  Bruno Haible  <bruno@clisp.org>
28301
28302         * modules/ceill-tests: New file.
28303         * tests/test-ceill.c: New file.
28304
28305         * modules/ceill: New file.
28306         * lib/ceill.c: Replace entire file.
28307         * m4/ceill.m4: New file.
28308         * lib/math.in.h (ceill): Replace declaration.
28309         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
28310         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
28311         * doc/functions/ceill.texi: Mention the 'ceill' module.
28312         * modules/mathl (Files): Remove lib/ceill.c.
28313         (Depends-on): Add ceill.
28314
28315 2007-10-04  Bruno Haible  <bruno@clisp.org>
28316
28317         * modules/ceilf-tests: New file.
28318         * tests/test-ceilf.c: New file.
28319
28320         * modules/ceilf: New file.
28321         * lib/ceil.c: New file.
28322         * lib/ceilf.c: New file.
28323         * m4/ceilf.m4: New file.
28324         * lib/math.in.h (ceilf): New declaration.
28325         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
28326         HAVE_DECL_CEILF.
28327         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
28328         HAVE_DECL_CEILF.
28329         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
28330
28331 2007-10-04  Bruno Haible  <bruno@clisp.org>
28332
28333         * modules/floorl-tests: New file.
28334         * tests/test-floorl.c: New file.
28335
28336         * modules/floorl: New file.
28337         * lib/floorl.c: Replace entire file.
28338         * m4/floorl.m4: New file.
28339         * lib/math.in.h (floorl): Replace declaration.
28340         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
28341         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
28342         * doc/functions/floorl.texi: Mention the 'floorl' module.
28343         * modules/mathl (Files): Remove lib/floorl.c.
28344         (Depends-on): Add floorl.
28345
28346 2007-10-04  Bruno Haible  <bruno@clisp.org>
28347
28348         * modules/floorf-tests: New file.
28349         * tests/test-floorf.c: New file.
28350
28351         * modules/floorf: New file.
28352         * lib/floor.c: New file.
28353         * lib/floorf.c: New file.
28354         * m4/floorf.m4: New file.
28355         * lib/math.in.h (floorf): New declaration.
28356         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
28357         HAVE_DECL_FLOORF.
28358         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
28359         HAVE_DECL_FLOORF.
28360         * doc/functions/floorf.texi: Mention the 'floorf' module.
28361
28362 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
28363             Bruno Haible  <bruno@clisp.org>
28364
28365         Advertise for the Git server instead of the CVS server.
28366         * doc/gnulib-intro.texi (Steady Development): Mention the Git
28367         repository instead of the CVS one.
28368         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
28369         about all VCS systems generically.
28370         * doc/gnulib.texi (Introduction): Capitalize `Git'.
28371
28372 2007-10-04  Bruno Haible  <bruno@clisp.org>
28373
28374         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
28375         means.
28376         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
28377
28378 2007-10-04  Bruno Haible  <bruno@clisp.org>
28379
28380         * modules/truncl-tests: New file.
28381         * tests/test-truncl.c: New file.
28382
28383         * modules/truncl: New file.
28384         * lib/truncl.c: New file.
28385         * m4/truncl.m4: New file.
28386         * lib/math.in.h (truncl): New declaration.
28387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
28388         HAVE_DECL_TRUNCL.
28389         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
28390         HAVE_DECL_TRUNCL.
28391         * doc/functions/truncl.texi: Mention the 'truncl' module.
28392
28393 2007-10-04  Bruno Haible  <bruno@clisp.org>
28394
28395         * modules/truncf-tests: New file.
28396         * tests/test-truncf.c: New file.
28397
28398         * modules/truncf: New file.
28399         * lib/trunc.c: Make paramerizable through USE_* macros.
28400         * lib/truncf.c: New file.
28401         * m4/truncf.m4: New file.
28402         * lib/math.in.h (truncf): New declaration.
28403         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
28404         HAVE_DECL_TRUNCF.
28405         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
28406         HAVE_DECL_TRUNCF.
28407         * doc/functions/truncf.texi: Mention the 'truncf' module.
28408
28409 2007-10-03  Bruno Haible  <bruno@clisp.org>
28410
28411         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
28412         augmentation also for tests modules.
28413         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
28414         * modules/atexit-tests (Makefile.am): Likewise.
28415         * modules/binary-io-tests (Makefile.am): Likewise.
28416         * modules/c-strcase-tests (Makefile.am): Likewise.
28417         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
28418         * modules/canonicalize-tests (Makefile.am): Likewise.
28419         * modules/closein-tests (Makefile.am): Likewise.
28420         * modules/fprintf-posix-tests (Makefile.am): Likewise.
28421         * modules/freadahead-tests (Makefile.am): Likewise.
28422         * modules/fseek-tests (Makefile.am): Likewise.
28423         * modules/fseeko-tests (Makefile.am): Likewise.
28424         * modules/ftell-tests (Makefile.am): Likewise.
28425         * modules/ftello-tests (Makefile.am): Likewise.
28426         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
28427         * modules/isnanl-tests (Makefile.am): Likewise.
28428         * modules/lseek-tests (Makefile.am): Likewise.
28429         * modules/mbscasecmp-tests (Makefile.am): Likewise.
28430         * modules/mbscasestr-tests (Makefile.am): Likewise.
28431         * modules/mbschr-tests (Makefile.am): Likewise.
28432         * modules/mbscspn-tests (Makefile.am): Likewise.
28433         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
28434         * modules/mbspbrk-tests (Makefile.am): Likewise.
28435         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
28436         * modules/mbsrchr-tests (Makefile.am): Likewise.
28437         * modules/mbsspn-tests (Makefile.am): Likewise.
28438         * modules/mbsstr-tests (Makefile.am): Likewise.
28439         * modules/printf-posix-tests (Makefile.am): Likewise.
28440         * modules/snprintf-posix-tests (Makefile.am): Likewise.
28441         * modules/sprintf-posix-tests (Makefile.am): Likewise.
28442         * modules/tsearch-tests (Makefile.am): Likewise.
28443         * modules/uniname/uniname-tests (Makefile.am): Likewise.
28444         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
28445         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
28446         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
28447         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
28448         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
28449         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
28450         * modules/vprintf-posix-tests (Makefile.am): Likewise.
28451         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
28452         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
28453         * modules/xstrtoimax-tests (Makefile.am): Likewise.
28454         * modules/xstrtol-tests (Makefile.am): Likewise.
28455         * modules/xstrtoumax-tests (Makefile.am): Likewise.
28456         * modules/yesno-tests (Makefile.am): Likewise.
28457
28458 2007-10-03  Bruno Haible  <bruno@clisp.org>
28459
28460         * modules/trunc-tests: New file.
28461         * tests/test-trunc.c: New file.
28462
28463         * modules/trunc: New file.
28464         * lib/trunc.c: New file.
28465         * m4/trunc.m4: New file.
28466         * lib/math.in.h (trunc): New declaration.
28467         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
28468         HAVE_DECL_TRUNC.
28469         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
28470         HAVE_DECL_TRUNC.
28471         * doc/functions/trunc.texi: Mention the 'trunc' module.
28472
28473 2007-10-03  Bruno Haible  <bruno@clisp.org>
28474
28475         * tests/test-fpending.c: New file, mostly copied
28476         from coreutils/lib/t-fpending.c.
28477         * modules/fpending-tests: New file.
28478
28479 2007-10-03  Bruno Haible  <bruno@clisp.org>
28480
28481         Port the stdio extensions to QNX (untested).
28482         * lib/fseterr.c (fseterr): Add support for QNX.
28483         * lib/fbufmode.c (fbufmode): Likewise.
28484         * lib/freadable.c (freadable): Likewise.
28485         * lib/fwritable.c (fwritable): Likewise.
28486         * lib/freading.c (freading): Likewise.
28487         * lib/fwriting.c (fwriting): Likewise.
28488         * lib/freadahead.c (freadahed): Likewise.
28489         * lib/fpurge.c (fpurge): Likewise.
28490         * lib/fseeko.c (rpl_fseeko): Likewise.
28491
28492 2007-10-03  Bruno Haible  <bruno@clisp.org>
28493             Jim Meyering  <jim@meyering.net>
28494             Eric Blake  <ebb9@byu.net>
28495
28496         * doc/relocatable.texi: Use @command instead of @program.
28497
28498 2007-10-02  Jim Meyering  <jim@meyering.net>
28499
28500         Perform one more "_.h" -> ".in.h" substitution.
28501         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
28502         instead of unistd_.h here, too.
28503
28504 2007-10-01  Bruno Haible  <bruno@clisp.org>
28505
28506         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
28507         Needed for the alloca-opt module.
28508
28509 2007-09-30  Bruno Haible  <bruno@clisp.org>
28510
28511         * lib/alloca.in.h: Renamed from lib/alloca_.h.
28512         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
28513         alloca_.h.
28514         * lib/argz.in.h: Renamed from lib/argz_.h.
28515         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
28516         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
28517         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
28518         byteswap_.h.
28519         * lib/dirent.in.h: Renamed from lib/dirent_.h.
28520         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
28521         dirent_.h.
28522         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
28523         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
28524         fcntl_.h.
28525         * lib/float.in.h: Renamed from lib/float_.h.
28526         * modules/float (Files, Makefile.am): Use float.in.h instead of
28527         float_.h.
28528         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
28529         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
28530         fnmatch_.h.
28531         * lib/getopt.in.h: Renamed from lib/getopt_.h.
28532         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
28533         getopt_.h.
28534         * lib/glob.in.h: Renamed from lib/glob_.h.
28535         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
28536         * lib/iconv.in.h: Renamed from lib/iconv_.h.
28537         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
28538         iconv_.h.
28539         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
28540         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
28541         inttypes_.h.
28542         * lib/locale.in.h: Renamed from lib/locale_.h.
28543         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
28544         locale_.h.
28545         * lib/math.in.h: Renamed from lib/math_.h.
28546         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
28547         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
28548         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
28549         of netinet_in_.h. Add dependency.
28550         * lib/poll.in.h: Renamed from lib/poll_.h.
28551         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
28552         * lib/search.in.h: Renamed from lib/search_.h.
28553         * modules/search (Files, Makefile.am): Use search.in.h instead of
28554         search_.h.
28555         * lib/signal.in.h: Renamed from lib/signal_.h.
28556         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
28557         _signal.h.
28558         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
28559         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
28560         stdbool_.h.
28561         * lib/stdint.in.h: Renamed from lib/stdint_.h.
28562         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
28563         stdint_.h.
28564         * lib/stdio.in.h: Renamed from lib/stdio_.h.
28565         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
28566         stdio_.h.
28567         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
28568         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
28569         stdlib_.h.
28570         * lib/string.in.h: Renamed from lib/string_.h.
28571         * modules/string (Files, Makefile.am): Use string.in.h instead of
28572         string_.h.
28573         * doc/gnulib-tool.texi (Initial import): Update.
28574         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
28575         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
28576         of sys_select_.h. Add dependency.
28577         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
28578         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
28579         of sys_socket_.h.
28580         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
28581         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
28582         sys_stat_.h.
28583         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
28584         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
28585         sys_time_.h.
28586         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
28587         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
28588         sysexits_.h.
28589         * lib/time.in.h: Renamed from lib/time_.h.
28590         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
28591         * lib/unistd.in.h: Renamed from lib/unistd_.h.
28592         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
28593         unistd_.h.
28594         * lib/wchar.in.h: Renamed from lib/wchar_.h.
28595         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
28596         wchar_.h.
28597         * lib/wctype.in.h: Renamed from lib/wctype_.h.
28598         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
28599         wctype_.h.
28600         * build-aux/bootstrap (slurp): Update.
28601         * lib/.cppi-disable: Update.
28602
28603 2007-09-30  Bruno Haible  <bruno@clisp.org>
28604
28605         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
28606         Needed on BeOS.
28607
28608 2007-09-30  Bruno Haible  <bruno@clisp.org>
28609
28610         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
28611
28612 2007-09-29  Bruno Haible  <bruno@clisp.org>
28613
28614         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
28615
28616 2007-09-29  Bruno Haible  <bruno@clisp.org>
28617
28618         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
28619         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
28620         * build-aux/install-reloc: Compile also areadlink.c.
28621         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
28622
28623 2007-09-29  Bruno Haible  <bruno@clisp.org>
28624
28625         * gnulib-tool (func_emit_initmacro_done): Indentation.
28626
28627 2007-09-29  Bruno Haible  <bruno@clisp.org>
28628
28629         * README: Add CVS checkout update instructions.
28630         Info from Bob Proulx <bob@proulx.com>.
28631
28632 2007-09-28  Eric Blake  <ebb9@byu.net>
28633
28634         Provide move-if-change.
28635         * build-aux/move-if-change: New file, based on best practice
28636         rather than any canonical upstream location.
28637
28638 2007-09-28  Jim Meyering  <jim@meyering.net>
28639
28640         Fix canonicalize loop-detection corner case.
28641         Do not attempt to stat the symlink values stored via seen_triple.
28642         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
28643         on linux-2.6.18, (but not 2.6.22).
28644         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
28645         triple_compare.  The former compares dev,ino,filename, while the latter
28646         would actually stat dirname(filename) when dev and ino were equal.
28647         * lib/hash-triple.c: Install <string.h>.
28648         (STREQ): Define.
28649         (triple_compare_ino_str): New function.
28650         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
28651
28652 2007-09-28  Eric Blake  <ebb9@byu.net>
28653
28654         Enforce that AC_REPLACE_FUNCS files exist.
28655         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
28656         override check for typos.
28657
28658         Fix test-closein on Solaris 10.
28659         * tests/test-closein.c (main): Don't assume stdin can be inherited
28660         closed on all systems.
28661         * tests/test-closein.sh: Likewise.
28662         Reported by Piotr Tarnowski.
28663
28664 2007-09-28  Jim Meyering  <jim@meyering.net>
28665
28666         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
28667
28668 2007-09-27  Jim Meyering  <jim@meyering.net>
28669
28670         canonicalize: Avoid a false-positive cycle failure.
28671         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
28672         Sort.  Remove cycle-check.
28673         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
28674         not cycle-check.h.
28675         (seen_triple): New function.
28676         (canonicalize_filename_mode): Use it instead of cycle-check.
28677         * tests/test-canonicalize.c: Add a test for this bug.
28678         * tests/test-canonicalize.sh: Set up and run the test.
28679
28680         New module, file-set, from coreutils.
28681         * modules/file-set: Define it.
28682         * lib/file-set.c, lib/file-set.h: Implement.
28683
28684         New module, hash-triple, from coreutils.
28685         * modules/hash-triple: Define it.
28686         * lib/hash-triple.c, lib/hash-triple.h: Implement.
28687
28688 2007-09-25  Eric Blake  <ebb9@byu.net>
28689
28690         Fix strerror on Interix.
28691         * lib/string_.h (strerror): Declare replacement.
28692         * doc/functions/strerror.texi (strerror): Document the Interix
28693         shortcoming.
28694         * modules/string (Makefile.am): Support new hooks.
28695         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
28696         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
28697         gl_FUNC_STRERROR_SEPARATE.
28698         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
28699         * lib/strerror.c (rpl_strerror): Provide replacement.
28700         * modules/strerror (Depends-on): Add string.
28701         (configure.ac): Detect use of module.
28702         * tests/test-strerror.c: New file.
28703         * modules/strerror-tests: New test module.
28704         * modules/argp (Depends-on): Add strerror.
28705         * modules/error (Depends-on): Likewise.
28706         Reported by Martin Koeppe.
28707
28708 2007-09-24  Bruno Haible  <bruno@clisp.org>
28709
28710         * README: Update git instructions.
28711
28712 2007-09-24  Eric Blake  <ebb9@byu.net>
28713
28714         Revert fpending breakage from 2007-09-08.
28715         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
28716         __fpending.c.
28717
28718 2007-09-24  Jim Meyering  <jim@meyering.net>
28719
28720         filenamecat.c: Add a test.
28721         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
28722         showing how the function works when DIR is the empty string.
28723
28724 2007-09-21  Simon Josefsson  <simon@josefsson.org>
28725
28726         * tests/test-canonicalize.sh: Turn on executable bit.
28727
28728 2007-09-19  Eric Blake  <ebb9@byu.net>
28729
28730         * README: Update CVS instructions.
28731
28732 2007-09-18  Bruno Haible  <bruno@clisp.org>
28733
28734         * modules/areadlink: New file.
28735         * lib/areadlink.h (areadlink): New declaration.
28736         * lib/areadlink.c: New file, based on lib/xreadlink.c.
28737
28738 2007-09-17  Jim Meyering  <jim@meyering.net>
28739
28740         * lib/savewd.c (ESTALE) [!defined]: Define.
28741         Reported to be required on Interix by Martin Koeppe.
28742
28743 2007-09-17  Bruno Haible  <bruno@clisp.org>
28744
28745         * gnulib-tool (func_version): Use $version.
28746
28747 2007-09-16  Bruno Haible  <bruno@clisp.org>
28748
28749         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
28750         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
28751         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
28752         Reported by Greg Schafer <gschafer@zip.com.au>.
28753
28754 2007-09-15  Bruno Haible  <bruno@clisp.org>
28755
28756         * gnulib-tool (sed): Try a little harder to make bash understand the
28757         alias.
28758         Reported by Bruce Korb <bruce.korb@gmail.com>.
28759
28760 2007-09-13  Eric Blake  <ebb9@byu.net>
28761
28762         * ChangeLog: Remove conflict markers.
28763
28764 2007-09-13  Simon Josefsson  <simon@josefsson.org>
28765
28766         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
28767         Reported by Bruno Haible <bruno@clisp.org>.
28768
28769 2007-09-12  Bruno Haible  <bruno@clisp.org>
28770
28771         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
28772         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
28773         is not defined.
28774
28775 2007-09-12  Eric Blake  <ebb9@byu.net>
28776
28777         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
28778         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
28779         Autoconf definition.
28780         * modules/euidaccess (Depends-on): Add extensions, for
28781         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
28782         * modules/fnmatch (Depends-on): Likewise.
28783         * modules/getaddrinfo (Depends-on): Likewise.
28784         * modules/getdelim (Depends-on): Likewise.
28785         * modules/getline (Depends-on): Likewise.
28786         * modules/getsubopt (Depends-on): Likewise.
28787         * modules/gettext (Depends-on): Likewise.
28788         * modules/group-member (Depends-on): Likewise.
28789         * modules/mbchar (Depends-on): Likewise.
28790         * modules/memmem (Depends-on): Likewise.
28791         * modules/mempcpy (Depends-on): Likewise.
28792         * modules/memrchr (Depends-on): Likewise.
28793         * modules/pagealign_alloc (Depends-on): Likewise.
28794         * modules/readutmp (Depends-on): Likewise.
28795         * modules/stpcpy (Depends-on): Likewise.
28796         * modules/stpncpy (Depends-on): Likewise.
28797         * modules/strchrnul (Depends-on): Likewise.
28798         * modules/strndup (Depends-on): Likewise.
28799         * modules/strsep (Depends-on): Likewise.
28800         * modules/strverscmp (Depends-on): Likewise.
28801         * modules/vasprintf (Depends-on): Likewise.
28802         * modules/wcwidth (Depends-on): Likewise.
28803         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
28804         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
28805         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
28806         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
28807         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28808         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28809         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
28810         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
28811         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
28812         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
28813         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28814         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
28815         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
28816         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
28817         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
28818         * m4/readutmp.m4 (gl_READUTMP): Likewise.
28819         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28820         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
28821         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28822         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
28823         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
28824         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
28825         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
28826         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
28827         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
28828         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28829         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
28830         so that lock.m4 can be used in gettext without extensions module.
28831
28832 2007-09-11  Bruno Haible  <bruno@clisp.org>
28833
28834         * m4/isc-posix.m4: Remove file.
28835         Suggested by Eric Blake.
28836
28837 2007-09-11  Eric Blake  <ebb9@byu.net>
28838
28839         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
28840
28841 2007-09-10  Bruno Haible  <bruno@clisp.org>
28842
28843         * posix-modules: Fix typo in error message.
28844         Reported by Matt <mkraai@beckman.com>.
28845
28846 2007-09-09  Bruno Haible  <bruno@clisp.org>
28847
28848         * doc/functions/getdelim.texi: Update list of platforms lacking the
28849         function.
28850         * doc/functions/getline.texi: Likewise.
28851
28852 2007-09-09  Jim Meyering  <jim@meyering.net>
28853
28854         * lib/hash.c (hash_initialize): Detect calloc failure.
28855         Reported by Bruno Haible.
28856
28857 2007-09-09  Bruno Haible  <bruno@clisp.org>
28858
28859         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
28860         malloc or realloc fails.
28861
28862 2007-09-09  Bruno Haible  <bruno@clisp.org>
28863
28864         * modules/getcwd (Depends-on): Add malloc-posix.
28865         * modules/glob (Depends-on): Likewise.
28866         * modules/putenv (Depends-on): Likewise.
28867         * modules/strdup (Depends-on): Likewise.
28868         * modules/getdelim (Depends-on): Add realloc-posix.
28869         * modules/read-file (Depends-on): Likewise.
28870
28871 2007-09-09  Bruno Haible  <bruno@clisp.org>
28872
28873         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
28874         (gl_FUNC_MALLOC_POSIX): Require it.
28875         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
28876         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
28877         * modules/realloc (Files): Add m4/malloc.m4.
28878         * modules/calloc (Files): Likewise.
28879
28880 2007-09-09  Bruno Haible  <bruno@clisp.org>
28881
28882         * modules/malloc-posix: New file.
28883         * modules/malloc (Depends-on): Add malloc-posix.
28884         * lib/malloc.c: Include errno.h.
28885         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
28886         and a POSIX-compatible malloc into a single function. Set ENOMEM
28887         when returning NULL.
28888         * m4/malloc.m4: New file.
28889         * doc/functions/malloc.texi: Mention the malloc-posix module.
28890         * lib/stdlib_.h (malloc): New declaration.
28891         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28892         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
28893         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
28894         and HAVE_MALLOC_POSIX.
28895
28896 2007-09-09  Bruno Haible  <bruno@clisp.org>
28897
28898         * modules/realloc-posix: New file.
28899         * modules/realloc (Depends-on): Add realloc-posix.
28900         * lib/realloc.c: Include errno.h.
28901         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
28902         and a POSIX-compatible realloc into a single function. Set ENOMEM
28903         when returning NULL.
28904         * m4/realloc.m4: New file.
28905         * doc/functions/realloc.texi: Mention the realloc-posix module.
28906         * lib/stdlib_.h (realloc): New declaration.
28907         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28908         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
28909         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
28910         and HAVE_REALLOC_POSIX.
28911
28912 2007-09-09  Bruno Haible  <bruno@clisp.org>
28913
28914         * modules/calloc-posix: New file.
28915         * modules/calloc (Depends-on): Add calloc-posix.
28916         * lib/calloc.c: Include errno.h.
28917         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
28918         and a POSIX-compatible calloc into a single function. Set ENOMEM
28919         when returning NULL.
28920         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
28921         * doc/functions/calloc.texi: Mention the calloc-posix module.
28922         * lib/stdlib_.h (calloc): New declaration.
28923         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28924         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
28925         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
28926         and HAVE_CALLOC_POSIX.
28927
28928 2007-09-09  Bruno Haible  <bruno@clisp.org>
28929
28930         Allow for modules to show an arbitrary notice.
28931         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
28932         * gnulib-tool: New option --extract-notice.
28933         (func_usage): Document it.
28934         (sed_extract_prog): Update.
28935         (func_get_notice): New function.
28936         (func_modules_notice): New function.
28937         (func_import, func_create_testdir): Invoke it.
28938         Suggested by Jim Meyering.
28939
28940 2007-09-09  Bruno Haible  <bruno@clisp.org>
28941
28942         * gnulib-tool: New options --verbose, --quiet.
28943         (func_usage): Document them.
28944         (verbose): New variable.
28945         (func_execute_command): New function.
28946         (func_import): Don't show the module list and the file list if
28947         $verbose < 0.
28948         (func_create_testdir): Likewise. Use func_execute_command.
28949         (func_create_megatestdir): Use func_execute_command.
28950
28951 2007-09-08  Bruno Haible  <bruno@clisp.org>
28952
28953         * gnulib-tool (func_import): Prefer rsync over wget when available,
28954         for fetching the PO files.
28955
28956 2007-09-08  Bruno Haible  <bruno@clisp.org>
28957
28958         * posix-modules: New file. Portions copied from gnulib-tool.
28959         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
28960
28961 2007-09-08  Jim Meyering  <jim@meyering.net>
28962
28963         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
28964         * lib/fpending.h: Rename from __fpending.h.
28965         * lib/fpending.c: Rename from __fpending.c.
28966         Include "fpending.h", not "__fpending.h".
28967         * lib/__fpending.h, lib/__fpending.c: Remove files.
28968         * modules/fpending (Files): Reflect new file names.
28969         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
28970
28971 2007-09-08  Bruno Haible  <bruno@clisp.org>
28972
28973         * m4/inttypes-h.m4: Remove stub file.
28974
28975 2007-09-07  Simon Josefsson  <simon@josefsson.org>
28976
28977         * doc/headers/stdint.texi: Discuss #include_next issue.
28978
28979 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
28980
28981         * build-aux/bootstrap: Remove obsolete comment about wget --help.
28982
28983 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28984
28985         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
28986         in variable name.
28987
28988 2007-09-03  Jim Meyering  <jim@meyering.net>
28989
28990         New module: git-version-gen.
28991         * modules/git-version-gen: New file.
28992
28993         Import changes from coreutils for bootstrap script.
28994
28995         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
28996
28997         bootstrap: uses rsync to download the .po files
28998         * build-aux/bootstrap (po_download_command_format): New global.
28999         (download_po_files): Use rsync.
29000         (update_po_files): Don't remove .po files after download,
29001         so future rsync runs can take advantage of the copies.
29002
29003         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
29004
29005         Solve the unnecessary-.po-file-regeneration problem once and for all.
29006         * build-aux/bootstrap (download_po_files): New function, renamed from
29007         get_translations.  Now, downloads, but doesn't update LINGUAS.
29008         (update_po_files): New function.
29009
29010         bootstrap: Ignore more.
29011         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
29012         uniwidth to e.g., lib/.gitignore.
29013         (slurp): Handle the sys_stat_.h -> sys mapping, too.
29014
29015         * build-aux/bootstrap: New setting: vc_ignore.
29016         (insert_sorted_if_absent): Create $file if absent.
29017         Adapt to new, possibly empty, list: $vc_ignore.
29018
29019         bootstrap: generate more ignorable names
29020         * build-aux/bootstrap (slurp): When generating ignorable names,
29021         also map .sin to .sed, .gperf to .c, and .y to .c.
29022
29023 2007-09-03  Jim Meyering  <jim@meyering.net>
29024
29025         * build-aux/git-version-gen: New file, from coreutils.  For details, see
29026         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
29027
29028 2007-09-02  Bruno Haible  <bruno@clisp.org>
29029
29030         Fix mis-recognition of 'mcs' on QNX 6.
29031         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
29032         output contains the string "Mono".
29033         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
29034         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
29035
29036 2007-09-01  Bruno Haible  <bruno@clisp.org>
29037
29038         Fix collision between uniwidth/* and linebreak modules.
29039         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
29040         u32_width): Remove declarations.
29041         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
29042         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
29043         streq3, streq2, streq1, streq0): Remove functions.
29044         (STREQ): Remove macro.
29045         (is_cjk_encoding): Remove function.
29046         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
29047         (uc_width, u8_width, u16_width, u32_width): Remove functions.
29048         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
29049         * NEWS: Document the change.
29050
29051 2007-09-01  Bruno Haible  <bruno@clisp.org>
29052
29053         * lib/streq.h: Add double-inclusion guard.
29054
29055 2007-09-01  Karl Berry  <karl@gnu.org>
29056
29057         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
29058
29059 2007-08-28  Jim Meyering  <jim@meyering.net>
29060
29061         Rename mreadlink_with_size to areadlink_with_size.
29062         * NEWS: Document the change.
29063         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
29064         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
29065         * lib/mreadlink.h: Rename this to...
29066         * lib/areadlink.h: ...this.
29067         * modules/mreadlink-with-size: Rename this to...
29068         * modules/areadlink-with-size: ...this.
29069         * lib/canonicalize.c: Reflect the renaming.
29070         * modules/canonicalize: Likewise.
29071
29072 2007-08-26  Bruno Haible  <bruno@clisp.org>
29073
29074         * gnulib-tool (func_import): When deciding which files to remove,
29075         consider also dangling symbolic links.
29076         Reported by Eric Blake.
29077
29078 2007-08-26  Bruno Haible  <bruno@clisp.org>
29079
29080         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
29081
29082 2007-08-23  Simon Josefsson  <simon@josefsson.org>
29083
29084         * lib/readline.c: Don't include getline.h, the prototype is now
29085         found in stdio.h.
29086
29087 2007-08-23  Jim Meyering  <jim@meyering.net>
29088
29089         Getdelim touchup.
29090         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
29091         around the funlockfile call, since funlockfile never sets errno.
29092         Don't set errno upon failed realloc.
29093
29094 2007-08-22  Eric Blake  <ebb9@byu.net>
29095
29096         Getline touchups.
29097         * lib/getdelim.c (getdelim): Revert regression that required *n to
29098         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
29099         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
29100         getdelim, rather than whether implementation is missing.
29101         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
29102         * lib/stdio_.h (getline): Also declare if replacement is
29103         required.
29104         * doc/functions/getdelim.texi: New file.
29105         * doc/functions/getline.texi: Likewise.
29106         * doc/gnulib.texi (Function Substitutes): Add new files.
29107         Reported by Bruno Haible.
29108
29109 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
29110
29111         * users.txt: Add Guile.
29112
29113 2007-08-22  Eric Blake  <ebb9@byu.net>
29114
29115         * tests/test-getdelim.c (main): Use remove, not unlink.
29116         * tests/test-getline.c (main): Likewise.
29117
29118         Move getline and getdelim into stdio.h, per POSIX 200x.
29119         * modules/getline (Files): Remove getline.h.
29120         (Depends-on): Add stdio.
29121         (configure.ac): Add module indicator.
29122         * modules/getdelim (Files): Remove getdelim.h.
29123         (Depends-on): Add stdio.
29124         (configure.ac): Add module indicator.
29125         * modules/stdio (Makefile.am): Work with new indicators.
29126         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
29127         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
29128         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29129         * lib/getdelim.h: Delete.
29130         * lib/getline.h: Delete.
29131         * lib/stdio_.h (getdelim, getline): Declare.
29132         * modules/getdelim-tests: New module.
29133         * modules/getline-tests: Likewise.
29134         * tests/test-getdelim.c: New file.
29135         * tests/test-getline.c: Likewise.
29136         * NEWS: Document the change.
29137         * lib/getline.c: Update choice of header.
29138         * lib/csharpcomp.c: Likewise.
29139         * lib/getpass.c: Likewise.
29140         * lib/javacomp.c: Likewise.
29141         * lib/javaversion.c: Likewise.
29142         * lib/yesno.c: Likewise.
29143         * lib/getdelim.c: Likewise.
29144         (getdelim): Set errno on failure, and avoid memory leak.
29145
29146 2007-08-19  Bruno Haible  <bruno@clisp.org>
29147
29148         * modules/closein (Depends-on): Add freadahead.
29149         * lib/closein.c: Include freadahead.h.
29150         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
29151         is zero.
29152
29153 2007-08-19  Bruno Haible  <bruno@clisp.org>
29154
29155         * modules/freadahead-tests: New file.
29156         * tests/test-freadahead.sh: New file.
29157         * tests/test-freadahead.c: New file.
29158
29159         * modules/freadahead: New file.
29160         * lib/freadahead.h: New file.
29161         * lib/freadahead.c: New file.
29162         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
29163         fbufmode, fpurge, freadable, fwritable.
29164
29165 2007-08-19  Eric Blake  <ebb9@byu.net>
29166
29167         Test yesno in combination with closein.
29168         * lib/yesno.c (yesno): Document use of stdin.
29169         * modules/yesno-tests (Files): New module.
29170         * tests/test-yesno.c (main): New file.
29171         * tests/test-yesno.sh: Likewise.
29172
29173 2007-08-19  Bruno Haible  <bruno@clisp.org>
29174
29175         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
29176         * lib/fseeko.c (rpl_fseeko): Likewise.
29177         * lib/fseterr.c (fseterr): Likewise.
29178
29179 2007-08-19  Bruno Haible  <bruno@clisp.org>
29180
29181         * tests/test-lseek.c (main): Disable a test for BeOS.
29182         * doc/functions/lseek.texi: Document the BeOS bug.
29183
29184 2007-08-19  Bruno Haible  <bruno@clisp.org>
29185             Eric Blake  <ebb9@byu.net>
29186
29187         * lib/lseek.c: Include <sys/stat.h>.
29188         (rpl_lseek): Add workaround code also for Unix platforms.
29189         Needed for BeOS.
29190         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
29191         * doc/functions/lseek.texi: Document BeOS definiency.
29192
29193 2007-08-18  Bruno Haible  <bruno@clisp.org>
29194
29195         * modules/fstrcmp-tests: New file.
29196         * tests/test-fstrcmp.c: New file.
29197
29198 2007-08-18  Bruno Haible  <bruno@clisp.org>
29199
29200         * modules/fstrcmp: New file, from GNU gettext with modifications.
29201         * lib/fstrcmp.h: New file, from GNU gettext.
29202         * lib/fstrcmp.c: New file, from GNU gettext.
29203         * MODULES.html.sh (String handling): Add fstrcmp.
29204
29205 2007-08-18  Bruno Haible  <bruno@clisp.org>
29206
29207         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
29208         'bool'.
29209         (diag, compareseq): Remove const from the ctxt argument.
29210         (USE_HEURISTIC): Undefine at the end.
29211
29212 2007-08-18  Jim Meyering  <jim@meyering.net>
29213
29214         New file: lib/idcache.h
29215         * NEWS: Mention the addition.
29216         * modules/idcache (Files): Add lib/idcache.h
29217         * lib/idcache.c: Include "idcache.h".
29218         Don't include <sys/types.h>.
29219         Add a FIXME comment.
29220         Move file-scoped "static" declarations to the top.
29221         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
29222
29223 2007-08-17  Bruno Haible  <bruno@clisp.org>
29224         and Paul Eggert  <eggert@cs.ucla.edu>
29225
29226         * MODULES.html.sh: Add diffseq.
29227         * modules/diffseq: New file.
29228         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
29229         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
29230
29231 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
29232
29233         Import changes from coreutils for bootstrap script.
29234
29235         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
29236
29237         * build-aux/bootstrap (slurp): Work even in environments where
29238         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
29239         current code does not slurp files whose names start with ".", and
29240         this looks like it might be a troublesome area.
29241
29242         2007-07-11  Jim Meyering  <jim@meyering.net>
29243
29244         If there's a GPL vN copyright comment, require that N == 3.
29245
29246         2007-07-08  Jim Meyering  <jim@meyering.net>
29247
29248         Run the coreutils-specific code only if tests/Makefile.am.in exists.
29249         * build-aux/bootstrap (mam_template): Move definition out of loop.
29250
29251         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
29252
29253         * build-aux/bootstrap (symlink_to_dir): Rename function from
29254         symlink_to_gnulib.  Add a directory parameter.  Update all
29255         callers.
29256         (cp_mark_as_generated): Also check for -- and link to -- files in
29257         gl/.
29258
29259         2007-07-08  Jim Meyering  <jim@meyering.net>
29260
29261         Adapt to deeper hierarchy in gnulib.
29262         * build-aux/bootstrap (symlink_to_dir): If the destination
29263         directory doesn't exist, create it. This is required at least for
29264         "lib/uniwidth/cjk.h".
29265
29266         2007-05-15  Jim Meyering  <jim@meyering.net>
29267
29268         * build-aux/bootstrap: Now that generated Makefile.am files
29269         are no longer under version control, they must be created at
29270         bootstrap time.
29271
29272 2007-08-14  Ben Pfaff  <blp@gnu.org>
29273
29274         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
29275
29276 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
29277
29278         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
29279         given the changes below.
29280         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
29281         even on hosts that have padding bits beyond the supported 64.
29282
29283 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
29284
29285         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
29286         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
29287         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
29288         depends on it.
29289         (xstrtol_error): Remove.
29290         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
29291         but with a different signature.
29292         (ATTRIBUTE_NORETURN, __attribute__): New macros.
29293         * lib/xstrtol-error.c: Include exitfail.h.
29294         (xstrtol_fatal): New function, with a different signature from the
29295         old xstrtol_error, so that the caller need not worry about passing
29296         in an exit status, or about storage management of the option argument.
29297         (xstrtol_error): Now a static function.  Redo signature to
29298         implement xstrtol_fatal.  Output the correct number of hyphens in
29299         front of the option so that the caller need not worry about
29300         storage management.
29301         (N_): New macro.
29302         (_): Remove; not used now.
29303         * modules/xstrtol: Depend on getopt.
29304         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
29305         of old STRTOL_FATAL_ERROR macro.
29306         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
29307         of test program.
29308         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
29309         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
29310
29311 2007-08-08  Eric Blake  <ebb9@byu.net>
29312
29313         * lib/xstrtol-error.c: Add missing include.
29314
29315         Move xstrtol messages into gnulib domain, when --pobase is used.
29316         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
29317         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
29318         * modules/xstrtol (Files): Distribute new file.
29319         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
29320         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
29321         * tests/test-xstrtol.c: ...into new file.
29322         * tests/test-xstrtoul.c: Also test xstrtoul.
29323         * tests/test-xstrtoimax.c: Also test xstrtoimax.
29324         * tests/test-xstrtoumax.c: Also test xstrtoumax.
29325         * tests/test-xstrtol.sh: Drive the tests.
29326         * tests/test-xstrtoimax.sh: Likewise.
29327         * tests/test-xstrtoumax.sh: Likewise.
29328         * modules/xstrtol-tests: New module.
29329         * modules/xstrtoimax-tests: Likewise.
29330         * modules/xstrtoumax-tests: Likewise.
29331
29332 2007-08-08  Jim Meyering  <jim@meyering.net>
29333
29334         New function: mfile_name_concat.
29335         * lib/filenamecat.c (mfile_name_concat): New function, just like
29336         file_name_concat, but return NULL upon failure rather than exiting
29337         with a diagnostic.
29338         * lib/filenamecat.h: Declare it.
29339
29340 2007-08-07  Bruno Haible  <bruno@clisp.org>
29341
29342         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
29343         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
29344         warning from gcc.
29345         Reported by Eric Blake.
29346
29347 2007-08-07  Simon Josefsson  <simon@josefsson.org>
29348
29349         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
29350         * modules/crypto/arcfour (License): Likewise.
29351         * modules/crypto/des-tests (License): Likewise.
29352         * modules/crypto/gc-arctwo-tests (License): Likewise.
29353         * modules/crypto/gc-des-tests (License): Likewise.
29354         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
29355         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
29356         * modules/crypto/gc-md2-tests (License): Likewise.
29357         * modules/crypto/gc-md4-tests (License): Likewise.
29358         * modules/crypto/gc-md5-tests (License): Likewise.
29359         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
29360         * modules/crypto/gc-rijndael-tests (License): Likewise.
29361         * modules/crypto/gc-sha1-tests (License): Likewise.
29362         * modules/crypto/gc-tests (License): Likewise.
29363         * modules/crypto/hmac-md5 (License): Likewise.
29364         * modules/crypto/hmac-sha1 (License): Likewise.
29365         * modules/crypto/md2-tests (License): Likewise.
29366         * modules/crypto/md4-tests (License): Likewise.
29367         * modules/crypto/md5 (License): Likewise.
29368         * modules/crypto/rijndael (License): Likewise.
29369         * modules/crypto/sha1 (License): Likewise.
29370         * modules/memxor (License): Likewise.
29371
29372 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
29373         and Bruno Haible  <bruno@clisp.org>
29374
29375         * NEWS: Describe interface changes to human, xstrtol.
29376         * lib/human.h: Include <xstrtol.h>.
29377         (human_options): Return enum strtol_error, not int.  Remove
29378         bool arg; take int * instead.
29379         * lib/human.c: Don't include "gettext.h".
29380         (_): Remove; no longer used.
29381         Don't include <xstrtol.h>, since human.h does it.
29382         (human_options): Adjust to abovementioned interface changes.
29383         Do not report error to stderr; that's now the caller's
29384         responsibility.
29385         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
29386         interface change.
29387         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
29388         Str, Argument_type_string.  All uses changed.  Put " argument"
29389         in diagnostics to make them clearer.  Change wording of suffix
29390         message for clarity.
29391         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
29392         Argument_type_string.
29393         (STRTOL_FATAL_WARN): Remove; no longer used.
29394         * modules/human (Depends-on): Remove gettext-h.
29395
29396 2007-08-06  Simon Josefsson  <simon@josefsson.org>
29397
29398         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
29399
29400 2007-07-31  Bruno Haible  <bruno@clisp.org>
29401
29402         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
29403         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
29404         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
29405
29406 2007-07-31  Bruno Haible  <bruno@clisp.org>
29407
29408         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
29409         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
29410
29411 2007-07-30  Bruno Haible  <bruno@clisp.org>
29412
29413         * modules/base64 (License): Use the synonymous term "LGPLv2+".
29414         * modules/c-ctype (License): Likewise.
29415         * modules/c-strcase (License): Likewise.
29416         * modules/check-version (License): Likewise.
29417         * modules/iconv (License): Likewise.
29418         * modules/iconv_open (License): Likewise.
29419         * modules/read-file (License): Likewise.
29420         * modules/striconv (License): Likewise.
29421         * modules/strverscmp (License): Likewise.
29422         * modules/vasprintf (License): Likewise.
29423         * modules/crypto/des (License): Likewise.
29424         * modules/crypto/gc (License): Likewise.
29425         * modules/crypto/gc-arcfour (License): Likewise.
29426         * modules/crypto/gc-arctwo (License): Likewise.
29427         * modules/crypto/gc-des (License): Likewise.
29428         * modules/crypto/gc-hmac-md5 (License): Likewise.
29429         * modules/crypto/gc-hmac-sha1 (License): Likewise.
29430         * modules/crypto/gc-md2 (License): Likewise.
29431         * modules/crypto/gc-md4 (License): Likewise.
29432         * modules/crypto/gc-md5 (License): Likewise.
29433         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
29434         * modules/crypto/gc-random (License): Likewise.
29435         * modules/crypto/gc-rijndael (License): Likewise.
29436         * modules/crypto/gc-sha1 (License): Likewise.
29437         * modules/crypto/md2 (License): Likewise.
29438         * modules/crypto/md4 (License): Likewise.
29439
29440 2007-07-30  Jim Meyering  <jim@meyering.net>
29441
29442         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
29443         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
29444         it has valid stat data.  This bug would cause du not to count the
29445         sizes of inaccessible directories.
29446         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
29447         in <http://bugzilla.redhat.com/250077>.
29448
29449 2007-07-25  Peter O'Gorman  <peter@pogma.com>
29450             Bruno Haible  <bruno@clisp.org>
29451
29452         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
29453         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
29454         #include_next, gives a diagnostic about it, but reports no error in
29455         the exit code.
29456         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
29457
29458 2007-07-24  Ben Pfaff  <blp@gnu.org>
29459
29460         Improve name: "count-one-bits" is better than "popcount".
29461         * MODULES.html.sh: Update name.
29462         * lib/popcount.h: Renamed lib/count-one-bits.h.
29463         (popcount): Renamed count_one_bits.
29464         (popcountl): Renamed count_one_bits_l.
29465         (popcountll): Renamed count_one_bits_ll.
29466         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
29467         * modules/popcount: Renamed module/count-one-bits.
29468         * modules/popcount-tests: Renamed module/count-one-bits-tests.
29469         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
29470
29471 2007-07-23  Ben Pfaff  <blp@gnu.org>
29472
29473         * lib/popcount.h (popcount32): Reduce size of constants, to allow
29474         better code generation, and add U to large constants to avoid
29475         warnings, in non-GCC case.
29476         Suggested by Bruno Haible.
29477
29478 2007-07-23  Ben Pfaff  <blp@gnu.org>
29479
29480         * lib/popcount.h: Use verify_true instead of if...abort.
29481         * modules/popcount: Depend on verify module.
29482         Suggested by Jim Meyering.
29483
29484 2007-07-23  Bruno Haible  <bruno@clisp.org>
29485
29486         * gnulib-tool (func_import): Create a .cvsignore file also when the
29487         directory is not yet in CVS but the toplevel directory is. When
29488         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
29489         Reported by Karl Berry.
29490
29491 2007-07-22  Ben Pfaff  <blp@gnu.org>
29492
29493         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
29494         case.
29495         Suggested by Eric Blake.
29496
29497 2007-07-22  Ben Pfaff  <blp@gnu.org>
29498
29499         New module: popcount.
29500         * MODULES.html.sh: Add popcount.
29501         * modules/popcount: New file.
29502         * modules/popcount-tests: New file.
29503         * tests/test-popcount.c: New file.
29504         * lib/popcount.h: New file.
29505         * m4/popcount.m4: New file.
29506
29507 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
29508
29509         * build-aux/announce-gen: Update to GPLv3.
29510
29511         * build-aux/config.guess: Update from config.
29512
29513 2007-07-21  Bruno Haible  <bruno@clisp.org>
29514
29515         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
29516         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
29517
29518 2007-07-20  Jim Meyering  <jim@meyering.net>
29519
29520         * check-module: Diagnose a self-dependency.
29521
29522 2007-07-19  Bruno Haible  <bruno@clisp.org>
29523
29524         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
29525         empty.
29526         Reported by Eric Blake.
29527
29528 2007-07-18  Bruno Haible  <bruno@clisp.org>
29529
29530         * gnulib-tool: New options --po-base, --po-domain.
29531         (func_usage): Document them.
29532         (pobase, po_domain): New variables.
29533         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
29534         DEFAULT_TEXT_DOMAIN.
29535         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
29536         (func_import): Consider pobase and po_domain. Create a po/ directory.
29537         (func_create_testdir): Set pobase and po_domain to empty.
29538         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
29539         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
29540
29541 2007-07-18  Bruno Haible  <bruno@clisp.org>
29542
29543         * gnulib-tool (func_get_automake_snippet): Synthesize also an
29544         EXTRA_DIST augmentation for files in build-aux/.
29545
29546 2007-07-16  Bruno Haible  <bruno@clisp.org>
29547
29548         * modules/lseek (License): Use the synonymous term "LGPLv2+".
29549         * modules/getdelim (License): Likewise.
29550
29551 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29552
29553         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
29554         * modules/d-type (License): Likewise.
29555         * modules/extensions (License): Likewise.
29556         * modules/fnmatch (License): Likewise.
29557         * modules/fseeko (License): Likewise.
29558         * modules/getaddrinfo (License): Likewise.
29559         * modules/getline (License): Likewise.
29560         * modules/getlogin_r (License): Likewise.
29561         * modules/getpass (License): Likewise.
29562         * modules/gettimeofday (License): Likewise.
29563         * modules/glob (License): Likewise.
29564         * modules/inet_ntop (License): Likewise.
29565         * modules/malloc (License): Likewise.
29566         * modules/malloca (License): Likewise.
29567         * modules/memmem (License): Likewise.
29568         * modules/mempcpy (License): Likewise.
29569         * modules/memset (License): Likewise.
29570         * modules/minmax (License): Likewise.
29571         * modules/mktime (License): Likewise.
29572         * modules/netinet_in (License): Likewise.
29573         * modules/pathmax (License): Likewise.
29574         * modules/poll (License): Likewise.
29575         * modules/regex (License): Likewise.
29576         * modules/snprintf (License): Likewise.
29577         * modules/stdbool (License): Likewise.
29578         * modules/stdint (License): Likewise.
29579         * modules/stdio (License): Likewise.
29580         * modules/strcase (License): Likewise.
29581         * modules/strcasestr (License): Likewise.
29582         * modules/strdup (License): Likewise.
29583         * modules/string (License): Likewise.
29584         * modules/strndup (License): Likewise.
29585         * modules/strnlen (License): Likewise.
29586         * modules/strpbrk (License): Likewise.
29587         * modules/strptime (License): Likewise.
29588         * modules/strsep (License): Likewise.
29589         * modules/sys_select (License): Likewise.
29590         * modules/sys_socket (License): Likewise.
29591         * modules/sys_stat (License): Likewise.
29592         * modules/sys_time (License): Likewise.
29593         * modules/time (License): Likewise.
29594         * modules/time_r (License): Likewise.
29595         * modules/timegm (License): Likewise.
29596         * modules/unistd (License): Likewise.
29597         * modules/vsnprintf (License): Likewise.
29598         * modules/wctype (License): Likewise.
29599
29600 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29601
29602         * modules/argz (License): LGPLv2+.
29603
29604 2007-07-15  Karl Berry  <karl@gnu.org>
29605
29606         * doc/gnulib.texi: revise node structure per new fdl.texi.
29607
29608 2007-07-14  Bruno Haible  <bruno@clisp.org>
29609
29610         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
29611         the output file.
29612         * lib/uniname/uninames.h: Regenerated.
29613
29614 2007-07-14  Karl Berry  <karl@gnu.org>
29615
29616         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
29617         omitting sectioning and index commands.
29618
29619 2007-07-13  Bruno Haible  <bruno@clisp.org>
29620
29621         New gnulib-tool option --more-symlinks.
29622         * gnulib-tool (func_usage): Document --more-symlinks.
29623         (do_copyrights): New variable.
29624         Recognize option --more-symlinks.
29625         (func_import): Don't add a copyright notice transform to
29626         sed_transform_lib_file if do_copyrights is empty.
29627
29628 2007-07-13  Bruno Haible  <bruno@clisp.org>
29629
29630         * lib/vasnprintf.c (decimal_point_char): Define also if
29631         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
29632         && !NEED_PRINTF_DIRECTIVE_A.
29633         Reported by Clemens Koller <clemens.koller@anagramm.de> via
29634         Gary V. Vaughan <gary@gnu.org>.
29635
29636 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
29637
29638         * lib/inttypes_.h: Undo previous change, since it was fixed
29639         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
29640
29641 2007-07-13  Bruno Haible  <bruno@clisp.org>
29642
29643         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
29644         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
29645
29646 2007-07-13  Jim Meyering  <jim@meyering.net>
29647
29648         df: Don't fail for Tru64's "file-on-file mount".
29649         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
29650         so we fall through and use statfs instead.  Details here:
29651         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
29652         Reported by Albert Chin.
29653
29654 2007-07-13  Bruno Haible  <bruno@clisp.org>
29655
29656         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
29657         * modules/configmake (License): Likewise.
29658         * modules/gettext (License): Likewise.
29659         * modules/gettext-h (License): Likewise.
29660         * modules/include_next (License): Likewise.
29661         * modules/link-warning (License): Likewise.
29662         * modules/localcharset (License): Likewise.
29663         * modules/localename (License): Likewise.
29664         * modules/lock (License): Likewise.
29665         * modules/relocatable-lib-lgpl (License): Likewise.
29666         * modules/size_max (License): Likewise.
29667         * modules/vasnprintf (License): Likewise.
29668         * modules/wchar (License): Likewise.
29669         * modules/xsize (License): Likewise.
29670
29671 2007-07-13  Bruno Haible  <bruno@clisp.org>
29672
29673         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
29674         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
29675
29676 2007-07-12  Bruno Haible  <bruno@clisp.org>
29677
29678         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
29679         in the modules files.
29680
29681 2007-07-11  Karl Berry  <karl@gnu.org>
29682
29683         * MODULES.html.sh (func_module): use
29684          sed -e '\|^'"${includefile}"'$|d'
29685          instead of /.../d, to avoid errors on $includefile's containing /.
29686
29687 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
29688
29689         * gnulib-tool (func_import): Avoid duplication of --avoid
29690         statements
29691         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
29692         names to `_' in variable names.
29693
29694 2007-07-10  Eric Blake  <ebb9@byu.net>
29695
29696         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
29697         * NEWS: Document this change.
29698
29699 2007-07-08  Bruno Haible  <bruno@clisp.org>
29700
29701         Update to Unicode 5.0.
29702         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
29703         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
29704         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
29705         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
29706         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
29707         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
29708         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
29709         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
29710         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
29711         U+10A3F, U+1D242..U+1D244.
29712         (nonspacing_table_ind): Update.
29713         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
29714         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
29715
29716 2007-07-08  Bruno Haible  <bruno@clisp.org>
29717
29718         Update to Unicode 5.0.
29719         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
29720         code transform. Extend the name index field of unicode_name_to_code and
29721         unicode_code_to_name from 16 to 24 bits.
29722         * lib/uniname/uniname.c (unicode_character_name,
29723         unicode_name_character): Add the range 0x12xxx to the code transform.
29724         * lib/uniname/uninames.h: Regenerated.
29725         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
29726
29727 2007-07-07  Bruno Haible  <bruno@clisp.org>
29728
29729         * modules/wcwidth-tests: New file.
29730         * tests/test-wcwidth.c: New file.
29731
29732         Work around MacOS X wcwidth() bug.
29733         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
29734         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
29735         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
29736         original wcwidth in non-UTF-8 locales.
29737         * modules/wcwidth (Depends-on): Add localcharset, streq,
29738         uniwidth/width.
29739         * doc/functions/wcwidth.texi: Update.
29740
29741 2007-07-07  Bruno Haible  <bruno@clisp.org>
29742
29743         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
29744         (wcwidth): New declaration.
29745         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
29746         macros.
29747         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
29748         here. Prepare for creating <wchar.h> unconditionally.
29749         * modules/wchar (Depends-on): Add link-warning.
29750         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
29751         REPLACE_WCWIDTH, and GL_LINK_WARNING.
29752         * lib/wcwidth.h: Remove file.
29753         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
29754         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
29755         * modules/wcwidth (Files): Remove lib/wcwidth.h.
29756         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
29757         (Include): Replace wcwidth.h with <wchar.h>.
29758         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
29759         * lib/mbchar.h: Don't include wcwidth.h.
29760         * lib/mbswidth.c: Likewise.
29761         * NEWS: Mention the change.
29762
29763 2007-07-07  Bruno Haible  <bruno@clisp.org>
29764
29765         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
29766         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
29767         definition with an external declaration.
29768         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
29769         defined as a function. Remove AC_C_INLINE requirement.
29770         * modules/wcwidth (Files): Add lib/wcwidth.c.
29771         (Makefile.am): Remove redundant statement.
29772
29773 2007-07-07  Bruno Haible  <bruno@clisp.org>
29774
29775         * MODULES.html.sh (Unicode string functions): Add the new modules.
29776
29777         * tests/uniwidth/test-u32-strwidth.c: New file.
29778         * modules/uniwidth/u32-strwidth-tests: New file.
29779
29780         * lib/uniwidth/u32-strwidth.c: New file.
29781         * modules/uniwidth/u32-strwidth: New file.
29782
29783         * tests/uniwidth/test-u16-strwidth.c: New file.
29784         * modules/uniwidth/u16-strwidth-tests: New file.
29785
29786         * lib/uniwidth/u16-strwidth.c: New file.
29787         * modules/uniwidth/u16-strwidth: New file.
29788
29789         * tests/uniwidth/test-u8-strwidth.c: New file.
29790         * modules/uniwidth/u8-strwidth-tests: New file.
29791
29792         * lib/uniwidth/u8-strwidth.c: New file.
29793         * modules/uniwidth/u8-strwidth: New file.
29794
29795         * tests/uniwidth/test-u32-width.c: New file.
29796         * modules/uniwidth/u32-width-tests: New file.
29797
29798         * lib/uniwidth/u32-width.c: New file.
29799         * modules/uniwidth/u32-width: New file.
29800
29801         * tests/uniwidth/test-u16-width.c: New file.
29802         * modules/uniwidth/u16-width-tests: New file.
29803
29804         * lib/uniwidth/u16-width.c: New file.
29805         * modules/uniwidth/u16-width: New file.
29806
29807         * tests/uniwidth/test-u8-width.c: New file.
29808         * modules/uniwidth/u8-width-tests: New file.
29809
29810         * lib/uniwidth/u8-width.c: New file.
29811         * modules/uniwidth/u8-width: New file.
29812
29813         * tests/uniwidth/test-uc_width.c: New file.
29814         * modules/uniwidth/width-tests: New file.
29815
29816         * lib/uniwidth/width.c: New file, from GNU libiconv.
29817         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
29818         * modules/uniwidth/width: New file.
29819
29820         * lib/uniwidth.h: New file, from GNU libiconv.
29821         * modules/uniwidth/base: New file.
29822
29823 2007-07-07  Bruno Haible  <bruno@clisp.org>
29824
29825         * lib/uniname.h: New file, from GNU gettext.
29826         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
29827         * lib/uniname/uninames.h: New file, from GNU gettext.
29828         * lib/uniname/uniname.c: New file, from GNU gettext.
29829         * tests/uniname/test-uninames.sh: New file.
29830         * tests/uniname/test-uninames.c: New file, from GNU gettext.
29831         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
29832         * modules/uniname/base: New file.
29833         * modules/uniname/uniname: New file.
29834         * modules/uniname/uniname-tests: New file.
29835         * MODULES.html.sh (Unicode string functions): Add the new modules.
29836
29837 2007-07-06  Bruno Haible  <bruno@clisp.org>
29838
29839         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
29840
29841 2007-07-06  Bruno Haible  <bruno@clisp.org>
29842
29843         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
29844         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
29845         includes <cygwin/sys_time.h> which includes <sys/select.h> which
29846         include <sys/time.h>.
29847         Reported by Eric Blake.
29848
29849 2007-07-06  Eric Blake  <ebb9@byu.net>
29850
29851         Fix testing canonicalize on cygwin.
29852         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
29853         Revert patch from 2007-06-19.
29854         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
29855         canonicalize module is also in use.
29856         * tests/test-canonicalize.c: New file.
29857         * tests/test-canonicalize.sh: Likewise.
29858         * modules/canonicalize-tests: Likewise.
29859
29860 2007-07-06  Jim Meyering  <jim@meyering.net>
29861
29862         * lib/getugroups.c (getugroups): Detect getgrent failure.
29863         Adjust comment to reflect reality: this function may return -1.
29864
29865 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
29866
29867         * build-aux/bootstrap (TP_URL,get_translations): Update to use
29868         the new TP address.
29869         (usage): Fix typo
29870         (gnulib_mk): New variable.
29871
29872 2007-07-05  Jim Meyering  <jim@meyering.net>
29873
29874         Don't let endgrent clobber errno, no matter how improbable.
29875         * lib/getugroups.c (getugroups): Save and restore errno around
29876         endgrent call.
29877
29878         Close the group DB even when failing with 2^31 or more members.
29879         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
29880
29881 2007-07-04  Jim Meyering  <jim@meyering.net>
29882
29883         * lib/getugroups.h: New file.
29884         * lib/getugroups.c: Include "getugroups.h".
29885         Remove uses of "register" keyword.
29886         Move local variable, "cp", down into scope where used.
29887         Give "username" parameter the "const" attribute.
29888         * modules/getugroups (Files): Add lib/getugroups.h
29889
29890 2007-07-04  Karl Berry  <karl@gnu.org>
29891
29892         * MODULES.html.sh (func_all_modules): Complete rename of
29893         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
29894
29895 2007-07-02  Bruno Haible  <bruno@clisp.org>
29896
29897         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
29898         mode, when inttypes.h comes from gnulib.
29899         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
29900
29901 2007-07-02  Simon Josefsson  <simon@josefsson.org>
29902
29903         * NEWS: Mention lgpl module name change.
29904
29905         * modules/lgpl-2.1: Renamed from lgpl.
29906
29907         * NEWS: Mention gpl module name change.
29908
29909         * modules/gpl-3.0: New file, based on gpl-2.0.
29910
29911         * modules/gpl-2.0: Renamed from gpl.
29912
29913         * modules/gpl: Fix filename, doc/gpl.texi is now found at
29914         doc/gpl-2.0.texi.
29915
29916 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
29917
29918         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
29919         #define __STDC_LIMIT_MACROS temporarily while including
29920         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
29921         Problem reported by Joel E. Denny in
29922         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
29923
29924 2007-07-01  Bruno Haible  <bruno@clisp.org>
29925
29926         * lib/unistdio.h: New file.
29927         * lib/unistdio/u-asnprintf.h: New file.
29928         * lib/unistdio/u-asprintf.h: New file.
29929         * lib/unistdio/u-printf-args.c: New file.
29930         * lib/unistdio/u-printf-args.h: New file.
29931         * lib/unistdio/u-printf-parse.h: New file.
29932         * lib/unistdio/u-snprintf.h: New file.
29933         * lib/unistdio/u-sprintf.h: New file.
29934         * lib/unistdio/u-vasprintf.h: New file.
29935         * lib/unistdio/u-vsnprintf.h: New file.
29936         * lib/unistdio/u-vsprintf.h: New file.
29937         * lib/unistdio/ulc-asnprintf.c: New file.
29938         * lib/unistdio/ulc-asprintf.c: New file.
29939         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
29940         * lib/unistdio/ulc-printf-parse.c: New file.
29941         * lib/unistdio/ulc-snprintf.c: New file.
29942         * lib/unistdio/ulc-sprintf.c: New file.
29943         * lib/unistdio/ulc-vasnprintf.c: New file.
29944         * lib/unistdio/ulc-vasprintf.c: New file.
29945         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
29946         * lib/unistdio/ulc-vsnprintf.c: New file.
29947         * lib/unistdio/ulc-vsprintf.c: New file.
29948         * lib/unistdio/u8-asnprintf.c: New file.
29949         * lib/unistdio/u8-asprintf.c: New file.
29950         * lib/unistdio/u8-printf-parse.c: New file.
29951         * lib/unistdio/u8-snprintf.c: New file.
29952         * lib/unistdio/u8-sprintf.c: New file.
29953         * lib/unistdio/u8-vasnprintf.c: New file.
29954         * lib/unistdio/u8-vasprintf.c: New file.
29955         * lib/unistdio/u8-vsnprintf.c: New file.
29956         * lib/unistdio/u8-vsprintf.c: New file.
29957         * lib/unistdio/u8-u8-asnprintf.c: New file.
29958         * lib/unistdio/u8-u8-asprintf.c: New file.
29959         * lib/unistdio/u8-u8-snprintf.c: New file.
29960         * lib/unistdio/u8-u8-sprintf.c: New file.
29961         * lib/unistdio/u8-u8-vasnprintf.c: New file.
29962         * lib/unistdio/u8-u8-vasprintf.c: New file.
29963         * lib/unistdio/u8-u8-vsnprintf.c: New file.
29964         * lib/unistdio/u8-u8-vsprintf.c: New file.
29965         * lib/unistdio/u16-asnprintf.c: New file.
29966         * lib/unistdio/u16-asprintf.c: New file.
29967         * lib/unistdio/u16-printf-parse.c: New file.
29968         * lib/unistdio/u16-snprintf.c: New file.
29969         * lib/unistdio/u16-sprintf.c: New file.
29970         * lib/unistdio/u16-vasnprintf.c: New file.
29971         * lib/unistdio/u16-vasprintf.c: New file.
29972         * lib/unistdio/u16-vsnprintf.c: New file.
29973         * lib/unistdio/u16-vsprintf.c: New file.
29974         * lib/unistdio/u16-u16-asnprintf.c: New file.
29975         * lib/unistdio/u16-u16-asprintf.c: New file.
29976         * lib/unistdio/u16-u16-snprintf.c: New file.
29977         * lib/unistdio/u16-u16-sprintf.c: New file.
29978         * lib/unistdio/u16-u16-vasnprintf.c: New file.
29979         * lib/unistdio/u16-u16-vasprintf.c: New file.
29980         * lib/unistdio/u16-u16-vsnprintf.c: New file.
29981         * lib/unistdio/u16-u16-vsprintf.c: New file.
29982         * lib/unistdio/u32-asnprintf.c: New file.
29983         * lib/unistdio/u32-asprintf.c: New file.
29984         * lib/unistdio/u32-printf-parse.c: New file.
29985         * lib/unistdio/u32-snprintf.c: New file.
29986         * lib/unistdio/u32-sprintf.c: New file.
29987         * lib/unistdio/u32-vasnprintf.c: New file.
29988         * lib/unistdio/u32-vasprintf.c: New file.
29989         * lib/unistdio/u32-vsnprintf.c: New file.
29990         * lib/unistdio/u32-vsprintf.c: New file.
29991         * lib/unistdio/u32-u32-asnprintf.c: New file.
29992         * lib/unistdio/u32-u32-asprintf.c: New file.
29993         * lib/unistdio/u32-u32-snprintf.c: New file.
29994         * lib/unistdio/u32-u32-sprintf.c: New file.
29995         * lib/unistdio/u32-u32-vasnprintf.c: New file.
29996         * lib/unistdio/u32-u32-vasprintf.c: New file.
29997         * lib/unistdio/u32-u32-vsnprintf.c: New file.
29998         * lib/unistdio/u32-u32-vsprintf.c: New file.
29999         * tests/unistdio/test-ulc-asnprintf1.c: New file.
30000         * tests/unistdio/test-ulc-asnprintf1.h: New file.
30001         * tests/unistdio/test-ulc-printf1.h: New file.
30002         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
30003         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
30004         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
30005         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
30006         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
30007         * tests/unistdio/test-ulc-vasprintf1.c: New file.
30008         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
30009         * tests/unistdio/test-ulc-vsprintf1.c: New file.
30010         * tests/unistdio/test-u8-asnprintf1.c: New file.
30011         * tests/unistdio/test-u8-asnprintf1.h: New file.
30012         * tests/unistdio/test-u8-printf1.h: New file.
30013         * tests/unistdio/test-u8-vasnprintf1.c: New file.
30014         * tests/unistdio/test-u8-vasnprintf2.c: New file.
30015         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
30016         * tests/unistdio/test-u8-vasnprintf3.c: New file.
30017         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
30018         * tests/unistdio/test-u8-vasprintf1.c: New file.
30019         * tests/unistdio/test-u8-vsnprintf1.c: New file.
30020         * tests/unistdio/test-u8-vsprintf1.c: New file.
30021         * tests/unistdio/test-u16-asnprintf1.c: New file.
30022         * tests/unistdio/test-u16-asnprintf1.h: New file.
30023         * tests/unistdio/test-u16-printf1.h: New file.
30024         * tests/unistdio/test-u16-vasnprintf1.c: New file.
30025         * tests/unistdio/test-u16-vasnprintf2.c: New file.
30026         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
30027         * tests/unistdio/test-u16-vasnprintf3.c: New file.
30028         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
30029         * tests/unistdio/test-u16-vasprintf1.c: New file.
30030         * tests/unistdio/test-u16-vsnprintf1.c: New file.
30031         * tests/unistdio/test-u16-vsprintf1.c: New file.
30032         * tests/unistdio/test-u32-asnprintf1.c: New file.
30033         * tests/unistdio/test-u32-asnprintf1.h: New file.
30034         * tests/unistdio/test-u32-printf1.h: New file.
30035         * tests/unistdio/test-u32-vasnprintf1.c: New file.
30036         * tests/unistdio/test-u32-vasnprintf2.c: New file.
30037         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
30038         * tests/unistdio/test-u32-vasnprintf3.c: New file.
30039         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
30040         * tests/unistdio/test-u32-vasprintf1.c: New file.
30041         * tests/unistdio/test-u32-vsnprintf1.c: New file.
30042         * tests/unistdio/test-u32-vsprintf1.c: New file.
30043         * modules/unistdio/base: New file.
30044         * modules/unistdio/u-printf-args: New file.
30045         * modules/unistdio/ulc-asnprintf: New file.
30046         * modules/unistdio/ulc-asprintf: New file.
30047         * modules/unistdio/ulc-fprintf: New file.
30048         * modules/unistdio/ulc-printf-parse: New file.
30049         * modules/unistdio/ulc-snprintf: New file.
30050         * modules/unistdio/ulc-sprintf: New file.
30051         * modules/unistdio/ulc-vasnprintf: New file.
30052         * modules/unistdio/ulc-vasprintf: New file.
30053         * modules/unistdio/ulc-vfprintf: New file.
30054         * modules/unistdio/ulc-vsnprintf: New file.
30055         * modules/unistdio/ulc-vsprintf: New file.
30056         * modules/unistdio/u8-asnprintf: New file.
30057         * modules/unistdio/u8-asprintf: New file.
30058         * modules/unistdio/u8-printf-parse: New file.
30059         * modules/unistdio/u8-snprintf: New file.
30060         * modules/unistdio/u8-sprintf: New file.
30061         * modules/unistdio/u8-vasnprintf: New file.
30062         * modules/unistdio/u8-vasprintf: New file.
30063         * modules/unistdio/u8-vsnprintf: New file.
30064         * modules/unistdio/u8-vsprintf: New file.
30065         * modules/unistdio/u8-u8-asnprintf: New file.
30066         * modules/unistdio/u8-u8-asprintf: New file.
30067         * modules/unistdio/u8-u8-snprintf: New file.
30068         * modules/unistdio/u8-u8-sprintf: New file.
30069         * modules/unistdio/u8-u8-vasnprintf: New file.
30070         * modules/unistdio/u8-u8-vasprintf: New file.
30071         * modules/unistdio/u8-u8-vsnprintf: New file.
30072         * modules/unistdio/u8-u8-vsprintf: New file.
30073         * modules/unistdio/u16-asnprintf: New file.
30074         * modules/unistdio/u16-asprintf: New file.
30075         * modules/unistdio/u16-printf-parse: New file.
30076         * modules/unistdio/u16-snprintf: New file.
30077         * modules/unistdio/u16-sprintf: New file.
30078         * modules/unistdio/u16-vasnprintf: New file.
30079         * modules/unistdio/u16-vasprintf: New file.
30080         * modules/unistdio/u16-vsnprintf: New file.
30081         * modules/unistdio/u16-vsprintf: New file.
30082         * modules/unistdio/u16-u16-asnprintf: New file.
30083         * modules/unistdio/u16-u16-asprintf: New file.
30084         * modules/unistdio/u16-u16-snprintf: New file.
30085         * modules/unistdio/u16-u16-sprintf: New file.
30086         * modules/unistdio/u16-u16-vasnprintf: New file.
30087         * modules/unistdio/u16-u16-vasprintf: New file.
30088         * modules/unistdio/u16-u16-vsnprintf: New file.
30089         * modules/unistdio/u16-u16-vsprintf: New file.
30090         * modules/unistdio/u32-asnprintf: New file.
30091         * modules/unistdio/u32-asprintf: New file.
30092         * modules/unistdio/u32-printf-parse: New file.
30093         * modules/unistdio/u32-snprintf: New file.
30094         * modules/unistdio/u32-sprintf: New file.
30095         * modules/unistdio/u32-vasnprintf: New file.
30096         * modules/unistdio/u32-vasprintf: New file.
30097         * modules/unistdio/u32-vsnprintf: New file.
30098         * modules/unistdio/u32-vsprintf: New file.
30099         * modules/unistdio/u32-u32-asnprintf: New file.
30100         * modules/unistdio/u32-u32-asprintf: New file.
30101         * modules/unistdio/u32-u32-snprintf: New file.
30102         * modules/unistdio/u32-u32-sprintf: New file.
30103         * modules/unistdio/u32-u32-vasnprintf: New file.
30104         * modules/unistdio/u32-u32-vasprintf: New file.
30105         * modules/unistdio/u32-u32-vsnprintf: New file.
30106         * modules/unistdio/u32-u32-vsprintf: New file.
30107         * modules/unistdio/ulc-asnprintf-tests: New file.
30108         * modules/unistdio/ulc-vasnprintf-tests: New file.
30109         * modules/unistdio/ulc-vasprintf-tests: New file.
30110         * modules/unistdio/ulc-vsnprintf-tests: New file.
30111         * modules/unistdio/ulc-vsprintf-tests: New file.
30112         * modules/unistdio/u8-asnprintf-tests: New file.
30113         * modules/unistdio/u8-vasnprintf-tests: New file.
30114         * modules/unistdio/u8-vasprintf-tests: New file.
30115         * modules/unistdio/u8-vsnprintf-tests: New file.
30116         * modules/unistdio/u8-vsprintf-tests: New file.
30117         * modules/unistdio/u16-asnprintf-tests: New file.
30118         * modules/unistdio/u16-vasnprintf-tests: New file.
30119         * modules/unistdio/u16-vasprintf-tests: New file.
30120         * modules/unistdio/u16-vsnprintf-tests: New file.
30121         * modules/unistdio/u16-vsprintf-tests: New file.
30122         * modules/unistdio/u32-asnprintf-tests: New file.
30123         * modules/unistdio/u32-vasnprintf-tests: New file.
30124         * modules/unistdio/u32-vasprintf-tests: New file.
30125         * modules/unistdio/u32-vsnprintf-tests: New file.
30126         * modules/unistdio/u32-vsprintf-tests: New file.
30127         * MODULES.html.sh (Unicode string functions): Add the new modules.
30128
30129 2007-07-01  Bruno Haible  <bruno@clisp.org>
30130
30131         * lib/sprintf.c (sprintf): Limit the available length estimation,
30132         to avoid address wraparound.
30133         * lib/vsprintf.c (vsprintf): Likewise.
30134         * modules/sprintf-posix (Dependencies): Add stdint.
30135         * modules/vsprintf-posix (Dependencies): Likewise.
30136
30137 2007-07-01  Bruno Haible  <bruno@clisp.org>
30138
30139         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
30140         Windows PATH as well. Conservative double-quoting. Comments.
30141
30142 2007-07-01  Bruno Haible  <bruno@clisp.org>
30143             Eric Blake  <ebb9@byu.net>
30144             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30145
30146         * gnulib-tool (self_abspathname): Fix algorithm to cope with
30147         empty components in $PATH, denoting '.'.
30148
30149 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30150
30151         * gnulib-tool: Fix indentation.
30152         (func_create_megatestdir): Likewise.
30153         Report by Bruno Haible.
30154
30155 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30156
30157         Sync from Automake.
30158         * build-aux/gnupload: Fix shell portability issues with for loops.
30159         Report by Karl Berry.
30160
30161 2007-06-29  Simon Josefsson  <simon@josefsson.org>
30162
30163         * build-aux/maint.mk (POURL): Use translationproject.org.
30164
30165 2007-06-27  Simon Josefsson  <simon@josefsson.org>
30166             Bruno Haible  <bruno@clisp.org>
30167
30168         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
30169         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
30170         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
30171         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
30172         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
30173
30174 2007-06-27  Bruno Haible  <bruno@clisp.org>
30175
30176         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
30177         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
30178
30179 2007-06-26  Karl Berry  <karl@gnu.org>
30180
30181         * MODULES.html.sh: remove xreadlink-with-size.
30182
30183 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
30184
30185         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
30186         method that I hope also handles the double-include problem noted
30187         by Bruno Haible in
30188         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
30189
30190 2007-06-23  Bruno Haible  <bruno@clisp.org>
30191
30192         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30193         Don't let the 'mostlyclean' target fail if the last subdirectory could
30194         not be removed.
30195         Reported by Karl Berry.
30196
30197 2007-06-23  Bruno Haible  <bruno@clisp.org>
30198
30199         * gnulib-tool (echo): Add a speedier workaround for ksh.
30200         * tests/test-echo.sh: Likewise.
30201
30202 2007-06-23  Bruno Haible  <bruno@clisp.org>
30203
30204         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
30205         * tests/test-echo.sh: Likewise.
30206
30207 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30208
30209         * gnulib-tool (IFS): Initialize early, so we don't set it to
30210         empty later.
30211         (self_abspathname): Rewrite algorithm to set it, reindent.
30212         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
30213         (func_create_megatestdir): Merge some sed scripts.
30214
30215 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
30216
30217         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
30218         exposed by Sun Studio 11 cc on Solaris 8.
30219
30220 2007-06-22  Bruno Haible  <bruno@clisp.org>
30221
30222         * gnulib-tool (echo): Ensure the echo primitive does not interpret
30223         backslashes.
30224         * tests/test-echo.sh: New file.
30225
30226 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30227
30228         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
30229         simplify `sed_replace_build_aux' scripts, they are portable but
30230         echoing them with `echo' is not.
30231         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
30232
30233 2007-06-21  Karl Berry  <karl@gnu.org>
30234
30235         * config/srclist.txt: guess we can't handle the licenses via
30236         srclist at the moment.
30237
30238 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
30239
30240         * MODULES.html.sh: Add include_next.
30241         * modules/include_next: New file.
30242
30243 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
30244
30245         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
30246         INCLUDE_NEXT.
30247         (gl_CHECK_NEXT_HEADERS): New macro.
30248         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
30249         the obsolescent gl_ABSOLUTE_HEADER.
30250         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
30251         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
30252         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
30253         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30254         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30255         * m4/math_h.m4 (gl_MATH_H): Likewise.
30256         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
30257         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30258         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
30259         * m4/stdint.m4 (gl_STDINT_H): Likewise.
30260         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
30261         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
30262         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
30263         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30264         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30265         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
30266         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
30267         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
30268         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
30269         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
30270         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30271         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
30272         * m4/inttypes.m4 (gl_INTTYPES_H): Define
30273         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
30274         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
30275         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
30276         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
30277         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
30278         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
30279         * lib/float_.h: Likewise.
30280         * lib/inttypes_.h: Likewise.
30281         * lib/math_.h: Likewise.
30282         * lib/search_.h: Likewise.
30283         * lib/signal_.h: Likewise.
30284         * lib/stdint_.h: Likewise.
30285         * lib/stdio_.h: Likewise.
30286         * lib/stdlib_.h: Likewise.
30287         * lib/string_.h: Likewise.
30288         * lib/sys_stat_.h: Likewise.
30289         * lib/sys_time_.h: Likewise.
30290         * lib/time_.h: Likewise.
30291         * lib/unistd_.h: Likewise.
30292         * lib/wchar_.h: Likewise.
30293         * lib/wctype_.h: Likewise.
30294         * lib/dirent_.h: Likewise.
30295         * lib/iconv_.h: Likewise.
30296         * lib/locale_.h: Likewise.
30297         * lib/netinet_in_.h: Likewise.
30298         * lib/sys_select_.h: Likewise.
30299         * lib/sys_socket_.h: Likewise.
30300         * lib/sysexits_.h: Likewise.
30301         * modules/fcntl (Depends-on): Depend on include_next, not
30302         absolute_header.
30303         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
30304         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
30305         * modules/fchdir: Likewise.
30306         * modules/float: Likewise.
30307         * modules/iconv_open: Likewise.
30308         * modules/inttypes: Likewise.
30309         * modules/locale: Likewise.
30310         * modules/math: Likewise.
30311         * modules/netinet_in: Likewise.
30312         * modules/search: Likewise.
30313         * modules/signal: Likewise.
30314         * modules/stdint: Likewise.
30315         * modules/stdio: Likewise.
30316         * modules/stdlib: Likewise.
30317         * modules/string: Likewise.
30318         * modules/sys_select: Likewise.
30319         * modules/sys_socket: Likewise.
30320         * modules/sys_stat: Likewise.
30321         * modules/sys_time: Likewise.
30322         * modules/sysexits: Likewise.
30323         * modules/time: Likewise.
30324         * modules/unistd: Likewise.
30325         * modules/wchar: Likewise.
30326         * modules/wctype: Likewise.
30327         * modules/sys_stat: Change maintainer to "all".
30328         * modules/unistd: Likewise.
30329
30330 2007-06-20  Karl Berry  <karl@gnu.org>
30331
30332         * config/srclist.txt: track www changes in license files.
30333
30334 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
30335
30336         * build-aux/bootstrap: Remove stray dot.
30337         Make sure build_aux settings are honored when linking
30338         gnulib_extra_files.
30339
30340 2007-06-19  Eric Blake  <ebb9@byu.net>
30341
30342         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
30343         Allow compilation on cygwin.
30344
30345 2007-06-19  Jim Meyering  <jim@meyering.net>
30346
30347         xreadlink-with-size: Remove module.  No longer used.
30348         Ex-callers now use xreadlink or mreadlink-with-size.
30349         * modules/xreadlink-with-size: Remove module.
30350         * lib/xreadlink-with-size.c: Remove file.
30351         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
30352         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
30353         just before the function definition *is* accurate.
30354
30355         Eliminate one way canonicalize_filename_mode could exit.
30356         * lib/canonicalize.c (canonicalize_filename_mode):
30357         Use mreadlink_with_size, not xreadlink_with_size.
30358
30359 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
30360
30361         Detect porting problems to FreeBSD/arm, which has time_t wider than
30362         long int.  Original problem reported for GNU diff by Xin Li in
30363         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
30364         * modules/getdate (Depends-on): Add intprops, verify.
30365         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
30366         is an integer type no wider than long int.
30367
30368 2007-06-18  Jim Meyering  <jim@meyering.net>
30369
30370         New module: mreadlink-with-size.
30371         * MODULES.html.sh: Add mreadlink-with-size.
30372         * modules/mreadlink-with-size: New module
30373         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
30374         not xreadlink-with-size.
30375         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
30376
30377 2007-06-16  Bruno Haible  <bruno@clisp.org>
30378
30379         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
30380         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
30381         Reported by Gary V. Vaughan <gary@gnu.org>.
30382
30383 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
30384
30385         Revamp lchown so that it lives in unistd.h where it belongs.
30386         * lib/lchown.h: Remove.
30387         * lib/dirchownmod.c: Don't include lib/lchown.h.
30388         * lib/fchownat.c: Likewise.
30389         * lib/openat.c: Likewise.
30390         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
30391         does not follow symlinks.
30392         (EOPNOTSUPP): Define if not defined.
30393         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
30394         is defined to 0.
30395         (lchown): New decl.
30396         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
30397         Do not check for lchown decl.
30398         Set REPLACE_LCHOWN.
30399         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
30400         REPLACE_LCHOWN.
30401         * modules/chown: Make it clear it follows symlinks.
30402         * modules/lchown: Make it clear it doesn't follow symlinks.
30403         (Files): Remove lib/lchown.h
30404         (Depends-on): Add unistd.
30405         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
30406         (Include): Include <unistd.h>, not "lchown.h".
30407         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
30408         REPLACE_LCHOWN.
30409
30410 2007-06-15  Jim Meyering  <jim@meyering.net>
30411
30412         Change license (GPL to LGPL) of fsusage and dependents.
30413         * modules/fsusage (License): Change to LGPL.
30414         * modules/full-read (License): Likewise.
30415         * modules/full-write (License): Likewise.
30416         * modules/safe-read (License): Likewise.
30417         * modules/safe-write (License): Likewise.
30418
30419 2007-06-14  Ben Pfaff  <blp@gnu.org>
30420
30421         Missing part of allocsa -> malloca transition.
30422         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
30423         gl_MALLOCA.
30424
30425 2007-06-12  Bruno Haible  <bruno@clisp.org>
30426
30427         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
30428         to ia64, x86_64, i386.
30429         Reported by Eric Blake.
30430
30431 2007-06-12  Bruno Haible  <bruno@clisp.org>
30432
30433         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
30434         cross-compiling to x86_64.
30435
30436 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
30437
30438         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
30439         glitch reported by Ralf Wildenhues in
30440         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
30441
30442         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
30443         Vin Shelton.
30444
30445 2007-06-11  Bruno Haible  <bruno@clisp.org>
30446
30447         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
30448         replacement string.
30449         Reported by Eric Blake.
30450
30451 2007-06-10  Bruno Haible  <bruno@clisp.org>
30452
30453         Prepare vasnprintf code for use with Unicode strings.
30454         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
30455         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
30456         TYPE_U32_STRING.
30457         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
30458         a_u32_string variants.
30459         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
30460         * lib/printf-args.c: Don't include config.h and the specification
30461         header if PRINTF_FETCHARGS is already defined.
30462         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
30463         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
30464         TYPE_U16_STRING, TYPE_U32_STRING.
30465         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
30466         u16_directive, u16_directives, u32_directive, u32_directives): New
30467         types.
30468         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
30469         New declarations.
30470         * lib/printf-parse.c: Don't include config.h and the specification
30471         header if PRINTF_PARSE is already defined. Eliminate the set of
30472         parameters for WIDE_CHAR_VERSION; the user of this file must provide
30473         them now. Include c-ctype.h.
30474         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
30475         directive and CHAR_T_ONLY_ASCII.
30476         * lib/vasnprintf.c: Don't include config.h and the specification header
30477         if VASNPRINTF is already defined.
30478         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
30479         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
30480         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
30481         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
30482         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
30483         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
30484         code accordingly.
30485         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
30486         pad_ourselves also in this case, with the 'c' and 's' directives, and
30487         with a different notion of "width".
30488         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
30489
30490 2007-06-10  Bruno Haible  <bruno@clisp.org>
30491
30492         * modules/unistr/u32-mbsnlen: New file.
30493         * lib/unistr/u32-mbsnlen.c: New file.
30494
30495         * modules/unistr/u16-mbsnlen: New file.
30496         * lib/unistr/u16-mbsnlen.c: New file.
30497
30498         * modules/unistr/u8-mbsnlen: New file.
30499         * lib/unistr/u8-mbsnlen.c: New file.
30500
30501         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
30502         declarations.
30503
30504 2007-06-10  Bruno Haible  <bruno@clisp.org>
30505
30506         * lib/string_.h (mbsnlen): New declaration.
30507         * lib/mbsnlen.c: New file.
30508         * m4/mbsnlen.m4: New file.
30509         * modules/mbsnlen: New file.
30510         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
30511         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
30512         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
30513
30514 2007-06-10  Bruno Haible  <bruno@clisp.org>
30515
30516         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
30517
30518 2007-06-10  Bruno Haible  <bruno@clisp.org>
30519
30520         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
30521         * lib/mbuiter.h: Likewise.
30522
30523 2007-06-10  Bruno Haible  <bruno@clisp.org>
30524
30525         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
30526         declaration.
30527
30528 2007-06-10  Karl Berry  <karl@gnu.org>
30529
30530         * config/srclist.txt: remove gettext entries, Bruno prefers
30531         to update individually.
30532
30533 2007-06-10  Bruno Haible  <bruno@clisp.org>
30534
30535         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
30536         'maxlen'. Ensure only length + width bytes are allocated, not
30537         length + 1 + width.
30538
30539 2007-06-09  Bruno Haible  <bruno@clisp.org>
30540
30541         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
30542         (CHAR_T): Remove macro.
30543         (VASNPRINTF): Update.
30544
30545 2007-06-09  Bruno Haible  <bruno@clisp.org>
30546
30547         * MODULES.html.sh (Unicode string functions): Add the new modules.
30548
30549         * modules/uniconv/u32-conv-to-enc: New file.
30550         * lib/uniconv/u32-conv-to-enc.c: New file.
30551         * modules/uniconv/u32-conv-to-enc-tests: New file.
30552         * tests/uniconv/test-u32-conv-to-enc.c: New file.
30553
30554         * modules/uniconv/u16-conv-to-enc: New file.
30555         * lib/uniconv/u16-conv-to-enc.c: New file.
30556         * lib/uniconv/u-conv-to-enc.h: New file.
30557         * modules/uniconv/u16-conv-to-enc-tests: New file.
30558         * tests/uniconv/test-u16-conv-to-enc.c: New file.
30559
30560         * modules/uniconv/u8-conv-to-enc: New file.
30561         * lib/uniconv/u8-conv-to-enc.c: New file.
30562         * modules/uniconv/u8-conv-to-enc-tests: New file.
30563         * tests/uniconv/test-u8-conv-to-enc.c: New file.
30564
30565         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
30566         u32_conv_to_encoding): New declarations.
30567
30568 2007-06-09  Bruno Haible  <bruno@clisp.org>
30569
30570         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
30571
30572 2007-06-09  Bruno Haible  <bruno@clisp.org>
30573
30574         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
30575         * modules/malloca: Renamed from modules/allocsa, updated.
30576         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
30577         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
30578         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
30579         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
30580         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
30581         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
30582         * modules/xmalloca: Renamed from modules/xallocsa, updated.
30583         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
30584         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
30585         * modules/c-strcasestr (Depends-on): Update.
30586         * lib/c-strcasestr.c: Update.
30587         * modules/c-strstr (Depends-on): Update.
30588         * lib/c-strstr.c: Update.
30589         * modules/canonicalize-lgpl (Depends-on): Update.
30590         * lib/canonicalize-lgpl.c: Update.
30591         * modules/clean-temp (Depends-on): Update.
30592         * lib/clean-temp.c: Update.
30593         * modules/csharpcomp (Depends-on): Update.
30594         * lib/csharpcomp.c: Update.
30595         * modules/csharpexec (Depends-on): Update.
30596         * lib/csharpexec.c: Update.
30597         * modules/javacomp (Depends-on): Update.
30598         * lib/javacomp.c: Update.
30599         * modules/javaexec (Depends-on): Update.
30600         * lib/javaexec.c: Update.
30601         * modules/mbscasestr (Depends-on): Update.
30602         * lib/mbscasestr.c: Update.
30603         * modules/mbsstr (Depends-on): Update.
30604         * lib/mbsstr.c: Update.
30605         * modules/setenv (Depends-on): Update.
30606         * lib/setenv.c: Update.
30607         * modules/strcasestr (Depends-on): Update.
30608         * lib/strcasestr.c: Update.
30609         * modules/striconveha (Depends-on): Update.
30610         * lib/striconveha.c: Update.
30611         * modules/relocatable-prog-wrapper (Files): Update.
30612         * lib/relocwrapper.c: Update.
30613         * build-aux/install-reloc: Update.
30614         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
30615
30616 2007-06-08  Bruno Haible  <bruno@clisp.org>
30617
30618         Port to uClibc.
30619         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
30620         * lib/fpurge.c (fpurge): Likewise.
30621         * lib/freading.c (freading): Likewise.
30622         * lib/fseeko.c (rpl_fseeko): Likewise.
30623         * lib/fseterr.c (fseterr): Likewise.
30624         * lib/fwriting.c (fwriting): Likewise.
30625         * tests/test-fflush.c (main): Avoid a failure on uClibc.
30626
30627 2007-06-08  Bruno Haible  <bruno@clisp.org>
30628
30629         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
30630         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
30631         * modules/gettext (Files): Add m4/intlmacosx.m4.
30632
30633 2007-06-07  Bruno Haible  <bruno@clisp.org>
30634
30635         * modules/localename-tests: New file.
30636         * tests/test-localename.c: New file.
30637
30638         New module 'localename'.
30639         * lib/localename.h: New file.
30640         * lib/localename.c: New file, from GNU gettext.
30641         * m4/localename.m4: New file.
30642         * modules/localename: New file.
30643
30644 2007-06-07  Bruno Haible  <bruno@clisp.org>
30645
30646         Work around the lack of <wchar.h> on some builds of uClibc.
30647         * doc/headers/wchar.texi: Update.
30648         * lib/wchar_.h: Include <wchar.h> only if it exists.
30649         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
30650         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
30651         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
30652         doesn't exist.
30653         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
30654         * modules/mbfile (Depends-on): Add wchar.
30655         * modules/mbiter (Depends-on): Likewise.
30656         * modules/mbuiter (Depends-on): Likewise.
30657         Reported by Simon Josefsson.
30658
30659 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
30660
30661         Work around problem reported by Steven M. Schweda in
30662         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
30663         Tru64 5.1B with the Compaq compiler environment installed declares
30664         an 'isblank' function but does not define it in the C library.
30665         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
30666         * lib/regex_internal.h (isblank): Likewise.
30667         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
30668         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30669
30670 2007-06-05  Bruno Haible  <bruno@clisp.org>
30671
30672         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
30673         ia64.
30674         * modules/printf-safe: New file.
30675         * modules/fprintf-posix (Depends-on): Add printf-safe.
30676         * modules/printf-posix (Depends-on): Likewise.
30677         * modules/snprintf-posix (Depends-on): Likewise.
30678         * modules/sprintf-posix (Depends-on): Likewise.
30679         * modules/vasnprintf-posix (Depends-on): Likewise.
30680         * modules/vasprintf-posix (Depends-on): Likewise.
30681         * modules/vfprintf-posix (Depends-on): Likewise.
30682         * modules/vprintf-posix (Depends-on): Likewise.
30683         * modules/vsnprintf-posix (Depends-on): Likewise.
30684         * modules/vsprintf-posix (Depends-on): Likewise.
30685         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
30686         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
30687         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
30688         "no" on i386, x86_64, ia64.
30689         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
30690         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30691         on i386, x86_64, ia64.
30692         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
30693         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30694         on i386, x86_64, ia64.
30695         * tests/test-vasnprintf-posix.c: Include float.h.
30696         (LDBL80_WORDS): New macro.
30697         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30698         on i386, x86_64, ia64.
30699         * tests/test-vasprintf-posix.c: Include float.h.
30700         (LDBL80_WORDS): New macro.
30701         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30702         on i386, x86_64, ia64.
30703         * tests/test-snprintf-posix.c: Include float.h.
30704         * tests/test-sprintf-posix.c: Likewise.
30705         * tests/test-vsnprintf-posix.c: Likewise.
30706         * tests/test-vsprintf-posix.c: Likewise.
30707
30708 2007-06-05  Bruno Haible  <bruno@clisp.org>
30709
30710         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
30711         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
30712         non-IEEE numbers on i386, x86_64, ia64.
30713         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
30714         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
30715         * tests/test-isnanl.h: Include float.h.
30716         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
30717
30718 2007-06-05  Bruno Haible  <bruno@clisp.org>
30719
30720         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
30721         also the %a / %A. Handle the %a / %A code before this extra handling.
30722
30723 2007-06-05  Bruno Haible  <bruno@clisp.org>
30724
30725         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
30726         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
30727
30728 2007-06-05  Bruno Haible  <bruno@clisp.org>
30729
30730         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
30731         typo in variable name.
30732
30733 2007-06-05  Eric Blake  <ebb9@byu.net>
30734
30735         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
30736         Reported by Simon Josefsson.
30737
30738 2007-06-04  Bruno Haible  <bruno@clisp.org>
30739
30740         Avoid test failures on some PowerPC platforms.
30741         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
30742         Define differently for PowerPC.
30743         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
30744         Reported by Gary V. Vaughan <gary@gnu.org>.
30745
30746 2007-06-02  Bruno Haible  <bruno@clisp.org>
30747
30748         Fix test-stdint failure on FreeBSD/ia64.
30749         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
30750         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
30751         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
30752         * doc/headers/stdint.texi: Update.
30753
30754 2007-06-01  Bruno Haible  <bruno@clisp.org>
30755
30756         * tests/test-binary-io.c (main): Pass a third argument to open().
30757         Reported by Gary V. Vaughan <gary@gnu.org>.
30758
30759 2007-06-01  Bruno Haible  <bruno@clisp.org>
30760
30761         * doc/functions/frexpl.texi: Update for mingw.
30762
30763 2007-06-01  Bruno Haible  <bruno@clisp.org>
30764
30765         * tests/test-lseek.c (main): Disable test of errno for invalid third
30766         argument.
30767         * doc/functions/lseek.texi: Update.
30768         Reported by Gary V. Vaughan <gary@gnu.org>.
30769
30770 2007-05-28  Bruno Haible  <bruno@clisp.org>
30771
30772         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
30773
30774 2007-05-31  Eric Blake  <ebb9@byu.net>
30775
30776         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
30777         cross compiling.
30778
30779 2007-05-30  Eric Blake  <ebb9@byu.net>
30780         and Bruno Haible  <bruno@clisp.org>
30781
30782         Work around mingw test failures exposed by m4-1.4.9b.
30783         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
30784         * tests/test-unistd.c: Disable uid_t and git_t tests for the
30785         moment.
30786
30787 2007-05-30  Bruno Haible  <bruno@clisp.org>
30788
30789         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
30790         assuming that they are closed. Needed on HP-UX 11.
30791
30792 2007-05-29  Bruno Haible  <bruno@clisp.org>
30793
30794         Fix a problem with #include_next.
30795         * lib/dirent_.h: Split the double-inclusion guard.
30796         * lib/fcntl_.h: Likewise.
30797         * lib/float_.h: Likewise.
30798         * lib/iconv_.h: Likewise.
30799         * lib/inttypes_.h: Likewise.
30800         * lib/locale_.h: Likewise.
30801         * lib/math_.h: Likewise.
30802         * lib/netinet_in_.h: Likewise.
30803         * lib/search_.h: Likewise.
30804         * lib/signal_.h: Likewise.
30805         * lib/stdint_.h: Likewise.
30806         * lib/stdio_.h: Likewise.
30807         * lib/stdlib_.h: Likewise.
30808         * lib/string_.h: Likewise.
30809         * lib/sys_select_.h: Likewise.
30810         * lib/sys_socket_.h: Likewise.
30811         * lib/sys_stat_.h: Likewise.
30812         * lib/sys_time_.h: Likewise.
30813         * lib/sysexits_.h: Likewise.
30814         * lib/time_.h: Likewise.
30815         * lib/unistd_.h: Likewise.
30816         * lib/wchar_.h: Likewise.
30817         * lib/wctype_.h: Likewise.
30818
30819 2007-05-29  Bruno Haible  <bruno@clisp.org>
30820
30821         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
30822         for the moment.
30823
30824 2007-05-29  Bruno Haible  <bruno@clisp.org>
30825
30826         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
30827         invocation.
30828         Reported by Eric Blake.
30829
30830 2007-05-29  Bruno Haible  <bruno@clisp.org>
30831
30832         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
30833         compiling case.
30834
30835 2007-05-29  Eric Blake  <ebb9@byu.net>
30836             Bruno Haible  <bruno@clisp.org>
30837
30838         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
30839         cross compiles.
30840
30841 2007-05-28  Eric Blake  <ebb9@byu.net>
30842
30843         * modules/closein-tests (test_closein_LDADD): Support test on
30844         cygwin with libtool.
30845
30846 2007-05-28  Bruno Haible  <bruno@clisp.org>
30847
30848         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
30849         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30850         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30851         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30852         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30853         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30854         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30855         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30856         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30857
30858 2007-05-28  Eric Blake  <ebb9@byu.net>
30859
30860         Unconditionally include <config.h> in unit tests.
30861         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
30862         * tests/test-allocsa.c, tests/test-arcfour.c,
30863         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
30864         tests/test-array_list.c, tests/test-array_oset.c,
30865         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
30866         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
30867         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
30868         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
30869         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
30870         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
30871         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
30872         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
30873         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
30874         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
30875         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
30876         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
30877         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
30878         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
30879         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
30880         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
30881         test-md5.c, test-memmem.c, test-printf-posix.c,
30882         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
30883         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
30884         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
30885         test-strcasestr.c, test-striconv.c, test-striconveh.c,
30886         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
30887         test-vasnprintf-posix2.c, test-vasnprintf.c,
30888         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
30889         test-vfprintf-posix.c, test-vprintf-posix.c,
30890         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
30891         test-xvasprintf.c: Likewise.
30892
30893 2007-05-28  Bruno Haible  <bruno@clisp.org>
30894
30895         * gnulib-tool (func_import): Remember the --with-tests command-line
30896         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
30897         Reported by Eric Blake.
30898
30899 2007-05-28  Bruno Haible  <bruno@clisp.org>
30900
30901         * modules/ftell-tests: New file.
30902         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
30903         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
30904
30905         * lib/ftell.c: New file.
30906         * modules/ftell: New file.
30907         * m4/ftell.m4: New file.
30908         * doc/functions/ftell.texi: Update.
30909         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
30910         REPLACE_FTELL.
30911         * lib/stdio_.h (rpl_ftell): New declaration.
30912         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
30913         REPLACE_FTELL.
30914
30915 2007-05-28  Eric Blake  <ebb9@byu.net>
30916
30917         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
30918
30919 2007-05-28  Bruno Haible  <bruno@clisp.org>
30920
30921         * modules/fseek-tests: New file.
30922         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
30923         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
30924
30925         * lib/fseek.c: New file.
30926         * modules/fseek: New file.
30927         * m4/fseek.m4: New file.
30928         * doc/functions/fseek.texi: Update.
30929         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
30930         REPLACE_FSEEK.
30931         * lib/stdio_.h (rpl_fseek): New declaration.
30932         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
30933         REPLACE_FSEEK.
30934
30935 2007-05-28  Bruno Haible  <bruno@clisp.org>
30936
30937         * lib/stdio_.h (fflush): More comments.
30938
30939 2007-05-28  Bruno Haible  <bruno@clisp.org>
30940
30941         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
30942         runtime test.
30943
30944 2007-05-28  Eric Blake  <ebb9@byu.net>
30945
30946         Improve lseek module.
30947         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
30948         * lib/unistd_.h (lseek): Scale back link warning message.
30949         * tests/test-lseek.c: Beef up test.
30950         * tests/test-lseek.sh: Exercise more facets of lseek.
30951         Reported by Bruno Haible.
30952
30953 2007-05-28  Bruno Haible  <bruno@clisp.org>
30954
30955         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
30956         to define.
30957
30958 2007-05-27  Bruno Haible  <bruno@clisp.org>
30959
30960         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
30961
30962 2007-05-27  Bruno Haible  <bruno@clisp.org>
30963
30964         * modules/openmp: New file.
30965         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
30966         Noah Misch.
30967
30968 2007-05-26  Bruno Haible  <bruno@clisp.org>
30969
30970         * modules/chdir-long (Depends-on): Add fchdir.
30971         * modules/chdir-safer (Depends-on): Likewise.
30972         * modules/fts (Depends-on): Likewise.
30973         * modules/fts-lgpl (Depends-on): Likewise.
30974         * modules/openat (Depends-on): Likewise.
30975         * modules/savewd (Depends-on): Likewise.
30976
30977 2007-05-24  Eric Blake  <ebb9@byu.net>
30978
30979         Fix lseek on mingw.
30980         * modules/lseek: New module.
30981         * m4/lseek.m4: New file.
30982         * lib/lseek.c: New file.
30983         * modules/lseek-tests: New file.
30984         * tests/test-lseek.c: New file.
30985         * tests/test-lseek.sh: New file.
30986         * MODULES.html.sh: Document lseek module.
30987         * modules/fflush (Depends-on): Add lseek, fseeko.
30988         * modules/fseeko (Depends-on): Likewise.
30989         * modules/ftello (Depends-on): Likewise.
30990         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
30991         broken.
30992         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
30993         broken.
30994         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
30995         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
30996         * lib/ftello.c (rpl_ftello): Likewise.
30997         * tests/test-fseeko.c (main): Test this.
30998         * tests/test-fseeko.sh: Likewise.
30999         * tests/test-ftello.c (main): Likewise.
31000         * tests/test-ftello.sh: Likewise.
31001         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
31002         implies replacing fseek.
31003         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
31004         HAVE_FTELLO.
31005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
31006         * modules/unistd (Makefile.am): Likewise.
31007         * lib/unistd_.h (lseek): Declare a replacement.
31008         * doc/functions/lseek.texi (lseek): Document this fix.
31009         * doc/functions/fseek.texi (fseek): Likewise.
31010         * doc/functions/ftell.texi (ftell): Likewise.
31011
31012 2007-05-24  Bruno Haible  <bruno@clisp.org>
31013
31014         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
31015         in the printed representation of a NaN.
31016         * tests/test-vasprintf-posix.c (test_function): Likewise.
31017         * tests/test-snprintf-posix.h (test_function): Likewise.
31018         * tests/test-sprintf-posix.h (test_function): Likewise.
31019         Reported by Eric Blake.
31020
31021 2007-05-23  Eric Blake  <ebb9@byu.net>
31022
31023         Fix fseeko/ftello on cygwin 1.5.24.
31024         * doc/functions/fseeko.texi (fseeko): Document the fix.
31025         * doc/functions/ftello.texi (ftello): Document the fix.
31026         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
31027         * doc/functions/stdout.text (stdout): New file.
31028         * doc/functions/stderr.text (stderr): New file.
31029         * doc/gnulib.texi (Function Substitutes): Use new files.
31030         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
31031         prior to 1.7.0.
31032         * tests/test-ftello.c (main): Likewise for ftello.
31033         * tests/test-fseeko.sh: New file.
31034         * tests/test-ftello.sh: New file.
31035         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
31036         with seekable stdin.
31037         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
31038         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
31039         (gl_REPLACE_FSEEKO): New macro.
31040         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
31041         * modules/fseeko (Files): Distribute fseeko.c.
31042         * modules/ftello (Files): Distribute ftello.c.
31043         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
31044         mode.
31045         * lib/ftello.c (rpl_ftello): New file.
31046         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
31047         fseeko, ftello.
31048         (gl_STDIN_LARGE_OFFSET): New macro.
31049         * modules/stdio (Makefile.am): Perform the replacement.
31050         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
31051
31052 2007-05-23  Bruno Haible  <bruno@clisp.org>
31053
31054         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
31055         GNULIB_POSIXCHECK is defined.
31056
31057 2007-05-21  Bruno Haible  <bruno@clisp.org>
31058
31059         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
31060         Check also the output for NaN arguments. When cross-compiling, guess
31061         no on IRIX.
31062         * lib/vasnprintf.c: Update comments.
31063         * tests/test-vasnprintf-posix.c (strisnan): New function.
31064         (test_function): Use it.
31065         * tests/test-vasprintf-posix.c (strisnan): New function.
31066         (test_function): Use it.
31067         * tests/test-snprintf-posix.h (strisnan): New function.
31068         (test_function): Use it.
31069         * tests/test-sprintf-posix.h (strisnan): New function.
31070         (test_function): Use it.
31071         Reported by Eric Blake.
31072
31073 2007-05-20  Bruno Haible  <bruno@clisp.org>
31074
31075         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
31076         numbers that fails on BeOS.
31077         * doc/functions/frexpl.texi: Update.
31078
31079 2007-05-20  Jim Meyering  <jim@meyering.net>
31080
31081         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
31082         forced upon us by glibc-2.6.
31083
31084 2007-05-20  Bruno Haible  <bruno@clisp.org>
31085
31086         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
31087         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
31088         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
31089         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
31090         NEED_PRINTF_INFINITE.
31091         (is_infinitel): New function.
31092         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
31093         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
31094         gl_PREREQ_VASNPRINTF_INFINITE.
31095         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
31096         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31097         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
31098         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
31099         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
31100         gl_PREREQ_VASNPRINTF_INFINITE.
31101         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31102         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31103         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31104         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31105         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31106         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31107         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31108         * doc/functions/fprintf.texi: Update.
31109         * doc/functions/printf.texi: Update.
31110         * doc/functions/snprintf.texi: Update.
31111         * doc/functions/sprintf.texi: Update.
31112         * doc/functions/vfprintf.texi: Update.
31113         * doc/functions/vprintf.texi: Update.
31114         * doc/functions/vsnprintf.texi: Update.
31115         * doc/functions/vsprintf.texi: Update.
31116
31117 2007-05-20  Bruno Haible  <bruno@clisp.org>
31118
31119         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
31120         was not found in libc.
31121         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31122
31123 2007-05-20  Bruno Haible  <bruno@clisp.org>
31124
31125         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
31126         printed as "-nan" instead of "nan".
31127         * tests/test-vasprintf-posix.c (test_function): Likewise.
31128         * tests/test-snprintf-posix.h (test_function): Likewise.
31129         * tests/test-sprintf-posix.h (test_function): Likewise.
31130         Needed for HP-UX 11.
31131
31132 2007-05-20  Jim Meyering  <jim@meyering.net>
31133
31134         Fix buggy test for the fchownat-deref bug.
31135         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
31136         symlink required for the run-test.  Without it, this test would
31137         always declare that fchownat doesn't work, and client code would
31138         unnecessarily use the replacement function with fixed libc.
31139         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
31140         Reported by Greg Schafer.
31141
31142 2007-05-19  Bruno Haible  <bruno@clisp.org>
31143
31144         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
31145         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
31146         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
31147         Needed for IRIX 6.5 and Solaris 2.5.1.
31148
31149 2007-05-19  Bruno Haible  <bruno@clisp.org>
31150
31151         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
31152         (test_function): Skip tests involving -0.0 on platforms where
31153         -0.0 = 0.0.
31154         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
31155         (test_function): Skip tests involving -0.0 on platforms where
31156         -0.0 = 0.0.
31157         * tests/test-snprintf-posix.h (have_minus_zero): New function.
31158         (test_function): Skip tests involving -0.0 on platforms where
31159         -0.0 = 0.0.
31160         * tests/test-sprintf-posix.h (have_minus_zero): New function.
31161         (test_function): Skip tests involving -0.0 on platforms where
31162         -0.0 = 0.0.
31163         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
31164         tests.
31165         * tests/test-printf-posix.h (test_function): Likewise.
31166         * tests/test-printf-posix.output: Remove all -0.0 related results.
31167         Needed for IRIX 6.5.
31168
31169 2007-05-19  Bruno Haible  <bruno@clisp.org>
31170
31171         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
31172         printed as "nan0x7fffffff" instead of "nan".
31173         * tests/test-vasprintf-posix.c (test_function): Likewise.
31174         * tests/test-snprintf-posix.h (test_function): Likewise.
31175         * tests/test-sprintf-posix.h (test_function): Likewise.
31176         * tests/test-fprintf-posix.h (NaN): Remove macro.
31177         (test_function): Remove all NaN related tests.
31178         * tests/test-printf-posix.h (NaN): Remove macro.
31179         (test_function): Remove all NaN related tests.
31180         * tests/test-printf-posix.output: Remove all NaN related results.
31181         Needed for IRIX 6.5.
31182
31183 2007-05-19  Bruno Haible  <bruno@clisp.org>
31184
31185         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
31186         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
31187
31188 2007-05-19  Bruno Haible  <bruno@clisp.org>
31189
31190         * lib/float_.h: New file.
31191         * m4/float_h.m4: New file.
31192         * modules/float: New file.
31193         * modules/isnanl (Dependencies): Add float.
31194         * modules/isnanl-nolibm (Dependencies): Likewise.
31195         * modules/mathl (Dependencies): Likewise.
31196         * modules/printf-frexpl (Dependencies): Likewise.
31197         * modules/signbit (Dependencies): Likewise.
31198         * modules/vasnprintf (Dependencies): Likewise.
31199         * doc/headers/float.texi: Update.
31200
31201 2007-05-19  Jim Meyering  <jim@meyering.net>
31202
31203         * lib/utimens.c (gl_futimens): Rename from futimens,
31204         now that glibc-2.6 declares futimens.
31205         * lib/utimens.h: Likewise.
31206
31207 2007-05-19  Bruno Haible  <bruno@clisp.org>
31208
31209         Avoid test failures on mingw.
31210         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
31211         * tests/test-printf-posix.sh: Likewise.
31212         * tests/test-vfprintf-posix.sh: Likewise.
31213         * tests/test-vprintf-posix.sh: Likewise.
31214
31215 2007-05-19  Bruno Haible  <bruno@clisp.org>
31216
31217         Fix *printf result for NaN, Inf, -0.0 on mingw.
31218         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
31219         * lib/vasnprintf.c: Include math.h and isnan.h.
31220         (is_infinite_or_zero): New function.
31221         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
31222         values in the %f, %F, %e, %E, %g, %G directives.
31223         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
31224         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31225         gl_PRINTF_INFINITE and test its result. Invoke
31226         gl_PREREQ_VASNPRINTF_INFINITE.
31227         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31228         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31229         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31230         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31231         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31232         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31233         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31234         * doc/functions/fprintf.texi: Update.
31235         * doc/functions/printf.texi: Update.
31236         * doc/functions/snprintf.texi: Update.
31237         * doc/functions/sprintf.texi: Update.
31238         * doc/functions/vfprintf.texi: Update.
31239         * doc/functions/vprintf.texi: Update.
31240         * doc/functions/vsnprintf.texi: Update.
31241         * doc/functions/vsprintf.texi: Update.
31242
31243 2007-05-19  Bruno Haible  <bruno@clisp.org>
31244
31245         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
31246         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
31247         Instead of multiplying with 10^k, set extra_zeroes to k.
31248         (scale10_round_long_double): Remove function.
31249
31250 2007-05-18  Bruno Haible  <bruno@clisp.org>
31251
31252         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
31253         introduced on 2007-05-06.
31254
31255 2007-05-18  Bruno Haible  <bruno@clisp.org>
31256
31257         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
31258         %g directives.
31259         * tests/test-vasprintf-posix.c (test_function): Likewise.
31260         * tests/test-snprintf-posix.h (test_function): Likewise.
31261         * tests/test-sprintf-posix.h (test_function): Likewise.
31262
31263 2007-05-18  Bruno Haible  <bruno@clisp.org>
31264
31265         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
31266         (strmatch): New function.
31267         (test_function): Test the %f directive on numbers of various exponents.
31268         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
31269         (strmatch): New function.
31270         (test_function): Test the %f directive on numbers of various exponents.
31271         * tests/test-snprintf-posix.h (strmatch): New function.
31272         (test_function): Test the %f directive on numbers of various exponents.
31273         * tests/test-sprintf-posix.h (strmatch): New function.
31274         (test_function): Test the %f directive on numbers of various exponents.
31275         * tests/test-snprintf-posix.c (SIZEOF): New macro.
31276         * tests/test-sprintf-posix.c (SIZEOF): New macro.
31277         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
31278         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
31279
31280 2007-05-18  Bruno Haible  <bruno@clisp.org>
31281
31282         Add support for 'long double' number output.
31283         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
31284         * lib/vasnprintf.c: Include math.h and float+.h.
31285         (mp_limb_t): New type.
31286         (GMP_LIMB_BITS): New macro.
31287         (mp_twolimb_t): New type.
31288         (GMP_TWOLIMB_BITS): New macro.
31289         (mpn_t): New type.
31290         (multiply, divide, convert_to_decimal, decode_long_double,
31291         scale10_round_long_double, scale10_round_decimal_long_double,
31292         floorlog10l): New functions.
31293         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
31294         for the %f, %F, %e, %E, %g, %G directives.
31295         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
31296         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31297         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
31298         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
31299         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31300         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31301         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31302         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31303         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31304         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31305         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31306         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
31307         * modules/snprintf-posix (Depends-on): Likewise.
31308         * modules/sprintf-posix (Depends-on): Likewise.
31309         * modules/vasnprintf-posix (Depends-on): Likewise.
31310         * modules/vasprintf-posix (Depends-on): Likewise.
31311         * modules/vfprintf-posix (Depends-on): Likewise.
31312         * modules/vsnprintf-posix (Depends-on): Likewise.
31313         * modules/vsprintf-posix (Depends-on): Likewise.
31314         * modules/vasnprintf (Files): Add lib/float+.h.
31315         * doc/functions/fprintf.texi: Update.
31316         * doc/functions/printf.texi: Update.
31317         * doc/functions/snprintf.texi: Update.
31318         * doc/functions/sprintf.texi: Update.
31319         * doc/functions/vfprintf.texi: Update.
31320         * doc/functions/vprintf.texi: Update.
31321         * doc/functions/vsnprintf.texi: Update.
31322         * doc/functions/vsprintf.texi: Update.
31323
31324 2007-05-18  Bruno Haible  <bruno@clisp.org>
31325
31326         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
31327
31328 2007-05-18  Bruno Haible  <bruno@clisp.org>
31329
31330         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
31331         for printing 64-bit integers. Needed for mingw.
31332
31333 2007-05-18  Bruno Haible  <bruno@clisp.org>
31334
31335         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
31336         gl_FUNC_FREXPL_WORKS.
31337         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
31338
31339 2007-05-18  Bruno Haible  <bruno@clisp.org>
31340
31341         * modules/frexpl-nolibm-tests: New file.
31342
31343         * modules/frexpl-nolibm: New file.
31344         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
31345
31346 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
31347
31348         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
31349         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
31350         GCC 4.2, which otherwise issues a lot of warnings.
31351         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
31352         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
31353         Likewise.
31354         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
31355         * modules/iconv_open (iconv.h): Likewise.
31356         * modules/locale (locale.h): Likewise.
31357         * modules/netinet_in (netinet/in.h): Likewise.
31358         * modules/sys_select (sys_select.h): Likewise.
31359         * modules/sys_socket (sys/socket.h): Likewise.
31360         * modules/sys_stat (sys/stat.h): Likewise.
31361         * modules/sysexits (sysexits.h): Likewise.
31362         * modules/unistd (unistd.h): Likewise.
31363
31364 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31365
31366         * modules/closein-tests (Makefile.am): Distribute
31367         `test-closein.sh'.
31368
31369 2007-05-17  Bruno Haible  <bruno@clisp.org>
31370
31371         * tests/test-printf-posix.output: Renamed from
31372         tests/test-fprintf-posix.out.
31373         * modules/fprintf-posix-tests: Update.
31374         * modules/printf-posix-tests: Update.
31375         * modules/vfprintf-posix-tests: Update.
31376         * modules/vprintf-posix-tests: Update.
31377         * tests/test-fprintf-posix.sh: Update.
31378         * tests/test-printf-posix.sh: Update.
31379         * tests/test-vfprintf-posix.sh: Update.
31380         * tests/test-vprintf-posix.sh: Update.
31381         Reported by Ralf Wildenhues.
31382
31383 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
31384
31385         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
31386         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
31387         GCC 4.2, which otherwise issues a lot of warnings.
31388         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
31389         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
31390         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
31391         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
31392         it should no longer be needed.
31393         * lib/string_.h: Likewise.
31394         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
31395         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
31396         * modules/inttypes (inttypes.h): Likewise.
31397         * modules/math (math.h): Likewise.
31398         * modules/search (search.h): Likewise.
31399         * modules/signal (signal.h): Likewise.
31400         * modules/stdint (stdint.h): Likewise.
31401         * modules/stdio (stdio.h): Likewise.
31402         * modules/stdlib (stdlib.h): Likewise.
31403         * modules/string (string.h): Likewise.
31404         * modules/sys_time (sys/time.h): Likewise.
31405         * modules/time (time.h): Likewise.
31406         * modules/wchar (wchar.h): Likewise.
31407         * modules/wctype (wtype.h): Likewise.
31408
31409 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31410
31411         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
31412
31413 2007-05-13  Bruno Haible  <bruno@clisp.org>
31414
31415         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
31416         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31417         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
31418         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
31419         (gl_PREREQ_STRTOK_R): Don't require it here.
31420
31421 2007-05-13  Bruno Haible  <bruno@clisp.org>
31422
31423         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
31424         when used in C++ mode.
31425
31426 2007-05-12  Bruno Haible  <bruno@clisp.org>
31427
31428         * lib/linebuffer.h: Tweak doc.
31429         * lib/linebuffer.c: Likewise.
31430
31431 2007-05-12  James Youngman  <jay@gnu.org>
31432
31433         * lib/linebuffer.c (readlinebuffer_delim): New function,
31434         like readlinebuffer, but use a caller-specified delimiter.
31435         (readlinebuffer): Just call readlinebuffer_delim with '\n'
31436         as the delimiter.
31437         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
31438
31439 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31440
31441         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
31442         * modules/openat (Files): Remove openat-die.c.
31443         (Depends-on): Add openat-die.
31444         * modules/openat-die: New module.
31445
31446 2007-05-06  Bruno Haible  <bruno@clisp.org>
31447
31448         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
31449         Update with info about Cygwin.
31450         * doc/functions/fprintf.texi: Update.
31451         * doc/functions/printf.texi: Update.
31452         * doc/functions/snprintf.texi: Update.
31453         * doc/functions/sprintf.texi: Update.
31454         * doc/functions/vfprintf.texi: Update.
31455         * doc/functions/vprintf.texi: Update.
31456         * doc/functions/vsnprintf.texi: Update.
31457         * doc/functions/vsprintf.texi: Update.
31458         Reported by Eric Blake.
31459
31460 2007-05-06  Bruno Haible  <bruno@clisp.org>
31461
31462         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
31463         padding ourselves for the floating-point directives.
31464         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
31465         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
31466         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31467         gl_PRINTF_FLAG_ZERO and test its result. Invoke
31468         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
31469         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31470         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
31471         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31472         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31473         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31474         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31475         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31476         * tests/test-snprintf-posix.h (test_function): Also check the width
31477         and some flags in the %f directive.
31478         * tests/test-sprintf-posix.h (test_function): Likewise.
31479         * tests/test-vasnprintf-posix.c (test_function): Likewise.
31480         * tests/test-vasprintf-posix.c (test_function): Likewise.
31481         * doc/functions/fprintf.texi: Update.
31482         * doc/functions/printf.texi: Update.
31483         * doc/functions/snprintf.texi: Update.
31484         * doc/functions/sprintf.texi: Update.
31485         * doc/functions/vfprintf.texi: Update.
31486         * doc/functions/vprintf.texi: Update.
31487         * doc/functions/vsnprintf.texi: Update.
31488         * doc/functions/vsprintf.texi: Update.
31489
31490 2007-05-06  Bruno Haible  <bruno@clisp.org>
31491
31492         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
31493         pass the ' flag character to sprintf or snprintf.
31494         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
31495         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
31496         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31497         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
31498         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
31499         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31500         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
31501         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31502         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31503         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31504         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31505         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31506         * tests/test-snprintf-posix.h (test_function): Also check the grouping
31507         flag.
31508         * tests/test-sprintf-posix.h (test_function): Likewise.
31509         * tests/test-vasnprintf-posix.c (test_function): Likewise.
31510         * tests/test-vasprintf-posix.c (test_function): Likewise.
31511         * doc/functions/fprintf.texi: Update.
31512         * doc/functions/printf.texi: Update.
31513         * doc/functions/snprintf.texi: Update.
31514         * doc/functions/sprintf.texi: Update.
31515         * doc/functions/vfprintf.texi: Update.
31516         * doc/functions/vprintf.texi: Update.
31517         * doc/functions/vsnprintf.texi: Update.
31518         * doc/functions/vsprintf.texi: Update.
31519
31520 2007-05-01  Bruno Haible  <bruno@clisp.org>
31521
31522         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
31523
31524 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
31525
31526         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
31527         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
31528
31529 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
31530
31531         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
31532         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
31533         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
31534
31535 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
31536
31537         * lib/argp-help.c (struct hol_entry): New member `ord'.
31538         (HOL_ENTRY_PTRCMP): Use ord for comparison
31539         (hol_sort): Initialize ord.
31540
31541 2007-05-01  Bruno Haible  <bruno@clisp.org>
31542
31543         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
31544         Reported by Eric Blake.
31545         * doc/gnulib.texi (Function Substitutes): Update.
31546
31547 2007-05-01  Bruno Haible  <bruno@clisp.org>
31548
31549         * doc/functions.texi: Remove file, now redundant through
31550         doc/functions/*.texi.
31551
31552 2007-05-01  Bruno Haible  <bruno@clisp.org>
31553
31554         * modules/argp (Depends-on): Add sleep.
31555
31556 2007-05-01  Bruno Haible  <bruno@clisp.org>
31557
31558         * modules/sleep-tests: New file.
31559         * tests/test-sleep.c: New file.
31560
31561         * modules/sleep: New file.
31562         * lib/sleep.c: New file.
31563         * m4/sleep.m4: New file.
31564         * lib/unistd_.h (sleep): New declaration.
31565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
31566         HAVE_SLEEP.
31567         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
31568         * doc/functions/sleep.texi: Document the sleep module.
31569
31570 2007-05-01  Bruno Haible  <bruno@clisp.org>
31571
31572         * lib/sigprocmask.h: Remove file.
31573         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
31574         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
31575         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
31576         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
31577         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
31578         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
31579         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
31580         HAVE_SIGSET_T as a shell variable.
31581         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
31582         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
31583         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
31584         (Depends-on): Add signal. Remove verify.
31585         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
31586         (Include): Mention <signal.h> instead of sigprocmask.h.
31587         * NEWS: Mention the change.
31588         * lib/fatal-signal.c: Don't include sigprocmask.h.
31589
31590 2007-05-01  Bruno Haible  <bruno@clisp.org>
31591
31592         * modules/signal: New file.
31593         * lib/signal_.h: New file.
31594         * m4/signal_h.m4: New file.
31595
31596 2007-05-01  Bruno Haible  <bruno@clisp.org>
31597
31598         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
31599         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
31600         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
31601         HAVE_WCTYPE_CTMP_BUG into wctype.h.
31602
31603 2007-05-01  Bruno Haible  <bruno@clisp.org>
31604
31605         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
31606         configure time.
31607         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
31608         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
31609         * modules/sys_stat (Makefile.am): Substitute their values into
31610         sys/stat.h.
31611
31612 2007-05-01  Bruno Haible  <bruno@clisp.org>
31613
31614         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
31615         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
31616         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
31617
31618 2007-05-01  Bruno Haible  <bruno@clisp.org>
31619
31620         * doc/header/assert.texi: Undo last change: don't mention the gnulib
31621         'assert' module here.
31622
31623 2007-05-01  Bruno Haible  <bruno@clisp.org>
31624
31625         * doc/functions/*.texi: New files.
31626         * doc/functions/google-ranking.txt: New file.
31627         * doc/gnulib.texi (Function Substitutes): New chapter.
31628         (ctime, inet_ntoa): Remove sections.
31629         * doc/ctime.texi: Remove file.
31630         * doc/inet_ntoa.texi: Remove file.
31631         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
31632         dependencies.
31633         (%.info): New rule, specifying a --reference-limit.
31634
31635 2007-05-01  Bruno Haible  <bruno@clisp.org>
31636
31637         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
31638
31639 2007-05-01  Bruno Haible  <bruno@clisp.org>
31640
31641         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
31642         the portability of 'mkdir' to mingw systems.
31643
31644 2007-05-01  Bruno Haible  <bruno@clisp.org>
31645
31646         * doc/headers/google-ranking.txt: New file.
31647
31648 2007-04-30  Eric Blake  <ebb9@byu.net>
31649
31650         Prefer fseeko to fseek.
31651         * modules/getpass (Depends-on): Add fseeko.
31652         * lib/getpass.c (getpass): Use fseeko, not fseek.
31653
31654 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
31655
31656         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
31657         assumes the sorting is stable, while most qsort implementations
31658         are not.  Use argument addresses to ensure they never compare as
31659         equal.
31660
31661         * tests/test-argp-2.sh (usage-indent test): Fix output
31662         (func_compare): Restore diff options
31663         * tests/test-argp.c: Restore #include "progname.h"
31664
31665 2007-04-29  Bruno Haible  <bruno@clisp.org>
31666
31667         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
31668         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31669         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
31670         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31671         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
31672         (configure.ac): Define CHECK_SNPRINTF_POSIX.
31673         (TESTS, check_PROGRAMS): Add test-snprintf.
31674         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
31675         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
31676         (TESTS, check_PROGRAMS): Add test-vsnprintf.
31677         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
31678         assertions that fail on HP-UX, OSF/1, or IRIX.
31679         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
31680
31681 2007-04-29  Bruno Haible  <bruno@clisp.org>
31682
31683         * MODULES.html.sh (posix_functions): Remove 'contents'.
31684
31685 2007-04-29  Karl Berry  <karl@gnu.org>
31686
31687         * config/srclist.txt (gendocs_template_min): new entry.
31688
31689 2007-04-29  Bruno Haible  <bruno@clisp.org>
31690
31691         Work around fpurge bug on BSD systems.
31692         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
31693         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
31694         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
31695         fpurge to rpl_fpurge if the system already has this function.
31696         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
31697         the case where the system already has this function. Correct invariants
31698         on BSD systems.
31699         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
31700         BSD systems.
31701
31702 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
31703
31704         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
31705         proposed by Sven Verdoolaege.
31706
31707         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
31708         options.
31709         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
31710         (usage and help tests): Update
31711
31712 2007-04-29  Bruno Haible  <bruno@clisp.org>
31713
31714         * tests/test-fflush.c (main): Use a file of size 17, not 10.
31715         Print more information in case of failure. Disable a test on BeOS.
31716
31717 2007-04-29  Bruno Haible  <bruno@clisp.org>
31718
31719         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
31720         This helps debugging on systems on which no gdb is available.
31721
31722 2007-04-29  Bruno Haible  <bruno@clisp.org>
31723
31724         * lib/freading.h: Improve comments.
31725         * lib/fwriting.h: Likewise.
31726         * tests/test-freading.c (main): Don't check freading immediately after
31727         repositioning. Needed for glibc.
31728
31729 2007-04-29  Bruno Haible  <bruno@clisp.org>
31730
31731         * lib/freading.c (freading): Trivial simplification.
31732
31733 2007-04-28  Bruno Haible  <bruno@clisp.org>
31734
31735         * tests/test-fwriting.c (main): Also test the interaction between
31736         fflush and fwriting.
31737         * modules/fwriting-tests (Depends-on): Add fflush.
31738
31739         * tests/test-freading.c (main): Also test the interaction between
31740         fflush and freading.
31741         * modules/freading-tests (Depends-on): Add fflush.
31742
31743 2007-04-28  Bruno Haible  <bruno@clisp.org>
31744
31745         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
31746         fseeko and ftello.
31747         Suggested by Eric Blake.
31748
31749 2007-04-28  Jim Meyering  <jim@meyering.net>
31750
31751         Avoid false-negative in gl_STDINT_H's C99 conformance test.
31752         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
31753         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
31754
31755 2007-04-27  Eric Blake  <ebb9@byu.net>
31756
31757         * doc/headers/assert.texi (assert.h): Document assert module use.
31758
31759 2007-04-27  Bruno Haible  <bruno@clisp.org>
31760
31761         * doc/headers/*.texi: New files.
31762         * doc/gnulib.texi (Header File Substitutes): New chapter.
31763         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
31764         dependencies.
31765         (standards.info ,standards.html, standards.dvi): Update dependencies.
31766         (mostlyclean, clean): New targets.
31767
31768 2007-04-27  Bruno Haible  <bruno@clisp.org>
31769
31770         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
31771         * modules/sysexits (Files, Makefile.am): Update.
31772
31773         * lib/sys_socket_.h: Renamed from lib/socket_.h.
31774         * modules/sys_socket (Files, Makefile.am): Update.
31775
31776         * lib/sys_stat_.h: Renamed from lib/stat_.h.
31777         * modules/sys_stat (Files, Makefile.am): Update.
31778
31779 2007-04-27  Eric Blake  <ebb9@byu.net>
31780
31781         * lib/freading.h: Improve comments.
31782         * lib/fwriting.h: Likewise.
31783         * lib/fflush.c: Likewise.
31784
31785         Fix closein for mingw.
31786         * modules/closein-tests: Add tests for closein.
31787         * tests/test-closein.c: New file.
31788         * tests/test-closein.sh: Likewise.
31789         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
31790         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
31791
31792 2007-04-27  Bruno Haible  <bruno@clisp.org>
31793
31794         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
31795         version is < 6.
31796         * lib/math_.h [__DECC]: Likewise.
31797         * lib/stdio_.h [__DECC]: Likewise.
31798         * lib/stdlib_.h [__DECC]: Likewise.
31799         * lib/string_.h [__DECC]: Likewise.
31800         * lib/time_.h [__DECC]: Likewise.
31801         * lib/wchar_.h [__DECC]: Likewise.
31802         * lib/wctype_.h [__DECC]: Likewise.
31803
31804 2007-04-27  Bruno Haible  <bruno@clisp.org>
31805
31806         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
31807
31808 2007-04-27  Bruno Haible  <bruno@clisp.org>
31809
31810         * lib/fflush.c: Add comments.
31811         * modules/fpurge-tests (Depends-on): Add fflush.
31812         * modules/freadable-tests (Depends-on): Likewise.
31813         * modules/fwritable-tests (Depends-on): Likewise.
31814
31815 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
31816
31817         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
31818         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
31819         Report by Bruno Haible <bruno@clisp.org>.
31820
31821 2007-04-26  Eric Blake  <ebb9@byu.net>
31822
31823         Fix fflush on mingw.
31824         * modules/fflush (Depends-on): Add freading.
31825         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
31826         but unread data.
31827
31828 2007-04-26  Eric Blake  <ebb9@byu.net>
31829         and Bruno Haible  <bruno@clisp.org>
31830
31831         Implement freading and fwriting.
31832         * lib/freading.c: New file.
31833         * lib/freading.h: Likewise.
31834         * m4/freading.m4: Likewise.
31835         * modules/freading: Likewise.
31836         * modules/freading-tests: Likewise.
31837         * tests/test-freading.c: Likewise.
31838         * lib/fwriting.c: New file.
31839         * lib/fwriting.h: Likewise.
31840         * m4/fwriting.m4: Likewise.
31841         * modules/fwriting: Likewise.
31842         * modules/fwriting-tests: Likewise.
31843         * tests/test-fwriting.c: Likewise.
31844         * MODULES.html.sh (File stream based Input/Output): Mention them.
31845
31846 2007-04-26  Bruno Haible  <bruno@clisp.org>
31847
31848         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
31849         'long' when we assume it.
31850         Suggested by Eric Blake.
31851
31852 2007-04-26  Bruno Haible  <bruno@clisp.org>
31853
31854         Ensure fseeko, ftello are declared on glibc systems.
31855         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
31856         * modules/fseeko (configure.ac-early): Likewise.
31857         * modules/ftello (configure.ac-early): Likewise.
31858         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
31859         AC_FUNC_FSEEKO for this.
31860         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
31861         (gl_CHECK_FSEEKO): Remove macro.
31862
31863 2007-04-26  Bruno Haible  <bruno@clisp.org>
31864
31865         * tests/test-fflush.c (main): Also check the ftell result after
31866         fflush and fseek/fseeko.
31867         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
31868         file descriptor position cache in the stream.
31869         * lib/fseeko.c (rpl_fseeko): Likewise.
31870
31871 2007-04-26  Bruno Haible  <bruno@clisp.org>
31872
31873         * modules/fflush-tests (Depends-on): Add fseeko.
31874
31875 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
31876             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31877
31878         * lib/argz_.h: ensure error_t definition is obtained in same
31879         mechanism system argz.h would have.
31880         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
31881         argz facilities are known bad.  Err on the side of caution if
31882         cross-compiling.
31883
31884 2007-04-25  Eric Blake  <ebb9@byu.net>
31885
31886         * lib/fpurge.c (includes): Use stdlib.h for free.
31887         * tests/test-fflush.c (main): Also test fflush-fseeko.
31888
31889 2007-04-25  Bruno Haible  <bruno@clisp.org>
31890
31891         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
31892         * lib/fseeko.c: New file.
31893         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
31894         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
31895         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
31896         gl_FUNC_FSEEKO.
31897         (gl_FUNC_FSEEKO): Invoke it.
31898         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
31899         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
31900         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
31901
31902 2007-04-25  Bruno Haible  <bruno@clisp.org>
31903
31904         * modules/fflush (Depends-on): Add ftello.
31905
31906 2007-04-25  Bruno Haible  <bruno@clisp.org>
31907
31908         * modules/ftello-tests: New file.
31909         * tests/test-ftello.c: New file.
31910
31911         * modules/ftello: New file.
31912         * m4/ftello.m4: New file.
31913         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
31914         HAVE_FTELLO.
31915         * lib/stdio_.h (ftello): New declaration.
31916         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
31917         HAVE_FTELLO.
31918
31919 2007-04-25  Bruno Haible  <bruno@clisp.org>
31920
31921         * modules/fseeko-tests: New file.
31922         * tests/test-fseeko.c: New file.
31923
31924         * modules/fseeko: New file.
31925         * m4/fseeko.m4: New file.
31926         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
31927         HAVE_FSEEKO.
31928         * lib/stdio_.h (fseeko): New declaration.
31929         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
31930         HAVE_FSEEKO.
31931
31932 2007-04-25  Bruno Haible  <bruno@clisp.org>
31933
31934         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
31935
31936 2007-04-25  Bruno Haible  <bruno@clisp.org>
31937
31938         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
31939         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
31940         * tests/test-unistd.c: Likewise.
31941         * tests/test-fcntl.c: Likewise.
31942
31943 2007-04-23  Eric Blake  <ebb9@byu.net>
31944
31945         * lib/fflush.c: Fix missing include.
31946         Reported by Bruno Haible.
31947
31948 2007-04-23  Bruno Haible  <bruno@clisp.org>
31949
31950         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
31951         Reported by Eric Blake.
31952
31953 2007-04-23  Bruno Haible  <bruno@clisp.org>
31954
31955         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
31956
31957 2007-04-23  Bruno Haible  <bruno@clisp.org>
31958
31959         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
31960
31961 2007-04-23  Bruno Haible  <bruno@clisp.org>
31962
31963         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
31964         Needed on HP-UX 11.
31965
31966 2007-04-16  Eric Blake  <ebb9@byu.net>
31967
31968         Make fflush rely on fpurge.
31969         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
31970         open coding all variants.
31971         * modules/fflush (Depends-on): Add fpurge and unistd.
31972         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
31973         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
31974
31975         Fix --with-tests compilation on cygwin.
31976         * modules/argmatch-tests (Makefile.am): List gnulib library first
31977         in LDADD.
31978         * modules/argp-tests (Makefile.am): Likewise.
31979         * modules/array-list-tests (Makefile.am): Likewise.
31980         * modules/array-oset-tests (Makefile.am): Likewise.
31981         * modules/avltree-list-tests (Makefile.am): Likewise.
31982         * modules/avltree-oset-tests (Makefile.am): Likewise.
31983         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31984         * modules/carray-list-tests (Makefile.am): Likewise.
31985         * modules/dirname-tests (Makefile.am): Likewise.
31986         * modules/frexp-tests (Makefile.am): Likewise.
31987         * modules/isnanl-tests (Makefile.am): Likewise.
31988         * modules/linked-list-tests (Makefile.am): Likewise.
31989         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31990         * modules/lock-tests (Makefile.am): Likewise.
31991         * modules/rbtree-list-tests (Makefile.am): Likewise.
31992         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31993         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31994         * modules/tls-tests (Makefile.am): Likewise.
31995         * modules/tsearch-tests (Makefile.am): Likewise.
31996         * modules/xvasprintf-tests (Makefile.am): Likewise.
31997
31998         Fix fpurge for cygwin.
31999         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
32000         value.
32001         * modules/fpurge-tests (Depends-on): Clean up trash.
32002
32003 2007-04-16  Simon Josefsson  <simon@josefsson.org>
32004
32005         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
32006
32007         * m4/autobuild.m4: Re-indent.
32008
32009 2007-04-13  Bruno Haible  <bruno@clisp.org>
32010
32011         * modules/fpurge-tests: New file.
32012         * tests/test-fpurge.c: New file.
32013
32014         * modules/fpurge: New file.
32015         * lib/fpurge.h: New file.
32016         * lib/fpurge.c: New file.
32017         * m4/fpurge.m4: New file.
32018
32019 2007-04-13  Bruno Haible  <bruno@clisp.org>
32020
32021         * modules/fbufmode-tests: New file.
32022         * tests/test-fbufmode.c: New file.
32023
32024         * modules/fbufmode: New file.
32025         * lib/fbufmode.h: New file.
32026         * lib/fbufmode.c: New file.
32027         * m4/fbufmode.m4: New file.
32028
32029 2007-04-13  Bruno Haible  <bruno@clisp.org>
32030
32031         * modules/fwritable-tests: New file.
32032         * tests/test-fwritable.c: New file.
32033
32034         * modules/fwritable: New file.
32035         * lib/fwritable.h: New file.
32036         * lib/fwritable.c: New file.
32037         * m4/fwritable.m4: New file.
32038
32039 2007-04-13  Bruno Haible  <bruno@clisp.org>
32040
32041         * modules/freadable-tests: New file.
32042         * tests/test-freadable.c: New file.
32043
32044         * modules/freadable: New file.
32045         * lib/freadable.h: New file.
32046         * lib/freadable.c: New file.
32047         * m4/freadable.m4: New file.
32048
32049 2007-04-13  Bruno Haible  <bruno@clisp.org>
32050
32051         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
32052         MOSTLYCLEANFILES.
32053
32054 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
32055
32056         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
32057         gzip bootstrap.conf to avoid dragging in i18n machinery.
32058         (gnulib_tool_option): Use it.
32059
32060 2007-04-13  Bruno Haible  <bruno@clisp.org>
32061
32062         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
32063         %F directives.
32064         * tests/test-vasprintf-posix.c (test_function): Likewise.
32065         * tests/test-snprintf-posix.h (test_function): Likewise.
32066         * tests/test-sprintf-posix.h (test_function): Likewise.
32067         * tests/test-fprintf-posix.h (test_function): Likewise.
32068         * tests/test-printf-posix.h (test_function): Likewise.
32069         * tests/test-fprintf-posix.out: Likewise.
32070
32071 2007-04-13  Bruno Haible  <bruno@clisp.org>
32072
32073         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
32074         * modules/tls-tests (configure.ac): Likewise.
32075         Reported by Arto C. Nirkko <anirkko@insel.ch>.
32076
32077 2007-04-13  Bruno Haible  <bruno@clisp.org>
32078
32079         * lib/tls.c (glthread_tls_get): Fix return type.
32080         Patch by Arto C. Nirkko <anirkko@insel.ch>.
32081
32082 2007-04-12  Eric Blake  <ebb9@byu.net>
32083
32084         * modules/gettime (Depends-on): Remove gettime.
32085         Reported by Dmitry V. Levin.
32086
32087 2007-04-12  Bruno Haible  <bruno@clisp.org>
32088
32089         * modules/fflush (Include): Mention <stdio.h>.
32090         * modules/strtoimax (Include): Mention <inttypes.h>.
32091         * modules/strtoumax (Include): Likewise.
32092
32093 2007-04-12  Eric Blake  <ebb9@byu.net>
32094
32095         * .cvsignore: New file.
32096         * .gitignore: Likewise.
32097
32098 2007-04-12  Bruno Haible  <bruno@clisp.org>
32099
32100         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
32101         not before, since $(LDADD) often contains libgnu.a.
32102         * modules/striconv-tests (test_striconv_LDADD): Likewise.
32103         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
32104         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
32105         Needed on Cygwin.
32106
32107 2007-04-12  Eric Blake  <ebb9@byu.net>
32108
32109         Work around glibc's failure to flush stdin on fclose.
32110         * lib/closein.c (close_stdin): Flush stdin before closing.
32111
32112         Work around glibc's failure to reset seekable stdin on exit.
32113         * modules/closein: New module.
32114         * lib/closein.c: New file.
32115         * lib/closein.h: Likewise.
32116         * m4/closein.m4: Likewise.
32117         * MODULES.html.sh (File stream based Input/Output): Document it.
32118
32119 2007-04-12  Simon Josefsson  <simon@josefsson.org>
32120
32121         * gnulib-tool: Rename generated 'autobuild' script to
32122         'do-autobuild' in --create-megatestdir output.
32123
32124         * doc/gnulib.texi (Build robot for gnulib): Fix.
32125
32126 2007-04-12  Simon Josefsson  <simon@josefsson.org>
32127
32128         * modules/sysexits (Depends-on): Add absolute-header.
32129
32130 2007-04-12  Eric Blake  <ebb9@byu.net>
32131
32132         No need to preserve errno on success.
32133         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
32134         Reported by Bruno Haible.
32135
32136 2007-04-12  Simon Josefsson  <simon@josefsson.org>
32137
32138         * MODULES.html.sh (Support for maintaining and releasing
32139         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
32140
32141 2007-04-12  Simon Josefsson  <simon@josefsson.org>
32142
32143         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
32144
32145 2007-04-12  Simon Josefsson  <simon@josefsson.org>
32146
32147         * modules/autobuild: New module.
32148
32149         * m4/autobuild.m4: New file.
32150
32151 2007-04-11  Bruno Haible  <bruno@clisp.org>
32152
32153         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
32154         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
32155         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
32156         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
32157         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32158         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32159         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32160         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32161         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32162         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32163         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
32164         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32165         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32166         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
32167         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32168         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32169         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
32170         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32171         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32172         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
32173         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32174         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32175         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
32176         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32177         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32178         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
32179         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32180         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32181         Reported by Eric Blake.
32182
32183 2007-04-11  Bruno Haible  <bruno@clisp.org>
32184
32185         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
32186
32187 2007-04-10  Bruno Haible  <bruno@clisp.org>
32188
32189         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
32190         for NaN and Infinity. Needed on FreeBSD 6.1.
32191         * tests/test-vasnprintf-posix.c (test_function): Undo last change
32192         regarding results for "%010a" of Infinity and NaN.
32193         * tests/test-vasprintf-posix.c (test_function): Likewise.
32194         * tests/test-snprintf-posix.h (test_function): Likewise.
32195         * tests/test-sprintf-posix.h (test_function): Likewise.
32196         * tests/test-fprintf-posix.h (test_function): Likewise.
32197         * tests/test-printf-posix.h (test_function): Likewise.
32198         * tests/test-fprintf-posix.out: Likewise.
32199
32200 2007-04-10  Bruno Haible  <bruno@clisp.org>
32201
32202         * modules/locale-tests: New file.
32203         * tests/test-locale.c: New file.
32204
32205         * modules/locale: New file.
32206         * lib/locale_.h: New file.
32207         * m4/locale_h.m4: New file.
32208
32209 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
32210             Bruno Haible  <bruno@clisp.org>
32211
32212         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
32213         be determined, test for availability of the copysignf, copysign,
32214         copysignl functions.
32215         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
32216         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
32217         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
32218
32219 2007-04-09  Eric Blake  <ebb9@byu.net>
32220
32221         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
32222         * modules/stdio (Makefile.am): Support fflush.
32223         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32224         * modules/fflush: New file.
32225         * lib/fflush.c: Likewise.
32226         * m4/fflush.m4: Likewise.
32227         * modules/fflush-tests: New test.
32228         * tests/test-fflush.c: Likewise.
32229         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
32230
32231 2007-04-06  Bruno Haible  <bruno@clisp.org>
32232
32233         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
32234         (VASNPRINTF): Use signbit for faster determination whether to print a
32235         minus sign.
32236         * modules/vasnprintf (Files): Remove lib/float+.h.
32237         * modules/fprintf-posix (Depends-on): Add signbit.
32238         * modules/snprintf-posix (Depends-on): Likewise.
32239         * modules/sprintf-posix (Depends-on): Likewise.
32240         * modules/vasnprintf-posix (Depends-on): Likewise.
32241         * modules/vasprintf-posix (Depends-on): Likewise.
32242         * modules/vfprintf-posix (Depends-on): Likewise.
32243         * modules/vsnprintf-posix (Depends-on): Likewise.
32244         * modules/vsprintf-posix (Depends-on): Likewise.
32245
32246 2007-04-06  Bruno Haible  <bruno@clisp.org>
32247
32248         * tests/test-frexp.c (main): Test also the sign bit of zero results.
32249         * tests/test-frexpl.c (main): Likewise.
32250         * tests/test-ldexpl.c (main): Likewise.
32251         * modules/frexp-tests (Depends-on): Add signbit.
32252         * modules/frexpl-tests (Depdends-on): Likewise.
32253         * modules/ldexpl-tests (Depdends-on): Likewise.
32254
32255 2007-04-06  Bruno Haible  <bruno@clisp.org>
32256
32257         * modules/signbit-tests: New file.
32258         * tests/test-signbit.c: New file.
32259
32260         * modules/signbit: New file.
32261         * lib/signbitf.c: New file.
32262         * lib/signbitd.c: New file.
32263         * lib/signbitl.c: New file.
32264         * m4/signbit.m4: New file.
32265         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
32266         (signbit): New macro.
32267         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
32268         REPLACE_SIGNBIT.
32269         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
32270         REPLACE_FREXPL into math.h.
32271
32272 2007-04-06  Bruno Haible  <bruno@clisp.org>
32273
32274         * modules/isnanf-nolibm-tests: New file.
32275         * tests/test-isnanf.c: New file.
32276
32277         * modules/isnanf-nolibm: New file.
32278         * lib/isnanf.h: New file.
32279         * lib/isnanf.c: New file.
32280         * lib/isnan.c: Consider the USE_FLOAT macro.
32281         * m4/isnanf.m4: New file.
32282
32283 2007-04-06  Bruno Haible  <bruno@clisp.org>
32284
32285         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
32286         (Link): New section.
32287
32288         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
32289
32290 2007-04-06  Bruno Haible  <bruno@clisp.org>
32291
32292         Assume the 'long double' type.
32293         * m4/longdouble.m4: Remove file.
32294         * config/srclist.txt: Don't mention longdouble.m4.
32295         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
32296         * lib/float+.h: Likewise.
32297         * lib/frexp.c: Likewise.
32298         * lib/printf-args.h: Likewise.
32299         * lib/printf-args.c: Likewise.
32300         * lib/printf-frexp.c: Likewise.
32301         * lib/printf-parse.c: Likewise.
32302         * lib/vasnprintf.c: Likewise.
32303         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
32304         * m4/intl.m4: Likewise.
32305         * m4/isnanl.m4: Likewise.
32306         * m4/printf.m4: Likewise.
32307         * m4/printf-frexpl.m4: Likewise.
32308         * m4/vasnprintf.m4: Likewise.
32309         * modules/allocsa (Files): Remove m4/longdouble.m4.
32310         * modules/gettext (Files): Likewise.
32311         * modules/relocatable-prog-wrapper (Files): Likewise.
32312         * modules/vasnprintf (Files): Likewise.
32313         * modules/isnanl (Files): Likewise.
32314         (Include): Simplify.
32315         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
32316         (Include): Simplify.
32317         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
32318         (Include): Simplify.
32319         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
32320         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32321         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
32322         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32323         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
32324         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32325         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
32326         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32327         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
32328         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32329         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
32330         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32331         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
32332         * tests/test-isnanl.c: Likewise.
32333         * tests/test-snprintf-posix.h: Likewise.
32334         * tests/test-sprintf-posix.h: Likewise.
32335         * tests/test-vasnprintf-posix.c: Likewise.
32336         * tests/test-vasnprintf-posix2.c: Likewise.
32337         * tests/test-vasprintf-posix.c: Likewise.
32338
32339 2007-04-06  Bruno Haible  <bruno@clisp.org>
32340
32341         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
32342         * lib/math_.h [__DECC]: Include the overridden include file through
32343         #include_next, outside the double-inclusion guard.
32344         * lib/stdio_.h [__DECC]: Likewise.
32345         * lib/stdlib_.h [__DECC]: Likewise.
32346         * lib/string_.h [__DECC]: Likewise.
32347         * lib/time_.h [__DECC]: Likewise.
32348         * lib/wchar_.h [__DECC]: Likewise.
32349         * lib/wctype_.h [__DECC]: Likewise.
32350         * lib/inttypes_.h [__DECC]: Likewise.
32351         Reported by Albert Chin <china@thewrittenword.com> in
32352         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
32353
32354 2007-04-04  Eric Blake  <ebb9@byu.net>
32355
32356         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
32357         1.5.x.
32358
32359 2007-04-04  Bruno Haible  <bruno@clisp.org>
32360
32361         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
32362         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
32363
32364 2007-04-04  Bruno Haible  <bruno@clisp.org>
32365
32366         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
32367         results for "%010a" of Infinity and NaN.
32368         * tests/test-vasprintf-posix.c (test_function): Likewise.
32369         * tests/test-snprintf-posix.h (test_function): Likewise.
32370         * tests/test-sprintf-posix.h (test_function): Likewise.
32371         * tests/test-fprintf-posix.h (test_function): Remove these tests.
32372         * tests/test-printf-posix.h (test_function): Likewise.
32373         * tests/test-fprintf-posix.out: Update.
32374         Needed for FreeBSD 6.1.
32375
32376 2007-04-04  Bruno Haible  <bruno@clisp.org>
32377
32378         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
32379         directly used by the gnulib modules nor by gnulib-tool.
32380
32381 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
32382
32383         * DEPENDENCIES: Give overall description of version dependency
32384         desirability.  Use more-typical names for apps.
32385         Add shell, coreutils, diffutils, grep, tar, gzip.
32386
32387 2007-04-04  Simon Josefsson  <simon@josefsson.org>
32388
32389         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
32390
32391 2007-04-04  Karl Berry  <karl@gnu.org>
32392
32393         * MODULES.html.sh (func_module): missing '.
32394
32395 2007-04-03  Bruno Haible  <bruno@clisp.org>
32396
32397         * modules/argmatch-tests (Makefile.am): New variable
32398         test_argmatch_LDADD.
32399         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
32400         * modules/array-list-tests (Makefile.am): New variable
32401         test_array_list_LDADD.
32402         * modules/array-oset-tests (Makefile.am): New variable
32403         test_array_oset_LDADD.
32404         * modules/avltree-list-tests (Makefile.am): New variable
32405         test_avltree_list_LDADD.
32406         * modules/avltree-oset-tests (Makefile.am): New variable
32407         test_avltree_oset_LDADD.
32408         * modules/avltreehash-list-tests (Makefile.am): New variable
32409         test_avltreehash_list_LDADD.
32410         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
32411         test_canonicalize_lgpl_LDADD.
32412         * modules/carray-list-tests (Makefile.am): New variable
32413         test_carray_list_LDADD.
32414         * modules/dirname-tests (Makefile.am): New variable
32415         test_dirname_LDADD.
32416         * modules/linked-list-tests (Makefile.am): New variable
32417         test_linked_list_LDADD.
32418         * modules/linkedhash-list-tests (Makefile.am): New variable
32419         test_linkedhash_list_LDADD.
32420         * modules/rbtree-list-tests (Makefile.am): New variable
32421         test_rbtree_list_LDADD.
32422         * modules/rbtree-oset-tests (Makefile.am): New variable
32423         test_rbtree_oset_LDADD.
32424         * modules/rbtreehash-list-tests (Makefile.am): New variable
32425         test_rbtreehash_list_LDADD.
32426         * modules/xvasprintf-tests (Makefile.am): New variable
32427         test_xvasprintf_LDADD.
32428         Reported by Eric Blake.
32429
32430 2007-04-03  Eric Blake  <ebb9@byu.net>
32431
32432         * DEPENDENCIES: Weaken m4 requirements.
32433
32434 2007-04-03  Bruno Haible  <bruno@clisp.org>
32435
32436         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
32437         * modules/isnanl-tests (configure.ac): Likewise.
32438
32439 2007-04-03  Ben Pfaff  <blp@gnu.org>
32440
32441         * modules/iconv_open: Add $(srcdir)/ to source directory
32442         references in Makefile fragments that call gperf, to fix VPATH
32443         builds.
32444
32445 2007-04-03  Bruno Haible  <bruno@clisp.org>
32446
32447         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
32448         * lib/ldexpl.c: Undo last change.
32449
32450 2007-04-03  Bruno Haible  <bruno@clisp.org>
32451
32452         * modules/printf-frexpl (Depends-on): Undo last change.
32453         (Files): Add m4/ldexpl.m4.
32454
32455 2007-04-03  Bruno Haible  <bruno@clisp.org>
32456
32457         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
32458         * modules/isnanl (Link): New section.
32459
32460         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
32461         * modules/frexp (Link): New section.
32462
32463         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
32464         * modules/frexpl (Link): New section.
32465
32466         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
32467         * modules/ldexpl (Link): New section.
32468
32469 2007-04-03  Bruno Haible  <bruno@clisp.org>
32470
32471         * modules/TEMPLATE-EXTENDED: New file.
32472         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
32473
32474 2007-04-03  Bruno Haible  <bruno@clisp.org>
32475
32476         * DEPENDENCIES: New file.
32477         Suggested by Simon Josefsson.
32478
32479 2007-04-03  Bruno Haible  <bruno@clisp.org>
32480
32481         * doc/gnulib.texi: Escape @.
32482
32483 2007-04-03  James Youngman  <jay@gnu.org>
32484         and Paul Eggert  <eggert@cs.ucla.edu>
32485
32486         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
32487         birthtime on all systems that have birthtime, not just those which
32488         use st_birthtimensec rather than st_birthtim.  Putting zero in
32489         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
32490         that the birth time is not available for files on an NFS mount.
32491
32492 2007-04-03  Simon Josefsson  <simon@josefsson.org>
32493
32494         * modules/memxor: Move back from crypto/, suggested by Bruno.
32495         * modules/crypto/hmac-sha1: Fix memxor dependency.
32496
32497         * modules/crypto/gc: Moved from ../.
32498
32499 2007-04-02  Eric Blake  <ebb9@byu.net>
32500
32501         * lib/ldexpl.c (includes): Avoid libm.
32502
32503         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
32504
32505 2007-04-02  Bruno Haible  <bruno@clisp.org>
32506
32507         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
32508         on IRIX.
32509
32510 2007-04-02  Bruno Haible  <bruno@clisp.org>
32511
32512         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
32513         x86 or x86_64 platforms running MacOS X.
32514         Reported by Ryan Schmidt <@ryandesign.com>.
32515
32516 2007-04-02  Bruno Haible  <bruno@clisp.org>
32517
32518         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
32519         i386.
32520
32521 2007-04-01  Simon Josefsson  <simon@josefsson.org>
32522
32523         * modules/crypto/arcfour: Moved from ../.
32524         * modules/crypto/arcfour-tests: Moved from ../.
32525         * modules/crypto/arctwo: Moved from ../.
32526         * modules/crypto/arctwo-tests: Moved from ../.
32527         * modules/crypto/des: Moved from ../.
32528         * modules/crypto/des-tests: Moved from ../.
32529         * modules/crypto/gc-arcfour: Moved from ../.
32530         * modules/crypto/gc-arcfour-tests: Moved from ../.
32531         * modules/crypto/gc-arctwo: Moved from ../.
32532         * modules/crypto/gc-arctwo-tests: Moved from ../.
32533         * modules/crypto/gc-des: Moved from ../.
32534         * modules/crypto/gc-des-tests: Moved from ../.
32535         * modules/crypto/gc-hmac-md5: Moved from ../.
32536         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
32537         * modules/crypto/gc-hmac-sha1: Moved from ../.
32538         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
32539         * modules/crypto/gc-md2: Moved from ../.
32540         * modules/crypto/gc-md2-tests: Moved from ../.
32541         * modules/crypto/gc-md4: Moved from ../.
32542         * modules/crypto/gc-md4-tests: Moved from ../.
32543         * modules/crypto/gc-md5: Moved from ../.
32544         * modules/crypto/gc-md5-tests: Moved from ../.
32545         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
32546         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
32547         * modules/crypto/gc-random: Moved from ../.
32548         * modules/crypto/gc-rijndael: Moved from ../.
32549         * modules/crypto/gc-rijndael-tests: Moved from ../.
32550         * modules/crypto/gc-sha1: Moved from ../.
32551         * modules/crypto/gc-sha1-tests: Moved from ../.
32552         * modules/crypto/gc-tests: Moved from ../.
32553         * modules/crypto/hmac-md5: Moved from ../.
32554         * modules/crypto/hmac-md5-tests: Moved from ../.
32555         * modules/crypto/hmac-sha1: Moved from ../.
32556         * modules/crypto/hmac-sha1-tests: Moved from ../.
32557         * modules/crypto/md2: Moved from ../.
32558         * modules/crypto/md2-tests: Moved from ../.
32559         * modules/crypto/md4: Moved from ../.
32560         * modules/crypto/md4-tests: Moved from ../.
32561         * modules/crypto/md5: Moved from ../.
32562         * modules/crypto/md5-tests: Moved from ../.
32563         * modules/crypto/memxor: Moved from ../.
32564         * modules/crypto/rijndael: Moved from ../.
32565         * modules/crypto/rijndael-tests: Moved from ../.
32566         * modules/crypto/sha1: Moved from ../.
32567
32568 2007-03-30  James Youngman  <jay@gnu.org>
32569
32570         * tests/test-stat-time.c (prepare_test): use chmod() rather than
32571         rename() to change the ctime of a file (because ctime is unaffected
32572         by rename on jfs2 on AIX 5.1).
32573         (main): Start by doing cleanup, in case a previous run failed leaving
32574         test files behind.
32575
32576 2007-03-31  Bruno Haible  <bruno@clisp.org>
32577
32578         Support old proprietary implementations of iconv.
32579         * modules/iconv_open: New file.
32580         * lib/iconv_.h: New file.
32581         * m4/iconv_h.m4: New file.
32582         * lib/iconv_open.c: New file.
32583         * lib/iconv_open-aix.gperf: New file.
32584         * lib/iconv_open-hpux.gperf: New file.
32585         * lib/iconv_open-irix.gperf: New file.
32586         * lib/iconv_open-osf.gperf: New file.
32587         * m4/iconv_open.m4: New file.
32588         * modules/linebreak (Depends-on): Add iconv_open.
32589         * modules/striconv (Depends-on): Likewise.
32590         * modules/striconveh (Depends-on): Likewise.
32591         * modules/unicodeio (Depends-on): Likewise.
32592         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
32593         (iconv_t)(-1).
32594         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
32595         conversion if cd is (iconv_t)(-1).
32596         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
32597         is not possible.
32598
32599 2007-03-31  Bruno Haible  <bruno@clisp.org>
32600
32601         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
32602         work on Solaris either. Protect also second use of "autodetect_jp".
32603
32604 2007-03-31  Bruno Haible  <bruno@clisp.org>
32605
32606         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
32607         the function is not present.
32608
32609 2007-03-31  Bruno Haible  <bruno@clisp.org>
32610
32611         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
32612         the function is not present.
32613
32614 2007-03-31  Bruno Haible  <bruno@clisp.org>
32615
32616         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
32617         a bug in HP-UX iconv_open().
32618
32619 2007-03-31  Bruno Haible  <bruno@clisp.org>
32620
32621         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
32622         (Mathematics <math.h>): New section, add fpieee.
32623         (Input/output <stdio.h>): Add fseterr.
32624         (Mathematics <math.h>): New section, add printf-frexp.
32625         (Container data structures): Add sublist.
32626         (Core language properties): Add fpucw, inline.
32627         (Functions for greatest-width integer types <inttypes.h>): Add
32628         imaxabs, imaxdiv, inttypes.
32629         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
32630         isnanl-nolibm, ldexp.
32631         (Mathematics <math.h>): New section, add printf-frexpl.
32632         (Support for systems lacking POSIX:2001): Add fprintf-posix,
32633         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
32634         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
32635         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
32636         (Unicode string functions): Add unistr/u*-mbtoucr.
32637         (Java): Add javacomp-script, javaexec-script.
32638         (C#): Add csharpcomp-script, csharpexec-script.
32639         (Support for building libraries and executables): Add havelib,
32640         relocatable-*.
32641         (Support for maintaining and releasing projects): Renamed from
32642         'Support for maintaining and release projects'. Add announce-gen.
32643
32644 2007-03-31  Bruno Haible  <bruno@clisp.org>
32645
32646         * README: Talk primarily about git.
32647         (git and CVS): Renamed from CVS.
32648         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
32649         gnulib is available through git.
32650         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
32651
32652 2007-03-30  Bruno Haible  <bruno@clisp.org>
32653
32654         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
32655         * lib/poll_.h: Likewise.
32656         * lib/stat_.h: Likewise.
32657         * lib/sys_time_.h: Likewise.
32658         * lib/sysexit_.h: Likewise.
32659         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
32660         * lib/stdbool_.h: Likewise.
32661         * lib/byteswap_.h: Add double-inclusion guard.
32662
32663 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
32664
32665         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
32666
32667 2007-03-30  Karl Berry  <karl@gnu.org>
32668
32669         * config/srclist-update: double space after USA in the license
32670         substitution, since that's how it's usually (?) written.
32671
32672 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
32673
32674         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
32675         reported by Bruno Haible.
32676
32677 2007-03-29  Bruno Haible  <bruno@clisp.org>
32678
32679         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
32680         a bug in AIX iconv().
32681
32682 2007-03-29  Bruno Haible  <bruno@clisp.org>
32683
32684         * modules/ldexpl-tests: New file.
32685         * tests/test-ldexpl.c: New file.
32686
32687 2007-03-29  Bruno Haible  <bruno@clisp.org>
32688
32689         * lib/ldexpl.c: Include fpucw.h.
32690         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
32691         multiplication.
32692         * modules/ldexpl (Depends-on): Add fpucw.
32693
32694 2007-03-29  Bruno Haible  <bruno@clisp.org>
32695
32696         * modules/ldexpl: New file.
32697         * m4/ldexpl.m4: New file.
32698         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
32699         set.
32700         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
32701         REPLACE_LDEXPL.
32702         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
32703         REPLACE_LDEXPL.
32704         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
32705         gl_FUNC_LDEXPL_WORKS.
32706         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
32707         * modules/mathl (Files): Remove lib/ldexpl.c.
32708         (Depends-on): Add ldexpl.
32709
32710 2007-03-29  Bruno Haible  <bruno@clisp.org>
32711
32712         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
32713
32714 2007-03-29  Bruno Haible  <bruno@clisp.org>
32715
32716         * tests/test-striconveh.c (main): Don't assume that a direct conversion
32717         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
32718         and possibly also HP-UX.
32719         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
32720         work on AIX, IRIX, HP-UX, OSF/1.
32721         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
32722         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
32723         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
32724         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
32725         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
32726         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
32727
32728 2007-03-29  Bruno Haible  <bruno@clisp.org>
32729
32730         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
32731
32732 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
32733
32734         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
32735         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
32736
32737 2007-03-29  Eric Blake  <ebb9@byu.net>
32738
32739         * lib/acl-internal.h: Remove redundant include.
32740         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
32741         Cygwin when a file is locked.
32742
32743 2007-03-29  Bruno Haible  <bruno@clisp.org>
32744
32745         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
32746         file.
32747         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
32748
32749 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
32750
32751         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
32752         try to remove a parent directory if the child couldn't be removed
32753         (except for the first rmdir, which could fail because the child
32754         doesn't exist).  Problem reported by Jeff Blaine in
32755         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
32756
32757 2007-03-28  Bruno Haible  <bruno@clisp.org>
32758
32759         * lib/striconveh.c (utf8conv_carefully): New function.
32760         (mem_cd_iconveh_internal): Invoke it.
32761
32762 2007-03-28  Bruno Haible  <bruno@clisp.org>
32763
32764         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
32765         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
32766         input.
32767         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
32768         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
32769         unistr/u8-uctomb.
32770
32771 2007-03-28  Bruno Haible  <bruno@clisp.org>
32772
32773         * modules/unistr/u8-mbtoucr: New file.
32774         * lib/unistr/u8-mbtoucr.c: New file.
32775         * modules/unistr/u16-mbtoucr: New file.
32776         * lib/unistr/u16-mbtoucr.c: New file.
32777         * modules/unistr/u16-mbtoucr: New file.
32778         * lib/unistr/u16-mbtoucr.c: New file.
32779         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
32780
32781 2007-03-27  Simon Josefsson  <simon@josefsson.org>
32782             Bruno Haible  <bruno@clisp.org>
32783
32784         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
32785         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
32786         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
32787
32788         * m4/stdio_h.m4: Add stubs for vasprintf too.
32789
32790         * modules/stdio: Support vasprintf in sed command.
32791
32792         * modules/vasprintf: Depend on stdio for prototypes.  Remove
32793         vasprintf.h.  Add stdio module indicator.
32794
32795         * lib/stdio_.h: Declare asprintf and vasprintf, based on
32796         vasprintf.h.
32797
32798         * lib/vasprintf.h: File removed.
32799
32800         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
32801         * lib/vasprintf.c: Ditto.
32802         * lib/xvasprintf.c: Ditto.
32803         * tests/test-vasprintf-posix.c: Ditto.
32804         * tests/test-vasprintf.c: Ditto.
32805
32806 2007-03-27  Bruno Haible  <bruno@clisp.org>
32807
32808         Make vasnprintf multithread-safe.
32809         * lib/vasnprintf.c (decimal_point_char): New function.
32810         (VASNPRINTF): Use it.
32811         Suggested by Simon Josefsson.
32812
32813 2007-03-27  Eric Blake  <ebb9@byu.net>
32814
32815         Support sub-second birthtime on cygwin.
32816         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
32817         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
32818         (get_stat_birthtime): Also work with st_birthtim.
32819
32820 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
32821
32822         * lib/stat-time.h (USE_BIRTHTIME): Remove.
32823         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
32824         (get_stat_birthtime_ns): Do not try to use "spare" fields.
32825         (get_stat_birthtime_ns): Simplify compile-time tests.
32826         (get_stat_birthtime): Change the API to look like
32827         get_stat_mtime etc., except return a negative tv_nsec on error.
32828         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
32829         Don't check for "spare" fields.
32830         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
32831         or for struct stat.st_birthtime, as these tests aren't used.
32832         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
32833
32834 2007-03-27  Bruno Haible  <bruno@clisp.org>
32835
32836         * lib/stat-time.h: Include <sys/stat.h>.
32837
32838 2007-03-27  James Youngman  <jay@gnu.org>
32839
32840         * lib/stat-time.h (get_stat_birthtime): New function for
32841           retrieving st_birthtime as provided by UFS2 (hence *BSD).
32842         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
32843           and its variants.
32844         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
32845         * modules/stat-time-test: New file.
32846         * tests/test-stat-time.c: New test, devised by Bruno Haible.
32847
32848 2007-03-26  Bruno Haible  <bruno@clisp.org>
32849
32850         Better support of signalling NaNs.
32851         * lib/atanl.c: Include isnanl.h.
32852         (atanl): Perform test for NaN at the beginning of the function and
32853         through a call to isnanl.
32854         * lib/cosl.c: Include isnanl.h.
32855         (cosl): Perform test for NaN at the beginning of the function and
32856         through a call to isnanl.
32857         * lib/ldexpl.c: Include isnanl.h.
32858         (ldexpl): Perform test for NaN through a call to isnanl.
32859         * lib/logl.c: Include isnanl.h.
32860         (logl): Perform test for NaN at the beginning of the function and
32861         through a call to isnanl.
32862         * lib/sinl.c: Include isnanl.h.
32863         (sinl): Perform test for NaN at the beginning of the function and
32864         through a call to isnanl.
32865         * lib/sqrtl.c: Include isnanl.h.
32866         (sqrtl): Perform test for NaN at the beginning of the function and
32867         through a call to isnanl.
32868         * lib/tanl.c: Include isnanl.h.
32869         (tanl): Perform test for NaN at the beginning of the function and
32870         through a call to isnanl.
32871         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
32872         * modules/mathl (Depends-on): Add isnanl.
32873
32874 2007-03-26  Eric Blake  <ebb9@byu.net>
32875
32876         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
32877         regression in logic sense of previous patch.
32878
32879 2007-03-26  Bruno Haible  <bruno@clisp.org>
32880
32881         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
32882         unportable shell command "if ! ...".
32883         Reported by Ralf Wildenhues.
32884
32885 2007-03-25  Bruno Haible  <bruno@clisp.org>
32886
32887         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
32888         <sysexits.h> file, and only add EX_CONFIG.
32889         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
32890         absolute file name and whether it is sufficient. Substitute also
32891         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
32892         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
32893         ABSOLUTE_SYSEXITS_H into sysexits.h.
32894
32895 2007-03-25  Bruno Haible  <bruno@clisp.org>
32896
32897         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
32898         hints is NULL.
32899
32900 2007-03-25  Bruno Haible  <bruno@clisp.org>
32901
32902         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
32903         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
32904
32905 2007-03-25  Bruno Haible  <bruno@clisp.org>
32906
32907         * lib/vasnprintf.c: Include langinfo.h.
32908         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
32909         multithread-safe.
32910         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
32911         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
32912         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32913         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32914         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32915         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32916         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32917         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
32918         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32919         Reported by Simon Josefsson.
32920
32921 2007-03-25  Bruno Haible  <bruno@clisp.org>
32922
32923         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
32924         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
32925         * modules/vasnprintf (Depends-on): Add stdint.
32926
32927 2007-03-25  Bruno Haible  <bruno@clisp.org>
32928
32929         * modules/fpieee: New file.
32930         * m4/fpieee.m4: New file.
32931         * modules/isnan-nolibm (Depends-on): Add fpieee.
32932         * modules/isnanl-nolibm (Depends-on): Add fpieee.
32933         * modules/isnanl (Depends-on): Add fpieee.
32934
32935 2007-03-25  Bruno Haible  <bruno@clisp.org>
32936
32937         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
32938
32939 2007-03-25  Bruno Haible  <bruno@clisp.org>
32940
32941         Avoid test failures on IRIX 6.5.
32942         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
32943         (main): Use it.
32944         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
32945         macros.
32946         (main): Use them.
32947
32948 2007-03-25  Bruno Haible  <bruno@clisp.org>
32949
32950         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
32951         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
32952         exists but doesn't work.
32953         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
32954         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
32955         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
32956         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
32957
32958 2007-03-25  Bruno Haible  <bruno@clisp.org>
32959
32960         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
32961         returns inf. Needed on IRIX 6.5.
32962
32963 2007-03-25  Bruno Haible  <bruno@clisp.org>
32964
32965         * tests/test-frexpl.c: Include isnanl-nolibm.h.
32966         (main): Use isnanl instead of x != x idiom.
32967         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
32968
32969         * tests/test-frexp.c: Include isnan.h.
32970         (main): Use isnan instead of x != x idiom.
32971         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
32972
32973 2007-03-25  Bruno Haible  <bruno@clisp.org>
32974
32975         * tests/test-frexp.c (NaN): New function/macro.
32976         (main): Use it instead of 0.0 / 0.0.
32977         * tests/test-isnan.c (NaN): New function/macro.
32978         (main): Use it instead of 0.0 / 0.0.
32979         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
32980         (test_function): Use it instead of 0.0 / 0.0.
32981         * tests/test-vasprintf-posix.c (NaN): New function/macro.
32982         (test_function): Use it instead of 0.0 / 0.0.
32983         * tests/test-snprintf-posix.h (NaN): New function/macro.
32984         (test_function): Use it instead of 0.0 / 0.0.
32985         * tests/test-sprintf-posix.h (NaN): New function/macro.
32986         (test_function): Use it instead of 0.0 / 0.0.
32987         * tests/test-fprintf-posix.h (NaN): New function/macro.
32988         (test_function): Use it instead of 0.0 / 0.0.
32989         * tests/test-printf-posix.h (NaN): New function/macro.
32990         (test_function): Use it instead of 0.0 / 0.0.
32991
32992         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
32993
32994 2007-03-25  Bruno Haible  <bruno@clisp.org>
32995
32996         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
32997
32998 2007-03-25  Bruno Haible  <bruno@clisp.org>
32999
33000         * lib/regexec.c (merge_state_with_log): Make static.
33001
33002 2007-03-25  Bruno Haible  <bruno@clisp.org>
33003
33004         * lib/trigl.c (kernel_rem_pio2): Make static.
33005
33006 2007-03-25  Bruno Haible  <bruno@clisp.org>
33007
33008         * lib/sincosl.c (sincosl_table): Make static.
33009
33010 2007-03-25  Bruno Haible  <bruno@clisp.org>
33011
33012         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
33013         if the compiler does not support C99.
33014
33015 2007-03-25  Bruno Haible  <bruno@clisp.org>
33016
33017         * modules/time (Makefile.am): Ensure all rule action lines start with a
33018         tab.
33019
33020 2007-03-24  Bruno Haible  <bruno@clisp.org>
33021
33022         * modules/tsearch-tests: New file.
33023         * tests/test-tsearch.sh: New file.
33024         * tests/test-tsearch.c: New file, mostly copied from glibc.
33025
33026         * modules/search-tests: New file.
33027         * tests/test-search.c: New file.
33028
33029         * modules/search: New file.
33030         * lib/search_.h: New file, incorporating lib/tsearch.h.
33031         * m4/search_h.m4: New file.
33032         * lib/tsearch.h: Remove file.
33033         * lib/tsearch.c: Include search.h instead of tsearch.h.
33034         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
33035         HAVE_TSEARCH.
33036         * modules/tsearch (Files): Remove lib/tsearch.h.
33037         (Depends-on): Add search.
33038         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
33039         (Include): Change tsearch.h into search.h.
33040
33041 2007-03-24  Bruno Haible  <bruno@clisp.org>
33042
33043         * modules/fpucw: New file.
33044         * lib/fpucw.h: New file.
33045         * lib/frexp.c: Include fpucw.h.
33046         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
33047         (FUNC): Use them.
33048         * lib/printf-frexp.c: Include fpucw.h.
33049         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
33050         (FUNC): Use them.
33051         * lib/vasnprintf.c: Include fpucw.h.
33052         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
33053         'long double' calculations.
33054         * tests/test-frexpl.c: Include fpucw.h.
33055         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
33056         * tests/test-printf-frexpl.c: Include fpucw.h.
33057         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
33058         * modules/frexpl (Depends-on): Add fpucw.
33059         * modules/printf-frexpl (Depends-on): Likewise.
33060         * modules/fprintf-posix (Depends-on): Likewise.
33061         * modules/snprintf-posix (Depends-on): Likewise.
33062         * modules/sprintf-posix (Depends-on): Likewise.
33063         * modules/vasnprintf-posix (Depends-on): Likewise.
33064         * modules/vasprintf-posix (Depends-on): Likewise.
33065         * modules/vfprintf-posix (Depends-on): Likewise.
33066         * modules/vsnprintf-posix (Depends-on): Likewise.
33067         * modules/vsprintf-posix (Depends-on): Likewise.
33068         * modules/frexpl-tests (Depends-on): Likewise.
33069         * modules/printf-frexpl-tests (Depends-on): Likewise.
33070
33071 2007-03-24  Bruno Haible  <bruno@clisp.org>
33072
33073         * lib/float+.h: New file.
33074         * lib/isnan.c: Include float+.h.
33075         (SIZE): New macro.
33076         (FUNC): Compare only SIZE bytes of the value.
33077         * lib/vasnprintf.c: Include float+.h.
33078         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
33079         SIZEOF_LDBL or SIZEOF_DBL bytes.
33080         * modules/isnan-nolibm (Files): Add lib/float+.h.
33081         * modules/isnanl-nolibm (Files): Add lib/float+.h.
33082         * modules/isnanl (Files): Add lib/float+.h.
33083         * modules/vasnprintf (Files): Add lib/float+.h.
33084
33085 2007-03-24  Bruno Haible  <bruno@clisp.org>
33086
33087         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
33088         include isnanl-nolibm.h.
33089
33090 2007-03-24  Bruno Haible  <bruno@clisp.org>
33091
33092         * tests/test-read-file.c (main): Don't produce spurious output for
33093         expected situations. Make the test fail if it encountered unexpected
33094         results.
33095
33096 2007-03-24  Bruno Haible  <bruno@clisp.org>
33097
33098         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
33099         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
33100
33101 2007-03-24  Bruno Haible  <bruno@clisp.org>
33102
33103         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
33104
33105 2007-03-24  Bruno Haible  <bruno@clisp.org>
33106
33107         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
33108         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
33109
33110         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
33111         * modules/utf8-ucs4: Turn into a symbolic link to module
33112         unistr/u8-mbtouc.
33113
33114         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
33115         utf8-ucs4-unsafe.
33116         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
33117         unistr/u8-mbtouc-unsafe.
33118
33119         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
33120         * modules/utf16-ucs4: Turn into a symbolic link to module
33121         unistr/u16-mbtouc.
33122
33123         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
33124         utf16-ucs4-unsafe.
33125         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
33126         unistr/u16-mbtouc-unsafe.
33127
33128         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
33129         * modules/ucs4-utf8: Turn into a symbolic link to module
33130         unistr/u8-ubtomb.
33131
33132         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
33133         * modules/ucs4-utf16: Turn into a symbolic link to module
33134         unistr/u16-ubtomb.
33135
33136 2007-03-24  Bruno Haible  <bruno@clisp.org>
33137
33138         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
33139         Enable the function only if HAVE_INLINE.
33140         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
33141         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
33142         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
33143         Enable the function only if HAVE_INLINE.
33144         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
33145         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
33146         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
33147         Enable the function only if HAVE_INLINE.
33148         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
33149         Enable the function only if HAVE_INLINE.
33150         * modules/utf8-ucs4: Update.
33151         * modules/utf8-ucs4-unsafe: Update.
33152         * modules/utf16-ucs4: Update.
33153         * modules/utf16-ucs4-unsafe: Update.
33154         * modules/ucs4-utf8: Update.
33155         * modules/ucs4-utf16: Update.
33156
33157 2007-03-24  Bruno Haible  <bruno@clisp.org>
33158
33159         * lib/utf8-ucs4.h: Remove file.
33160         * lib/utf8-ucs4-unsafe.h: Remove file.
33161         * lib/utf16-ucs4.h: Remove file.
33162         * lib/utf16-ucs4-unsafe.h: Remove file.
33163         * lib/ucs4-utf8.h: Remove file.
33164         * lib/ucs4-utf16.h: Remove file.
33165         * lib/unistr.h: Include their previous contents.
33166         * m4/utf-ucs4.m4: Remove file.
33167         * m4/ucs4-utf.m4: Remove file.
33168         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
33169         (Depends-on): Add unistr/base.
33170         (configure.ac): Remove gl_UTF_UCS4.
33171         (Makefile.am): Update.
33172         (Include): Change to unistr.h.
33173         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
33174         (Depends-on): Add unistr/base.
33175         (configure.ac): Remove gl_UTF_UCS4.
33176         (Makefile.am): Update.
33177         (Include): Change to unistr.h.
33178         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
33179         (Depends-on): Add unistr/base.
33180         (configure.ac): Remove gl_UTF_UCS4.
33181         (Makefile.am): Update.
33182         (Include): Change to unistr.h.
33183         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
33184         (Depends-on): Add unistr/base.
33185         (configure.ac): Remove gl_UTF_UCS4.
33186         (Makefile.am): Update.
33187         (Include): Change to unistr.h.
33188         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
33189         (Depends-on): Add unistr/base.
33190         (configure.ac): Remove gl_UCS4_UTF.
33191         (Makefile.am): Update.
33192         (Include): Change to unistr.h.
33193         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
33194         (Depends-on): Add unistr/base.
33195         (configure.ac): Remove gl_UCS4_UTF.
33196         (Makefile.am): Update.
33197         (Include): Change to unistr.h.
33198         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
33199         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
33200         utf8-ucs4-unsafe.h.
33201         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
33202         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
33203         utf16-ucs4-unsafe.h.
33204         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
33205         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
33206         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
33207         * lib/unistr/u8-strchr.c: Likewise.
33208         * lib/unistr/u8-strrchr.c: Likewise.
33209         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
33210         * lib/unistr/u16-strchr.c: Likewise.
33211         * lib/unistr/u16-strrchr.c: Likewise.
33212         * lib/striconveh.c: Update.
33213         * lib/linebreak.c: Update.
33214
33215 2007-03-24  Bruno Haible  <bruno@clisp.org>
33216
33217         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
33218         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
33219
33220 2007-03-22  Bruno Haible  <bruno@clisp.org>
33221
33222         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
33223
33224 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
33225
33226         * MODULES.html.sh (File system functions): New module write-any-file.
33227         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
33228         * m4/write-any-file.m4: New files.
33229
33230 2007-03-23  Eric Blake  <ebb9@byu.net>
33231
33232         * gnulib-tool: Rearrange space-tab sequences, since some editors
33233         like to eat them.
33234
33235 2007-03-23  Eric Blake  <ebb9@byu.net>
33236
33237         * lib/version-etc.c (version_etc_va): Update license wording to
33238         be more concise.  Recommended by Richard Stallman.
33239
33240 2007-03-22  Bruno Haible  <bruno@clisp.org>
33241
33242         * lib/poll.c (MSG_PEEK): New fallback definition.
33243
33244 2007-03-22  Bruno Haible  <bruno@clisp.org>
33245
33246         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
33247         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
33248         (main): Update.
33249         Fixes a compilation error on BeOS.
33250
33251 2007-03-22  Bruno Haible  <bruno@clisp.org>
33252
33253         * modules/frexpl-tests: New file.
33254         * tests/test-frexpl.c: New file.
33255
33256         * modules/frexpl: New file.
33257         * m4/frexpl.m4: New file.
33258         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
33259         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
33260         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
33261         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
33262         (Depends-on): Add frexpl. Remove isnanl-nolibm.
33263         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
33264
33265 2007-03-22  Bruno Haible  <bruno@clisp.org>
33266
33267         * lib/frexpl.c: Share code with lib/frexp.c.
33268         * modules/mathl (Files): Add lib/frexp.c.
33269         (Depends-on): Add isnanl-nolibm.
33270
33271 2007-03-22  Bruno Haible  <bruno@clisp.org>
33272
33273         * modules/printf-frexp (Files): Add m4/frexp.m4.
33274         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
33275         only if the found frexp function actually works.
33276
33277 2007-03-22  Bruno Haible  <bruno@clisp.org>
33278
33279         * lib/frexp.c: Remove older implementation that uses divisions.
33280
33281 2007-03-21  Bruno Haible  <bruno@clisp.org>
33282
33283         * modules/frexp-tests: New file.
33284         * tests/test-frexp.c: New file.
33285
33286         * modules/frexp: New file.
33287         * lib/frexp.c: New file.
33288         * m4/frexp.m4: New file.
33289         * lib/math_.h (frexp): New declaration.
33290         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
33291         REPLACE_FREXP.
33292         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
33293
33294 2007-03-21  Bruno Haible  <bruno@clisp.org>
33295
33296         * modules/isnanl-tests: New file.
33297         * tests/test-isnanl.c: New file.
33298
33299         * modules/isnanl: New file.
33300         * lib/isnanl.h: New file.
33301         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
33302         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
33303         gl_FUNC_ISNANL_WORKS.
33304         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
33305         New macros.
33306
33307 2007-03-21  Bruno Haible  <bruno@clisp.org>
33308
33309         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
33310         lib/isnanl.h.
33311         (Include): Update.
33312         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
33313         * lib/vasnprintf.c: Update.
33314         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
33315         tests/test-isnanl.h, remove tests/test-isnanl.c.
33316         (Makefile.am): Update.
33317         * tests/test-isnanl-nolibm.c: New file.
33318         * tests/test-isnanl.h: New file.
33319         * tests/test-isnanl.c: Remove file.
33320
33321 2007-03-21  Jim Meyering  <jim@meyering.net>
33322
33323         When trying to open ".", treat ESTALE like EACCES.
33324         * lib/savewd.c (savewd_save): Resort to forking not just upon
33325         failure with EACCES, but also when errno is ESTALE.
33326
33327 2007-03-20  Bruno Haible  <bruno@clisp.org>
33328
33329         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
33330         Needed on AIX 5.1. Reported by Matthew Woehlke.
33331
33332 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
33333
33334         Suggestions by Bruno Haible:
33335         * lib/acl-internal.h: Include "gettext.h" rather than rolling
33336         our own.
33337         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
33338         * modules/acl (Depends-on): Add gettext.
33339
33340 2007-03-19  Bruno Haible  <bruno@clisp.org>
33341
33342         * modules/iconvme: Remove file.
33343         * lib/iconvme.h: Remove file.
33344         * lib/iconvme.c: Remove file.
33345         * m4/iconvme.m4: Remove file.
33346
33347 2007-03-19  Bruno Haible  <bruno@clisp.org>
33348
33349         * doc/relocatable-maint.texi: Break long shell script line.
33350         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
33351
33352 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
33353
33354         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
33355         handle file_has_acl.
33356         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
33357         * lib/acl.c: Move header inclusions and related macro defns into
33358         lib/acl-internal.h.
33359         (S_ISLNK): Remove defn, since that's now done for us.
33360         (file_has_acl): Move to lib/file-has-acl.c.
33361         Call acl_trivial if available.  This is the crucial part of the fix.
33362         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
33363         shared within the library.  Rewrite a bit, partly to make it compatible
33364         with the GNU coding style.
33365         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
33366         Remove unnecessary double-quotes.
33367         Don't test for acl_to_text; the build will catch that.
33368         Replace acl_entries if it doesn't exist and it is needed.
33369         Check for -lsec and acl_trivial (as used on Solaris 10).
33370         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
33371         lib/file-has-acl.c.
33372         (Depends-on): Add sys_stat, for S_ISLNK.
33373
33374 2007-03-19  Ben Pfaff  <blp@gnu.org>
33375
33376         * doc/gnulib.texi: Fix typos.
33377         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
33378
33379 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
33380
33381         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
33382         If size is zero here, buf must be zero.
33383
33384 2007-03-19  Simon Josefsson  <simon@josefsson.org>
33385
33386         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
33387         <bruno@clisp.org>.
33388
33389 2007-03-18  Bruno Haible  <bruno@clisp.org>
33390
33391         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
33392         Suggested by Eric Blake.
33393
33394 2007-03-18  Ben Pfaff  <blp@gnu.org>
33395
33396         * doc/relocatable.texi: Recommend using as prefix a directory
33397         that does not exist and will never be created.  Based on
33398         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
33399         and others.
33400
33401 2007-03-17  Bruno Haible  <bruno@clisp.org>
33402
33403         * lib/fchownat.c: Include lchown.h.
33404
33405 2007-03-17  Bruno Haible  <bruno@clisp.org>
33406
33407         Fix endless loop when the given allocated size was > INT_MAX.
33408         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
33409         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
33410         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
33411         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
33412         * lib/sprintf.c (sprintf): Likewise.
33413
33414 2007-03-17  Bruno Haible  <bruno@clisp.org>
33415
33416         * tests/test-argp-2.sh (func_compare): Output a context diff.
33417
33418 2007-03-17  Bruno Haible  <bruno@clisp.org>
33419
33420         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
33421         locale's decimal-point character.
33422
33423 2007-03-17  Bruno Haible  <bruno@clisp.org>
33424
33425         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
33426         before comparing it. Needed because on some platforms (e.g. x86) a
33427         'long double' occupies less bytes than sizeof (long double).
33428
33429 2007-03-17  Bruno Haible  <bruno@clisp.org>
33430
33431         * tests/test-crc.c (main): Make printf statements 64-bit clean.
33432         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
33433         * tests/test-getaddrinfo.c (simple): Likewise.
33434         * tests/test-read-file.c (main): Likewise.
33435
33436 2007-03-17  Bruno Haible  <bruno@clisp.org>
33437
33438         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
33439
33440 2007-03-17  Bruno Haible  <bruno@clisp.org>
33441
33442         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
33443         unused variable.
33444
33445 2007-03-17  Bruno Haible  <bruno@clisp.org>
33446
33447         * tests/test-c-strcasecmp.c: Include c-strcase.h.
33448         * tests/test-c-strncasecmp.c: Likewise.
33449
33450 2007-03-17  Bruno Haible  <bruno@clisp.org>
33451
33452         * modules/stdlib (Depends-on): Add unistd.
33453         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
33454         Needed for MacOS X 10.3.
33455
33456 2007-03-17  Bruno Haible  <bruno@clisp.org>
33457
33458         * lib/unistr/u-strdup.h: Include <stdlib.h>.
33459
33460 2007-03-17  Bruno Haible  <bruno@clisp.org>
33461
33462         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
33463
33464 2007-03-17  Bruno Haible  <bruno@clisp.org>
33465
33466         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
33467         to reflect files copied from gnulib (with or without modifications).
33468         Suggested by Jim Meyering.
33469
33470 2007-03-17  Eric Blake  <ebb9@byu.net>
33471
33472         * NEWS: Document stdlib change from 2007-02-18.
33473
33474 2007-03-17  Jim Meyering  <jim@meyering.net>
33475
33476         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
33477         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
33478         someone uses a name containing shell meta-characters.
33479         Reported by Alfred M. Szmidt.
33480
33481         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
33482
33483 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
33484
33485         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
33486         and copy gettext configuration files only if configure.ac contains
33487         a use of AM_GNU_GETTEXT_VERSION.
33488
33489 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
33490
33491         * build-aux/bootstrap (gnulib_name): New variable.
33492         (gnulib_tool_options): Use it.
33493
33494 2007-03-13  Simon Josefsson  <simon@josefsson.org>
33495
33496         * tests/test-des.c: Use new namespace.
33497
33498 2007-03-15  Bruno Haible  <bruno@clisp.org>
33499
33500         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
33501         Reported by James Youngman <jay@gnu.org>.
33502
33503 2007-03-15  Bruno Haible  <bruno@clisp.org>
33504
33505         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
33506         declared prototype. Needed with cc on OSF/1 5.1.
33507
33508 2007-03-15  Bruno Haible  <bruno@clisp.org>
33509
33510         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
33511         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
33512         (struct gl_list_implementation): Add dispose_fn argument to the
33513         'create_empty', 'create' methods.
33514         (struct gl_list_impl_base): Add field 'dispose_fn'.
33515         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
33516         argument.
33517         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
33518         dispose_fn argument.
33519         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
33520         dispose_fn on the dropped values.
33521         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
33522         dispose_fn argument.
33523         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
33524         dropped values.
33525         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
33526         (gl_tree_remove_node): Call dispose_fn on the dropped value.
33527         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
33528         (gl_tree_remove_node): Call dispose_fn on the dropped value.
33529         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
33530         argument.
33531         (gl_tree_list_free): Call dispose_fn on the dropped values.
33532         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
33533         the dropped values.
33534         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
33535         Add dispose_fn argument.
33536         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
33537         Call dispose_fn on the dropped values.
33538         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
33539         Add dispose_fn argument.
33540         (gl_sublist_create): Initialize the 'dispose_fn' field.
33541         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
33542         * tests/test-array_list.c (main): Update.
33543         * tests/test-carray_list.c (main): Update.
33544         * tests/test-avltree_list.c (main): Update.
33545         * tests/test-rbtree_list.c (main): Update.
33546         * tests/test-avltreehash_list.c (main): Update.
33547         * tests/test-rbtreehash_list.c (main): Update.
33548         * tests/test-linked_list.c (main): Update.
33549         * tests/test-linkedhash_list.c (main): Update.
33550         * tests/test-array_oset.c (main): Update.
33551
33552 2007-03-15  Bruno Haible  <bruno@clisp.org>
33553
33554         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
33555         (gl_oset_create_empty): Add dispose_fn argument.
33556         (struct gl_oset_implementation): Add dispose_fn argument to
33557         'create_empty' method.
33558         (struct gl_oset_impl_base): Add dispose_fn field.
33559         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
33560         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
33561         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
33562         values.
33563         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
33564         (gl_tree_oset_free): Call dispose_fn on the dropped values.
33565         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
33566         dropped value.
33567         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
33568         dropped value.
33569         * tests/test-array_oset.c (main): Update.
33570         * tests/test-avltree_oset.c (main): Update.
33571         * tests/test-rbtree_oset.c (main): Update.
33572         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
33573
33574 2007-03-13  Bruno Haible  <bruno@clisp.org>
33575
33576         * tests/test-stdbool.c (i): Update after last patch.
33577
33578 2007-03-12  Bruno Haible  <bruno@clisp.org>
33579
33580         * lib/quotearg.c: Include <wctype.h> early, before the definition of
33581         the iswprint macro. Needed on Solaris 2.5.1.
33582
33583 2007-03-12  Bruno Haible  <bruno@clisp.org>
33584
33585         * tests/test-printf-frexp.c (main): Declare x as volatile.
33586
33587 2007-03-12  Simon Josefsson  <simon@josefsson.org>
33588
33589         * doc/gnulib.texi (Build robot for gnulib): New section.
33590
33591 2007-03-12  Jim Meyering  <jim@meyering.net>
33592
33593         * build-aux/bootstrap: New file.
33594         * build-aux/bootstrap.conf: New file, from coreutils.
33595
33596 2007-03-11  Bruno Haible  <bruno@clisp.org>
33597
33598         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
33599
33600 2007-03-12  Simon Josefsson  <simon@josefsson.org>
33601
33602         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
33603         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
33604         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
33605
33606 2007-03-11  Bruno Haible  <bruno@clisp.org>
33607
33608         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
33609         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
33610
33611 2007-03-11  Bruno Haible  <bruno@clisp.org>
33612
33613         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
33614         formula. Needed for SunPRO C 5.0.
33615
33616 2007-03-11  Bruno Haible  <bruno@clisp.org>
33617
33618         * modules/long-options (Depends-on): Add getopt.
33619
33620 2007-03-11  Bruno Haible  <bruno@clisp.org>
33621
33622         * modules/modechange (Depends-on): Add stdbool.
33623
33624 2007-03-11  Bruno Haible  <bruno@clisp.org>
33625
33626         * modules/i-ring (Depends-on): Add stdbool.
33627
33628 2007-03-11  Bruno Haible  <bruno@clisp.org>
33629
33630         * modules/gc-des (Depends-on): Add stdbool.
33631
33632 2007-03-11  Bruno Haible  <bruno@clisp.org>
33633
33634         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
33635
33636 2007-03-11  Bruno Haible  <bruno@clisp.org>
33637
33638         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
33639
33640 2007-03-11  Bruno Haible  <bruno@clisp.org>
33641
33642         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
33643
33644 2007-03-11  Bruno Haible  <bruno@clisp.org>
33645
33646         * lib/vasnprintf.c (sprintf): Undefine.
33647
33648 2007-03-11  Bruno Haible  <bruno@clisp.org>
33649
33650         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
33651         initializers in SunPRO C and Compaq C compilers.
33652
33653 2007-03-11  Bruno Haible  <bruno@clisp.org>
33654
33655         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
33656         decrementing code ANSI C compliant.
33657
33658 2007-03-11  Bruno Haible  <bruno@clisp.org>
33659
33660         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
33661         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
33662
33663 2007-03-11  Bruno Haible  <bruno@clisp.org>
33664
33665         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
33666         <stdbool.h> substitute doesn't pass.
33667
33668 2007-03-11  Bruno Haible  <bruno@clisp.org>
33669
33670         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
33671
33672 2007-03-11  Bruno Haible  <bruno@clisp.org>
33673
33674         * gnulib-tool (func_create_megatestdir): Create also an autobuild
33675         script, for submission to autobuild.josefsson.org.
33676
33677 2007-03-10  Bruno Haible  <bruno@clisp.org>
33678
33679         * modules/canonicalize-lgpl-tests: New file.
33680         * tests/test-canonicalize-lgpl.sh: New file.
33681         * tests/test-canonicalize-lgpl.c: New file.
33682
33683         * modules/c-strcase-tests: New file.
33684         * tests/test-c-strcase.sh: New file.
33685         * tests/test-c-strcasecmp.c: New file.
33686         * tests/test-c-strncasecmp.c: New file.
33687
33688         * modules/atexit-tests: New file.
33689         * tests/test-atexit.sh: New file.
33690         * tests/test-atexit.c: New file.
33691
33692 2007-03-10  Bruno Haible  <bruno@clisp.org>
33693
33694         * tests/test-binary-io.sh: Use temporary filenames that are not so
33695         likely to clash with those of other tests (in a parallel make).
33696         * tests/test-binary-io.c: Likewise.
33697
33698 2007-03-10  Bruno Haible  <bruno@clisp.org>
33699
33700         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
33701         fallback; use #error instead.
33702         Suggested by Simon Josefsson.
33703
33704 2007-03-10  Bruno Haible  <bruno@clisp.org>
33705
33706         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
33707         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
33708         first and the last.
33709
33710 2007-03-10  Bruno Haible  <bruno@clisp.org>
33711
33712         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
33713
33714 2007-03-10  Bruno Haible  <bruno@clisp.org>
33715
33716         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
33717         "make distcheck".
33718         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
33719         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
33720         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
33721
33722 2007-03-10  Bruno Haible  <bruno@clisp.org>
33723
33724         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
33725         variable.
33726         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
33727         variable.
33728
33729 2007-03-09  Eric Blake  <ebb9@byu.net>
33730         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
33731
33732         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
33733         types are not being provided by gnulib.
33734         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
33735         types are supported.
33736
33737 2007-03-10  Bruno Haible  <bruno@clisp.org>
33738
33739         * lib/stdio_.h (__attribute__): New macro.
33740         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
33741         vsprintf): Specify __attribute__ __format__ for GCC.
33742         Suggested by Eric Blake.
33743
33744 2007-03-09  Bruno Haible  <bruno@clisp.org>
33745
33746         * modules/printf-posix-tests: New file.
33747         * tests/test-printf-posix.sh: New file.
33748         * tests/test-printf-posix.c: New file.
33749
33750         * modules/printf-posix: New file.
33751         * lib/printf.c: New file.
33752         * m4/printf-posix-rpl.m4: New file.
33753         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
33754         REPLACE_PRINTF.
33755         * lib/stdio_.h (printf): New declaration.
33756         (format, __format__, ____printf____, ____scanf____, ____strftime____,
33757         ____strfmon____): New macros.
33758         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
33759         REPLACE_PRINTF.
33760
33761 2007-03-09  Bruno Haible  <bruno@clisp.org>
33762
33763         * tests/test-vasnprintf-posix2.sh: New file.
33764         * tests/test-vasnprintf-posix2.c: New file.
33765         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
33766         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
33767         (Makefile.am): Activate test-vasnprintf-posix2.sh.
33768
33769         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
33770         a locale dependent decimal point, rather than always '.'.
33771
33772 2007-03-09  Eric Blake  <ebb9@byu.net>
33773
33774         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
33775         spite of platforms like Tandem/NSK that define it to -1.
33776
33777 2007-03-08  Bruno Haible  <bruno@clisp.org>
33778
33779         * modules/vprintf-posix-tests: New file.
33780         * tests/test-vprintf-posix.sh: New file.
33781         * tests/test-vprintf-posix.c: New file.
33782         * tests/test-printf-posix.h: New file.
33783
33784         * modules/vprintf-posix: New file.
33785         * lib/vprintf.c: New file.
33786         * m4/vprintf-posix.m4: New file.
33787         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
33788         REPLACE_VPRINTF.
33789         * lib/stdio_.h (vprintf): New declaration.
33790         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
33791         REPLACE_VPRINTF.
33792
33793 2007-03-08  Bruno Haible  <bruno@clisp.org>
33794
33795         * modules/fprintf-posix-tests: New file.
33796         * tests/test-fprintf-posix.sh: New file.
33797         * tests/test-fprintf-posix.c: New file.
33798
33799         * modules/fprintf-posix: New file.
33800         * lib/fprintf.c: New file.
33801         * m4/fprintf-posix.m4: New file.
33802         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
33803         REPLACE_FPRINTF.
33804         * lib/stdio_.h (fprintf): New declaration.
33805         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
33806         REPLACE_FPRINTF.
33807
33808 2007-03-08  Bruno Haible  <bruno@clisp.org>
33809
33810         * modules/vfprintf-posix-tests: New file.
33811         * tests/test-vfprintf-posix.sh: New file.
33812         * tests/test-vfprintf-posix.c: New file.
33813         * tests/test-fprintf-posix.h: New file.
33814         * tests/test-fprintf-posix.out: New file.
33815
33816         * modules/vfprintf-posix: New file.
33817         * lib/vfprintf.c: New file.
33818         * m4/vfprintf-posix.m4: New file.
33819         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
33820         REPLACE_VFPRINTF.
33821         * lib/stdio_.h (vfprintf): New declaration.
33822         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
33823         REPLACE_VFPRINTF.
33824
33825 2007-03-08  Bruno Haible  <bruno@clisp.org>
33826
33827         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
33828
33829 2007-03-08  Bruno Haible  <bruno@clisp.org>
33830
33831         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
33832         instead of 'expr' invocations.
33833         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33834         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33835         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33836         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33837         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33838         Suggested by Paul Eggert.
33839
33840 2007-03-08  Bruno Haible  <bruno@clisp.org>
33841
33842         * modules/fseterr-tests: New file.
33843         * tests/test-fseterr.c: New file.
33844
33845         * modules/fseterr: New file.
33846         * lib/fseterr.h: New file.
33847         * lib/fseterr.c: New file.
33848
33849 2007-03-08  Bruno Haible  <bruno@clisp.org>
33850
33851         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
33852         * lib/getopt_.h: Likewise.
33853         * lib/mbswidth.h: Likewise.
33854         * lib/setenv.h: Likewise.
33855         * lib/vasnprintf.h: Likewise.
33856         * lib/vasprintf.h: Likewise.
33857         * lib/verror.h: Likewise.
33858         * lib/xsetenv.h: Likewise.
33859         * lib/xvasprintf.h: Likewise.
33860
33861 2007-03-08  Jim Meyering  <jim@meyering.net>
33862
33863         * users.txt: Add parted.
33864
33865         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
33866
33867 2007-03-07  Bruno Haible  <bruno@clisp.org>
33868
33869         * m4/printf.m4: Make the shell script snippets copy&pastable.
33870
33871 2007-03-02  Bruno Haible  <bruno@clisp.org>
33872
33873         * lib/netinet_in_.h: New file.
33874         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
33875         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
33876         * modules/netinet_in (Files): Add lib/netinet_in_.h.
33877         (Depends-on): Add absolute-header.
33878         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
33879         into netinet/in.h.
33880
33881 2007-03-03  Bruno Haible  <bruno@clisp.org>
33882
33883         * lib/sys_select_.h: New file.
33884         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
33885         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
33886         * modules/sys_select (Files): Add lib/sys_select_.h.
33887         (Depends-on): Add absolute-header.
33888         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
33889         into sys/select.h.
33890
33891 2007-03-02  Bruno Haible  <bruno@clisp.org>
33892
33893         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
33894         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
33895         values.
33896         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
33897         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
33898         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
33899         * modules/sys_socket (Depends-on): Add absolute-header.
33900         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
33901         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
33902         (Include): Remove requirement of inclusion of <sys/types.h>.
33903
33904 2007-03-02  Bruno Haible  <bruno@clisp.org>
33905
33906         * lib/byteswap_.h (bswap_32): Fix formula.
33907
33908 2007-03-06  Bruno Haible  <bruno@clisp.org>
33909
33910         * modules/sprintf-posix-tests: New file.
33911         * tests/test-sprintf-posix.c: New file.
33912
33913         * modules/sprintf-posix: New file.
33914         * lib/sprintf.c: New file.
33915         * m4/sprintf-posix.m4: New file.
33916         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
33917         REPLACE_SPRINTF.
33918         * lib/stdio_.h (sprintf): New declaration.
33919         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
33920         REPLACE_SPRINTF.
33921
33922 2007-03-06  Bruno Haible  <bruno@clisp.org>
33923
33924         * modules/vsprintf-posix-tests: New file.
33925         * tests/test-vsprintf-posix.c: New file.
33926         * tests/test-sprintf-posix.h: New file.
33927
33928         * modules/vsprintf-posix: New file.
33929         * lib/vsprintf.c: New file.
33930         * m4/vsprintf-posix.m4: New file.
33931         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
33932         REPLACE_VSPRINTF.
33933         * lib/stdio_.h (vsprintf): New declaration.
33934         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
33935         REPLACE_VSPRINTF.
33936
33937 2007-03-06  Bruno Haible  <bruno@clisp.org>
33938
33939         * modules/vsnprintf (Depend-on): Remove minmax.
33940
33941 2007-03-06  Bruno Haible  <bruno@clisp.org>
33942
33943         * modules/snprintf-posix-tests: New file.
33944         * tests/test-snprintf-posix.c: New file.
33945
33946         * modules/snprintf-posix: New file.
33947         * m4/snprintf-posix.m4: New file.
33948         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
33949         gl_FUNC_SNPRINTF.
33950         (gl_FUNC_SNPRINTF): Invoke it.
33951         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
33952         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
33953         is set.
33954         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
33955
33956 2007-03-06  Bruno Haible  <bruno@clisp.org>
33957
33958         * modules/vsnprintf-posix-tests: New file.
33959         * tests/test-vsnprintf-posix.c: New file.
33960         * tests/test-snprintf-posix.h: New file.
33961
33962         * modules/vsnprintf-posix: New file.
33963         * m4/vsnprintf-posix.m4: New file.
33964         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
33965         gl_FUNC_VSNPRINTF.
33966         (gl_FUNC_VSNPRINTF): Invoke it.
33967         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
33968         * lib/stdio_.h (vsnprintf): Define as a replacement if
33969         REPLACE_VSNPRINTF is set.
33970         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
33971
33972 2007-03-06  Bruno Haible  <bruno@clisp.org>
33973
33974         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
33975         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
33976
33977 2007-03-06  Bruno Haible  <bruno@clisp.org>
33978
33979         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
33980         (asinl): Declare also if HAVE_DECL_ASINL is set.
33981         (atanl): Declare also if HAVE_DECL_ATANL is set.
33982         (ceill): Declare also if HAVE_DECL_CEILL is set.
33983         (cosl): Declare also if HAVE_DECL_COSL is set.
33984         (expl): Declare also if HAVE_DECL_EXPL is set.
33985         (floorl): Declare also if HAVE_DECL_FLOORL is set.
33986         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
33987         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
33988         (logl): Declare also if HAVE_DECL_LOGL is set.
33989         (sinl): Declare also if HAVE_DECL_SINL is set.
33990         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
33991         (tanl): Declare also if HAVE_DECL_TANL is set.
33992         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
33993         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
33994         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
33995         declaration of frexpl, ldexpl.
33996         * modules/printf-frexpl (Depends-on): Add math.
33997         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
33998
33999 2007-03-05  Bruno Haible  <bruno@clisp.org>
34000
34001         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
34002         frexpl and ldexpl are declared.
34003         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
34004
34005 2007-03-05  Bruno Haible  <bruno@clisp.org>
34006
34007         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
34008         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
34009
34010 2007-03-05  Bruno Haible  <bruno@clisp.org>
34011
34012         * lib/stdio_.h: Include <stddef.h>.
34013
34014 2007-03-05  Bruno Haible  <bruno@clisp.org>
34015
34016         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
34017
34018 2007-03-05  Bruno Haible  <bruno@clisp.org>
34019
34020         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
34021         NetBSD 4, from Ralf Wildenhues.
34022
34023 2007-03-04  Bruno Haible  <bruno@clisp.org>
34024
34025         * lib/vasprintf.h: Update #if logic for the case when the functions
34026         exist but are overridden.
34027
34028 2007-03-04  Bruno Haible  <bruno@clisp.org>
34029
34030         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
34031         implementations: glibc-2.4 and MacOS X 10.3.
34032         * tests/test-vasnprintf-posix.c (test_function): Test also the case
34033         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
34034         * tests/test-vasprintf-posix.c (test_function): Likewise.
34035
34036 2007-03-04  Bruno Haible  <bruno@clisp.org>
34037
34038         * modules/vasprintf-posix-tests: New file.
34039         * tests/test-vasprintf-posix.c: New file.
34040
34041         * modules/vasprintf-posix: New file.
34042         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
34043         defined.
34044         * m4/vasprintf-posix.m4: New file.
34045         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
34046         gl_FUNC_VASPRINTF.
34047         (gl_FUNC_VASPRINTF): Invoke it.
34048         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
34049         here.
34050         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
34051
34052 2007-03-04  Bruno Haible  <bruno@clisp.org>
34053
34054         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
34055         REPLACE_GETTIMEOFDAY.
34056         * modules/sys_time (Makefile.am): Likewise.
34057         * m4/sys_time_h.m4: Likewise.
34058         * m4/gettimeofday.m4: Likewise.
34059
34060 2007-03-04  Bruno Haible  <bruno@clisp.org>
34061
34062         * modules/vasnprintf-posix-tests: New file.
34063         * tests/test-vasnprintf-posix.c: New file.
34064
34065         * modules/vasnprintf-posix: New file.
34066         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
34067         printf-frexpl.h.
34068         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
34069         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
34070         REPLACE_VASNPRINTF is defined.
34071         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
34072         gl_FUNC_VASNPRINTF.
34073         (gl_FUNC_VASNPRINTF): Invoke it.
34074         * m4/vasnprintf-posix.m4: New file.
34075         * m4/printf.m4: New file.
34076
34077 2007-03-04  Bruno Haible  <bruno@clisp.org>
34078
34079         Compile progreloc.c only if --enable-relocatable is specified.
34080         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
34081         if --enable-relocatable was specified.
34082         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
34083         lib_SOURCES.
34084
34085 2007-03-04  Jim Meyering  <jim@meyering.net>
34086
34087         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
34088         Use it consistently, rather than enumerating errno constants.
34089
34090 2007-03-04  Bruno Haible  <bruno@clisp.org>
34091
34092         * modules/xvasprintf-tests: New file.
34093         * tests/test-xvasprintf.c: New file.
34094
34095         * modules/vasprintf-tests: New file.
34096         * tests/test-vasprintf.c: New file.
34097
34098         * modules/vasnprintf-tests: New file.
34099         * tests/test-vasnprintf.c: New file.
34100
34101         * modules/vsnprintf-tests: New file.
34102         * tests/test-vsnprintf.c: New file.
34103
34104         * modules/snprintf-tests: New file.
34105         * tests/test-snprintf.c: New file.
34106
34107 2007-03-04  Bruno Haible  <bruno@clisp.org>
34108
34109         Compile relocatable.c only if --enable-relocatable is specified.
34110         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
34111         gl_RELOCATABLE_LIBRARY.
34112         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
34113         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
34114         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
34115         gl_RELOCATABLE_LIBRARY.
34116         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
34117         (Makefile.am): Remove lib_SOURCES.
34118         * modules/relocatable-lib-lgpl (configure.ac): Invoke
34119         gl_RELOCATABLE_LIBRARY.
34120         (Makefile.am): Remove lib_SOURCES.
34121         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
34122         always.
34123         * modules/relocatable-prog-wrapper (configure.ac): Invoke
34124         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
34125
34126 2007-03-04  Bruno Haible  <bruno@clisp.org>
34127
34128         * modules/argmatch-tests: New file.
34129         * tests/test-argmatch.c: New file.
34130
34131         * tests/test-allocsa.c (main): Halve the number of loop runs.
34132
34133         * modules/alloca-opt-tests: New file.
34134         * tests/test-alloca-opt.c: New file.
34135
34136 2007-03-04  Jim Meyering  <jim@meyering.net>
34137
34138         Work around difference between Linux ACLs and Solaris 10 ZFS.
34139         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
34140         for EINVAL.
34141
34142 2007-03-03  Bruno Haible  <bruno@clisp.org>
34143
34144         * modules/relocatable-prog (Depends-on): Add back progreloc's
34145         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
34146
34147 2007-03-03  Bruno Haible  <bruno@clisp.org>
34148
34149         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
34150         * modules/relocatable-lib: New file.
34151
34152 2007-03-03  Bruno Haible  <bruno@clisp.org>
34153
34154         * modules/relocatable-prog: Renamed from modules/relocatable.
34155         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
34156
34157 2007-03-03  Bruno Haible  <bruno@clisp.org>
34158
34159         * modules/relocatable-script (Files): Add doc/relocatable.texi,
34160         m4/relocatable-lib.m4.
34161         (Depends-on): Remove 'relocatable'.
34162         (configure.ac): Add gl_RELOCATABLE_NOP.
34163
34164 2007-03-03  Bruno Haible  <bruno@clisp.org>
34165
34166         * modules/relocatable-prog-wrapper: New file.
34167         * modules/relocatable (Depends-on): Add it. Remove all other
34168         dependencies except progname.
34169         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
34170
34171         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
34172         (gl_FUNC_STRERROR): Nop.
34173         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
34174
34175         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
34176         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
34177
34178         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
34179         (gl_FUNC_READLINK): Update.
34180
34181         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
34182
34183 2007-03-03  Bruno Haible  <bruno@clisp.org>
34184
34185         * lib/xreadlink.c: Include <unistd.h> unconditionally.
34186         * modules/xreadlink (Depends-on): Add unistd.
34187         * modules/xreadlink-with-size (Depends-on): Likewise.
34188
34189 2007-03-03  Bruno Haible  <bruno@clisp.org>
34190
34191         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
34192         extracted from gt_FUNC_SETENV.
34193         (gt_FUNC_SETENV): Remove macro.
34194         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
34195         remove gt_FUNC_SETENV.
34196
34197 2007-03-03  Bruno Haible  <bruno@clisp.org>
34198
34199         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
34200         ENABLE_RELOCATABLE here.
34201         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
34202
34203 2007-03-03  Bruno Haible  <bruno@clisp.org>
34204
34205         * modules/rbtreehash-list-tests (Depends-on): Add progname.
34206         * tests/test-rbtreehash_list.c: Include progname.h.
34207         (main): Call set_program_name.
34208
34209         * modules/rbtree-oset-tests (Depends-on): Add progname.
34210         * tests/test-rbtree_oset.c: Include progname.h.
34211         (main): Call set_program_name.
34212
34213         * modules/rbtree-list-tests (Depends-on): Add progname.
34214         * tests/test-rbtree_list.c: Include progname.h.
34215         (main): Call set_program_name.
34216
34217         * modules/linked-list-tests (Depends-on): Add progname.
34218         * tests/test-linked_list.c: Include progname.h.
34219         (main): Call set_program_name.
34220
34221 2007-03-03  Bruno Haible  <bruno@clisp.org>
34222
34223         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
34224         All uses of __restrict changed to _Restrict_.
34225         * lib/glob_.h (__restrict): Remove macro.
34226
34227 2007-03-02  Bruno Haible  <bruno@clisp.org>
34228
34229         * modules/gettext (configure.ac): Require gettext infrastructure
34230         from version 0.16.1.
34231
34232 2007-03-02  Bruno Haible  <bruno@clisp.org>
34233
34234         * modules/linkedhash-list-tests (Depends-on): Add progname.
34235         * tests/test-linkedhash_list.c: Include progname.h.
34236         (main): Call set_program_name.
34237
34238         * modules/carray-list-tests (Depends-on): Add progname.
34239         * tests/test-carray_list.c: Include progname.h.
34240         (main): Call set_program_name.
34241
34242         * modules/avltreehash-list-tests (Depends-on): Add progname.
34243         * tests/test-avltreehash_list.c: Include progname.h.
34244         (main): Call set_program_name.
34245
34246         * modules/avltree-oset-tests (Depends-on): Add progname.
34247         * tests/test-avltree_oset.c: Include progname.h.
34248         (main): Call set_program_name.
34249
34250         * modules/avltree-list-tests (Depends-on): Add progname.
34251         * tests/test-avltree_list.c: Include progname.h.
34252         (main): Call set_program_name.
34253
34254         * modules/array-oset-tests (Depends-on): Add progname.
34255         * tests/test-array_oset.c: Include progname.h.
34256         (main): Call set_program_name.
34257
34258         * modules/array-list-tests (Depends-on): Add progname.
34259         * tests/test-array_list.c: Include progname.h.
34260         (main): Call set_program_name.
34261
34262         * modules/argp-tests (Depends-on): Add progname.
34263         * tests/test-argp.c: Include argp.h first. Include progname.h.
34264         (main): Call set_program_name.
34265
34266 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
34267
34268         * doc/gnulib-tool.texi (Initial import): Reword description of
34269         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
34270         limited effect even if defined after the first system include.
34271
34272 2007-03-01  Bruno Haible  <bruno@clisp.org>
34273
34274         * build-aux/config.libpath: Update to libtool-1.5.22.
34275         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34276
34277 2007-03-01  Bruno Haible  <bruno@clisp.org>
34278
34279         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
34280         foo_CFLAGS.
34281         Reported by Ralf Wildenhues.
34282
34283 2007-03-01  Bruno Haible  <bruno@clisp.org>
34284
34285         * build-aux/install-reloc: Remove object files left over by some
34286         compilers.
34287         Reported by Ralf Wildenhues.
34288
34289 2007-03-01  Bruno Haible  <bruno@clisp.org>
34290
34291         * build-aux/install-reloc: Break long lines.
34292
34293 2007-03-01  Bruno Haible  <bruno@clisp.org>
34294
34295         * doc/relocatable.texi: Document that it may not work on OpenBSD.
34296         Reported by Ralf Wildenhues.
34297
34298 2007-03-01  Bruno Haible  <bruno@clisp.org>
34299
34300         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
34301         include ordering constraints.
34302
34303 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
34304
34305         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
34306         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
34307         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
34308         as another example.
34309         * lib/time_.h: Fix misspelling.
34310         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
34311         Require gl_HEADER_TIME_H_DEFAULTS.
34312         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
34313         * m4/time_r.m4 (gl_TIME_R): Likewise.
34314         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
34315
34316 2007-03-01  Bruno Haible  <bruno@clisp.org>
34317
34318         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
34319         * m4/utimens.m4 (gl_UTIMENS): Likewise.
34320
34321 2007-03-01  Jim Meyering  <jim@meyering.net>
34322
34323         * modules/xreadlink (Maintainer): Add my name.
34324         * modules/xreadlink-with-size (Depends-on): Alphabetize.
34325
34326 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
34327             Bruno Haible  <bruno@clisp.org>
34328
34329         * build-aux/install-reloc: Compile also c-ctype.c.
34330         * build-aux/relocatable.sh.in: New file.
34331         * doc/relocatable.texi: New file.
34332         * doc/relocatable-maint.texi: New file.
34333         * doc/gnulib.texi: Include relocatable-maint.texi.
34334         * lib/progreloc.c: Include unistd.h unconditionally.
34335         * lib/relocwrapper.c: Include unistd.h unconditionally.
34336         Include c-ctype.h.
34337         (add_dotbin): Use c_tolower.
34338         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
34339         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
34340         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
34341         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
34342         to m4/relocatable-lib.m4.
34343         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
34344         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
34345         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
34346         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
34347         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
34348         * modules/relocatable: New file.
34349         * modules/relocatable-lib: New file.
34350         * modules/relocatable-script: New file.
34351
34352 2007-02-28  Bruno Haible  <bruno@clisp.org>
34353
34354         Import --enable-relocatable infrastructure.
34355         * build-aux/config.libpath: New file, from GNU gettext.
34356         * build-aux/install-reloc: New file, from GNU gettext.
34357         * build-aux/reloc-ldflags: New file, from GNU gettext.
34358         * lib/relocatable.h: New file, from GNU gettext.
34359         * lib/relocatable.c: New file, from GNU gettext.
34360         * lib/relocwrapper.c: New file, from GNU gettext.
34361         * m4/relocatable.m4: New file, from GNU gettext.
34362
34363 2007-02-28  Bruno Haible  <bruno@clisp.org>
34364
34365         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
34366
34367         * modules/xreadlink: New file, from GNU gettext with modifications.
34368         * lib/xreadlink.c: New file, from GNU gettext.
34369         * lib/xreadlink.h: Add comments.
34370         (xreadlink): New declaration.
34371
34372         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
34373         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
34374         lib/xreadlink-with-size.c.
34375         (configure.ac): Remove gl_XREADLINK invocation.
34376         (Makefile.am): Augment lib_SOURCES.
34377         * m4/xreadlink.m4: Remove file.
34378         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
34379         (xreadlink_with_size): Renamed from xreadink.
34380         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
34381         * modules/canonicalize (Depends-on): Replace xreadlink with
34382         xreadlink-with-size.
34383         * lib/canonicalize.c (canonicalize_filename_mode): Update.
34384
34385 2007-02-25  Jim Meyering  <jim@meyering.net>
34386
34387         * build-aux/announce-gen: When complaining about excess arguments,
34388         list them.
34389
34390 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
34391
34392         * README: Document signed integer overflow situation more
34393         accurately.
34394
34395 2007-02-25  Bruno Haible  <bruno@clisp.org>
34396
34397         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
34398         'a' or 'A' conversion.
34399
34400 2007-02-25  Bruno Haible  <bruno@clisp.org>
34401
34402         * modules/filename: Renamed from modules/pathname.
34403         (Files): Replace lib/pathname.h with lib/filename.h. Replace
34404         lib/concatpath.c with lib/concat-filename.c.
34405         (Makefile.am): Update.
34406         (Include): Replace pathname.h with filename.h.
34407         * lib/filename.h: Renamed from lib/pathname.h.
34408         (concatenated_filename): Renamed from concatenated_pathname.
34409         * lib/concat-filename.c: Renamed from lib/concatpath.c.
34410         (concatenated_filename): Renamed from concatenated_pathname.
34411         * lib/findprog.c: Include filename.h instead of pathname.h.
34412         (find_in_path): Update.
34413         * lib/javacomp.c: Include filename.h instead of pathname.h.
34414         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
34415         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
34416         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
34417         is_oldgcj_14_13_usable, is_javac_usable): Update.
34418         * lib/javaexec.c: Include filename.h instead of pathname.h.
34419         (execute_java_class): Update.
34420         * modules/findprog: Update.
34421         * modules/javacomp: Update.
34422         * modules/javaexec: Update.
34423         * MODULES.html.sh (File system functions): Add 'filename', remove
34424         'pathname'.
34425
34426 2007-02-25  Bruno Haible  <bruno@clisp.org>
34427
34428         * modules/printf-frexpl-tests: New file.
34429         * tests/test-printf-frexpl.c: New file.
34430
34431         * modules/printf-frexpl: New file.
34432         * lib/printf-frexpl.h: New file.
34433         * lib/printf-frexpl.c: New file.
34434         * m4/printf-frexpl.m4: New file.
34435
34436 2007-02-25  Bruno Haible  <bruno@clisp.org>
34437
34438         * modules/printf-frexp-tests: New file.
34439         * tests/test-printf-frexp.c: New file.
34440
34441         * modules/printf-frexp: New file.
34442         * lib/printf-frexp.h: New file.
34443         * lib/printf-frexp.c: New file.
34444         * m4/printf-frexp.m4: New file.
34445
34446 2007-02-25  Bruno Haible  <bruno@clisp.org>
34447
34448         Assume automake >= 1.10 for the tests.
34449         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
34450         * modules/arctwo-tests: Likewise.
34451         * modules/argp-tests: Likewise.
34452         * modules/avltree-list-tests: Likewise.
34453         * modules/avltree-oset-tests: Likewise.
34454         * modules/avltreehash-list-tests: Likewise.
34455         * modules/carray-list-tests: Likewise.
34456         * modules/crc-tests: Likewise.
34457         * modules/des-tests: Likewise.
34458         * modules/gc-arcfour-tests: Likewise.
34459         * modules/gc-arctwo-tests: Likewise.
34460         * modules/gc-des-tests: Likewise.
34461         * modules/gc-hmac-md5-tests: Likewise.
34462         * modules/gc-hmac-sha1-tests: Likewise.
34463         * modules/gc-md2-tests: Likewise.
34464         * modules/gc-md4-tests: Likewise.
34465         * modules/gc-md5-tests: Likewise.
34466         * modules/gc-pbkdf2-sha1-tests: Likewise.
34467         * modules/gc-rijndael-tests: Likewise.
34468         * modules/gc-sha1-tests: Likewise.
34469         * modules/gc-tests: Likewise.
34470         * modules/getaddrinfo-tests: Likewise.
34471         * modules/hmac-md5-tests: Likewise.
34472         * modules/hmac-sha1-tests: Likewise.
34473         * modules/linked-list-tests: Likewise.
34474         * modules/linkedhash-list-tests: Likewise.
34475         * modules/lock-tests: Likewise.
34476         * modules/md2-tests: Likewise.
34477         * modules/md4-tests: Likewise.
34478         * modules/md5-tests: Likewise.
34479         * modules/rbtree-list-tests: Likewise.
34480         * modules/rbtree-oset-tests: Likewise.
34481         * modules/rbtreehash-list-tests: Likewise.
34482         * modules/read-file-tests: Likewise.
34483         * modules/rijndael-tests: Likewise.
34484         * modules/stdint-tests: Likewise.
34485         * modules/tls-tests: Likewise.
34486
34487 2007-02-24  Bruno Haible  <bruno@clisp.org>
34488
34489         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
34490         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
34491         function; instead check whether isnan with a double argument links.
34492         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
34493         function; instead check whether isnan with a 'long double' argument
34494         links.
34495         Reported by Eric Blake <ebb9@byu.net>.
34496
34497 2007-02-24  Bruno Haible  <bruno@clisp.org>
34498
34499         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
34500         defined.
34501         * lib/isnanl.c: Remove all code. Just include isnan.c.
34502         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
34503
34504 2007-02-25  Jim Meyering  <jim@meyering.net>
34505
34506         Avoid conflicting types for 'unsetenv' on FreeBSD.
34507         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
34508         conflicting with FreeBSD's (5.0 and 6.1) function declaration
34509         in stdlib.h.
34510
34511 2007-02-24  Bruno Haible  <bruno@clisp.org>
34512
34513         * modules/isnanl-nolibm-tests: New file.
34514         * tests/test-isnanl.c: New file.
34515
34516         * modules/isnanl-nolibm: New file.
34517         * lib/isnanl.h: New file.
34518         * lib/isnanl.c: New file.
34519         * m4/isnanl.m4: New file.
34520
34521 2007-02-24  Bruno Haible  <bruno@clisp.org>
34522
34523         * modules/isnan-nolibm-tests: New file.
34524         * tests/test-isnan.c: New file.
34525
34526         * modules/isnan-nolibm: New file.
34527         * lib/isnan.h: New file.
34528         * lib/isnan.c: New file.
34529         * m4/isnan.m4: New file.
34530
34531 2007-02-24  Bruno Haible  <bruno@clisp.org>
34532
34533         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
34534         assume that an exponent fits in 20 bits.
34535
34536 2007-02-24  Jim Meyering  <jim@meyering.net>
34537
34538         * m4/regex.m4: Update the description of the configure-time option,
34539         --without-included-regex, to state accurately what the defaults are,
34540         and perhaps to give people an idea why using this option is risky.
34541
34542 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
34543
34544         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
34545         loops on small arguments.  This attempts to avoid the problem
34546         Bruno Haible reported for AIX 4.3.2 in
34547         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
34548
34549 2007-02-23  Bruno Haible  <bruno@clisp.org>
34550
34551         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
34552         Needed for help2man.
34553
34554 2007-02-23  Karl Berry  <karl@gnu.org>
34555
34556         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
34557         exists, foo.h should be cvs-ignored, not committed.
34558
34559 2007-02-23  Eric Blake  <ebb9@byu.net>
34560
34561         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
34562         * lib/stat-time.h (includes): Likewise.
34563         * lib/utimecmp.c (includes): Likewise.
34564         * lib/utimens.h (includes): Likewise.
34565         * lib/getdate.y (includes): Also include "timespec.h" for use
34566         internal to the module.
34567         * modules/utimens (Depends-on): Revert yesterday's patch.
34568         * modules/nanosleep (Depends-on): Add missing dependency.
34569
34570 2007-02-22  Bruno Haible  <bruno@clisp.org>
34571
34572         * lib/glob.c: Don't include getlogin_r.h.
34573
34574 2007-02-22  Jim Meyering  <jim@meyering.net>
34575
34576         * modules/utimens (Depends-on): Add timespec, required for
34577         utimens.h's inclusion of timespec.h.
34578
34579 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
34580
34581         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
34582         long unreadable paths in GNU/Linux.  Problem reported by Andreas
34583         Schwab in
34584         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
34585         I'll try to think of a better way to fix the Solaris problem.
34586
34587         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
34588         like glibc; on Solaris 10, it fails with errno == EINVAL.
34589         POSIX says the behavior is unspecified if the first argument is NULL,
34590         so play it safe and never pass NULL to the system getcwd.
34591
34592 2007-02-21  Jim Meyering  <jim@meyering.net>
34593
34594         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
34595         of gettimeofday.  It would conflict with the one now always
34596         provided via sys_time_.h.  Reported by Matthew Woehlke, as
34597         an IRIX 6.5 build failure.
34598
34599 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
34600
34601         Minor fixups to port to Solaris 10 with Sun C 5.8.
34602         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
34603         * modules/getcwd (Depends-on): Add dirfd.
34604         * lib/putenv.c (putenv): #undef it.
34605         (rpl_putenv): New decl.
34606         (malloc, free): Include <stdlib.h> rather than prototyping separately.
34607
34608 2007-02-20  Bruno Haible  <bruno@clisp.org>
34609
34610         * modules/stdio-tests: New file.
34611         * tests/test-stdio.c: New file.
34612
34613         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
34614         (Depends-on): Add stdio.
34615         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34616         (Include): Use <stdio.h> instead of vsnprintf.h.
34617         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
34618         HAVE_DECL_VSNPRINTF.
34619         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
34620
34621         * modules/snprintf (Files): Remove lib/snprintf.h.
34622         (Depends-on): Add stdio.
34623         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34624         (Include): Use <stdio.h> instead of snprintf.h.
34625         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
34626         HAVE_DECL_SNPRINTF.
34627         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
34628         * lib/getaddrinfo.c: Likewise.
34629
34630         * modules/stdio: New file.
34631         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
34632         * lib/snprintf.h: Remove file.
34633         * lib/vsnprintf.h: Remove file.
34634         * lib/.cppi-disable: Remove snprintf.h.
34635         * m4/stdio_h.m4: New file.
34636         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
34637
34638 2007-02-20  Jim Meyering  <jim@meyering.net>
34639
34640         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
34641         used by e.g., mingw.  From Bruno Haible.
34642
34643 2007-02-19  Bruno Haible  <bruno@clisp.org>
34644
34645         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
34646         warnings.
34647         Reported by Ben Pfaff <blp@cs.stanford.edu>.
34648
34649 2007-02-19  Bruno Haible  <bruno@clisp.org>
34650
34651         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
34652         from mingw users.
34653
34654 2007-02-19  Bruno Haible  <bruno@clisp.org>
34655
34656         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
34657         warnings.
34658         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
34659
34660 2007-02-19  Jim Meyering  <jim@meyering.net>
34661
34662         Don't use FD after a successful "fdopendir (fd)".
34663         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
34664         Reset it by calling dirfd on the just-obtained DIR*.
34665
34666         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
34667         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
34668
34669 2007-02-18  Bruno Haible  <bruno@clisp.org>
34670
34671         * lib/readlink.c: Include <unistd.h>.
34672         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
34673         HAVE_READLINK.
34674         * modules/readlink (Depends-on): Add unistd.
34675         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34676         (Include): Add <unistd.h>.
34677
34678         * lib/getlogin_r.h: Remove file.
34679         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
34680         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
34681         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
34682         HAVE_DECL_GETLOGIN_R.
34683         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
34684         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34685         (Include): Use <unistd.h> instead of getlogin_r.h.
34686
34687         * lib/getcwd.h: Remove file.
34688         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
34689         * lib/xgetcwd.c: Likewise.
34690         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
34691         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
34692         * modules/getcwd (Files): Remove lib/getcwd.h.
34693         (Depends-on): Add unistd.
34694         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34695         (Include): Use <unistd.h> instad of getcwd.h.
34696
34697         * lib/ftruncate.c: Include <unistd.h> first.
34698         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
34699         Set HAVE_FTRUNCATE.
34700         * modules/ftruncate (Depends-on): Add unistd.
34701         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34702
34703         * lib/fchdir.c: Include <unistd.h> first.
34704         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
34705         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
34706         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
34707         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34708         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
34709
34710         * lib/dup2.c: Include <unistd.h> first.
34711         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
34712         HAVE_DUP2.
34713         * modules/dup2 (Depends-on): Add unistd.
34714         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34715
34716         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
34717         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
34718         REPLACE_CHOWN. Don't define chown as a macro here.
34719         * modules/chown (Depends-on): Add unistd.
34720         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34721
34722         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
34723         Add definition for GL_LINK_WARNING.
34724         (chown, dup2): New declarations.
34725         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
34726         link warning.
34727         (ftruncate): New declaration.
34728         (getcwd): New declaration, taken from old getcwd.h.
34729         (getlogin_r): New declaration, taken from old getlogin_r.h.
34730         (readlink): New declaration.
34731         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
34732         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
34733         (gl_PREREQ_UNISTD): Remove macro.
34734         (gl_UNISTD_MODULE_INDICATOR): New macro.
34735         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
34736         many new variables. Don't set UNISTD_H.
34737         * modules/unistd (Description): Change.
34738         (Depends-on): Add link-warning.
34739         (configure.ac): Update.
34740         (Makefile.am): Create unistd.h always. Substitute many new variables
34741         into it.
34742
34743 2007-02-18  Bruno Haible  <bruno@clisp.org>
34744
34745         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
34746         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
34747         HAVE_GETSUBOPT.
34748         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
34749         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
34750         * lib/getsubopt.h: Remove file.
34751         * modules/getsubopt (Files): Remove lib/getsubopt.h.
34752         (Depends-on): Add stdlib.
34753         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34754         (Includes): Use <stdlib.h> instead of getsubopt.h.
34755         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
34756         Set HAVE_GETSUBOPT.
34757         * lib/getsubopt.c: Don't include getsubopt.h.
34758
34759 2007-02-18  Bruno Haible  <bruno@clisp.org>
34760
34761         * modules/fchdir (Depends-on): Add dup2.
34762
34763 2007-02-18  Bruno Haible  <bruno@clisp.org>
34764
34765         * lib/stdlib_.h: Handle glibc's special invocation convention
34766         specially.
34767
34768 2007-02-18  Bruno Haible  <bruno@clisp.org>
34769
34770         * modules/stdlib-tests: New file.
34771         * tests/test-stdlib.c: New file.
34772
34773         * modules/mkstemp (Files): Remove lib/mkstemp.h.
34774         (Depends-on): Add stdlib.
34775         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34776         (Includes): Use <stdlib.h> instead of mkstemp.h.
34777         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
34778         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
34779         * lib/mkstemp.c: Don't include mkstemp.h.
34780         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
34781         * lib/stdlib--.h: Don't include mkstemp.h.
34782
34783         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
34784         (Depends-on): Add stdlib.
34785         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34786         (Includes): Use <stdlib.h> instead of mkdtemp.h.
34787         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
34788         HAVE_MKDTEMP.
34789         * lib/mkdtemp.c: Don't include mkdtemp.h.
34790         * lib/clean-temp.c: Don't include mkdtemp.h.
34791
34792         * modules/exit (Files): Remove lib/exit.h.
34793         (Depends-on): Add stdlib.
34794         (Makefile.am): Remove lib_SOURCES.
34795         (Include): Use <stdlib.h> instead of exit.h.
34796         * lib/argmatch.c: Don't include exit.h.
34797         * lib/execute.c: Likewise.
34798         * lib/pagealign_alloc.c: Likewise.
34799         * lib/pipe.c: Likewise.
34800         * lib/wait-process.c: Likewise.
34801         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
34802         * lib/exitfail.c: Likewise.
34803         * lib/savewd.c: Likewise.
34804         * lib/xsetenv.c: Likewise.
34805
34806         * modules/stdlib: New file.
34807         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
34808         and extra comments about mkstemp().
34809         * lib/exit.h: Remove file.
34810         * lib/mkdtemp.h: Remove file.
34811         * lib/mkstemp.h: Remove file.
34812         * m4/stdlib_h.m4: New file.
34813         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
34814
34815 2007-02-18  Bruno Haible  <bruno@clisp.org>
34816
34817         * modules/math-tests: New file.
34818         * tests/test-math.c: New file.
34819
34820         * modules/math: New file.
34821         * modules/mathl (Files): Remove lib/mathl.h.
34822         (Depends-on): Add math.
34823         (Makefile.am): Don't mention mathl.h.
34824         (Include): Use <math.h> instead of mathl.h.
34825         * lib/math_.h: New file.
34826         * lib/mathl.h: Remove file.
34827         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
34828         mathl.h.
34829         * lib/asinl.c: Likewise.
34830         * lib/atanl.c: Likewise.
34831         * lib/ceill.c: Likewise.
34832         * lib/cosl.c: Likewise.
34833         * lib/expl.c: Likewise.
34834         * lib/floorl.c: Likewise.
34835         * lib/frexpl.c: Likewise.
34836         * lib/ldexpl.c: Likewise.
34837         * lib/logl.c: Likewise.
34838         * lib/sincosl.c: Likewise.
34839         * lib/sinl.c: Likewise.
34840         * lib/sqrtl.c: Likewise.
34841         * lib/tanl.c: Likewise.
34842         * lib/trigl.c: Likewise.
34843         * m4/math_h.m4: New file.
34844         * MODULES.html.sh (Mathematics): Add math.
34845
34846 2007-02-17  Bruno Haible  <bruno@clisp.org>
34847
34848         * modules/wctype-tests: New file.
34849         * tests/test-wctype.c: New file.
34850
34851         * modules/wchar-tests: New file.
34852         * tests/test-wchar.c: New file.
34853
34854         * modules/unistd-tests: New file.
34855         * tests/test-unistd.c: New file.
34856
34857         * modules/time-tests: New file.
34858         * tests/test-time.c: New file.
34859
34860         * modules/sysexits-tests: New file.
34861         * tests/test-sysexits.c: New file.
34862
34863         * modules/sys_time-tests: New file.
34864         * tests/test-sys_time.c: New file.
34865
34866         * modules/sys_stat-tests: New file.
34867         * tests/test-sys_stat.c: New file.
34868
34869         * modules/sys_socket-tests: New file.
34870         * tests/test-sys_socket.c: New file.
34871
34872         * modules/sys_select-tests: New file.
34873         * tests/test-sys_select.c: New file.
34874
34875         * modules/string-tests: New file.
34876         * tests/test-string.c: New file.
34877
34878         * modules/stdbool-tests: New file.
34879         * tests/test-stdbool.c: New file.
34880
34881         * modules/netinet_in-tests: New file.
34882         * tests/test-netinet_in.c: New file.
34883
34884         * modules/inttypes-tests: New file.
34885         * tests/test-inttypes.c: New file.
34886
34887         * modules/fcntl-tests: New file.
34888         * tests/test-fcntl.c: New file.
34889
34890         * modules/byteswap-tests: New file.
34891         * tests/test-byteswap.c: New file.
34892
34893         * modules/arpa_inet-tests: New file.
34894         * tests/test-arpa_inet.c: New file.
34895
34896 2007-02-17  Bruno Haible  <bruno@clisp.org>
34897
34898         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
34899         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
34900         if the corresponding module is not enabled. Emit link warnings if
34901         the function is used nevertheless.
34902         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
34903         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
34904         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
34905         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
34906         * modules/inttypes (Depends-on): Add link-warning.
34907         (Makefile.am): Copy the contents of build-aux/link-warning.h into
34908         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
34909         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
34910         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
34911         * modules/imaxdiv (configure.ac): Likewise.
34912         * modules/strtoimax (configure.ac): Likewise.
34913         * modules/strtoumax (configure.ac): Likewise.
34914
34915 2007-02-17  Bruno Haible  <bruno@clisp.org>
34916
34917         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
34918         gl_STRING_MODULE_INDICATOR_DEFAULTS.
34919         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
34920         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
34921
34922 2007-02-17  Bruno Haible  <bruno@clisp.org>
34923
34924         * modules/link-warning: New file.
34925         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
34926         * lib/string_.h (GL_LINK_WARNING): Remove definition.
34927         * modules/string (Depends-on): Add link-warning.
34928         (Makefile.am): Copy the contents of build-aux/link-warning.h into
34929         string.h.
34930         * MODULES.html.sh (Support for building libraries and executables): Add
34931         link-warning.
34932
34933 2007-02-17  Bruno Haible  <bruno@clisp.org>
34934
34935         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
34936         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
34937         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
34938         long lines.
34939
34940 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
34941             Bruno Haible  <bruno@clisp.org>
34942
34943         * modules/tmpfile: New file.
34944         * lib/tmpfile.c: New file.
34945         * m4/tmpfile.m4: New file.
34946         * MODULES.html.sh (func_all_modules): New section "Input/output".
34947
34948 2007-02-15  Bruno Haible  <bruno@clisp.org>
34949
34950         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
34951         (supports_delete_on_close): New function.
34952         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
34953
34954 2007-02-14  Bruno Haible  <bruno@clisp.org>
34955
34956         * modules/mbspcasecmp-tests: New file.
34957         * tests/test-mbspcasecmp.sh: New file.
34958         * tests/test-mbspcasecmp.c: New file.
34959
34960         New module mbspcasecmp.
34961         * modules/mbspcasecmp: New file.
34962         * lib/mbspcasecmp.c: New file.
34963         * lib/string_.h (strncasecmp): Change warning message.
34964         (mbspcasecmp): New declaration.
34965         * m4/mbspcasecmp.m4: New file.
34966         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34967         GNULIB_MBSPCASECMP.
34968         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
34969         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
34970
34971 2007-02-14  Bruno Haible  <bruno@clisp.org>
34972
34973         * modules/mbsncasecmp-tests: New file.
34974         * tests/test-mbsncasecmp.sh: New file.
34975         * tests/test-mbsncasecmp.c: New file.
34976
34977         New module mbsncasecmp.
34978         * modules/mbsncasecmp: New file.
34979         * lib/mbsncasecmp.c: New file.
34980         * lib/string_.h (mbsncasecmp): New declaration.
34981         * m4/mbsncasecmp.m4: New file.
34982         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34983         GNULIB_MBSNCASECMP.
34984         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
34985         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
34986
34987 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
34988
34989         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
34990         Verify that it doesn't overlap with our flags.
34991         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
34992         do not have the desired effect in multibyte locales; instead, use
34993         mbscasecmp.
34994         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
34995         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
34996         we don't require GNU fnmatch ourselves (if our users require it, they
34997         should do so explicitly).
34998
34999         Fix regex code so it doesn't rely on strcasecmp.
35000         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
35001         Otherwise, include gnulib's langinfo.h.
35002         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
35003         undesirable behavior in non-C locales.  Instead, rely on localecharset.
35004         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
35005         * modules/regex (FILES): Remove m4/codeset.m4.
35006         (Depends-on): Add localcharset.  Remove strcase.
35007
35008 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35009
35010         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
35011         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
35012
35013 2007-02-13  Bruno Haible  <bruno@clisp.org>
35014
35015         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
35016         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35017
35018 2007-02-12  Bruno Haible  <bruno@clisp.org>
35019
35020         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
35021         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
35022         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
35023         time warning rather than a link error.
35024
35025 2007-02-12  Bruno Haible  <bruno@clisp.org>
35026
35027         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
35028         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
35029         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35030
35031 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
35032
35033         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
35034         args, not 2.
35035
35036 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
35037
35038         New module 'time', so that apps can include <time.h> as per
35039         POSIX and GNU instead of separate include files like time_r.h
35040         and timegm.h.  This implementation tries out a simpler approach
35041         for replacing decls in standard include files (as compared to
35042         the string module), somewhat as an experiment.
35043
35044         * config/srclist.txt: Comment out mktime.c for now.
35045         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
35046         since it doesn't apply any more.  Use generic wording instead.
35047         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
35048         'time'.
35049         * lib/time_.h, m4/time_h.m4, modules/time: New files.
35050         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
35051         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
35052         Don't include <sys/types.h>; no longer needed since we assume C89.
35053         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
35054         * lib/strftime.c: Likewise.
35055         * lib/time_r.c: Likewise.
35056         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
35057         * lib/nanosleep.c: Include <time.h> first, to check interface.
35058         * lib/strptime.c: Likewise.
35059         * lib/time_r.c: Likewise.
35060         * lib/timegm.c: Likewise.
35061         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
35062         needed.
35063         * lib/timegm.c: Don't include timegm.h; no longer needed.
35064         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
35065         time.h now handles any problems in that area.
35066         (struct timespec, nanosleep): Remove; time.h now arranges for these.
35067         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
35068         that time.h defines struct timespec.
35069         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
35070         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
35071         handles that.
35072         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
35073         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
35074         needed.  Set REPLACE_LOCALTIME.
35075         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
35076         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
35077         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
35078         nanosleep; time_h.m4 now does that.  Don't require
35079         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
35080         module handles this now.
35081         * modules/getdate (Depends-on): Remove timespec.  Add time.
35082         * modules/nanosleep (Depends-on): Likewise.
35083         * modules/stat-time (Depends-on): Likewise.
35084         * modules/nanosleep (Include): Include time.h, not timespec.h.
35085         * modules/strptime (Files): Remove lib/strptime.h.
35086         (Depends-on): Add extensions, time.
35087         (Include): Include time.h, not strptime.h.
35088         * modules/time_r (Files): Remove lib/time_r.h.
35089         (Depends-on): Add time.
35090         (Include): Include time.h, not time_r.h.
35091         * modules/timegm: Likewise.
35092         * modules/timespec (Description): Now does timespec-related decls
35093         of our own, instead of struct timespec itself.
35094         (Depends-on): Add time; remove extensions.
35095         (Maintainer): Add self.
35096         * modules/utimecmp (Depends-on): Add time; remove timespec.
35097         * modules/utimens (Depends-on): Likewise.
35098         * modules/xnanosleep (Depends-on): Likewise.
35099
35100 2007-02-11  Bruno Haible  <bruno@clisp.org>
35101
35102         * lib/c-strstr.c: Include allocsa.h.
35103         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
35104         * lib/c-strcasestr.c: Include allocsa.h.
35105         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
35106         * lib/strcasestr.c: Include allocsa.h.
35107         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
35108         * lib/mbsstr.c: Include allocsa.h.
35109         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
35110         allocsa/freesa instead of malloc/free.
35111         * lib/mbscasestr.c: Include allocsa.h.
35112         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
35113         allocsa/freesa instead of malloc/free.
35114         * modules/c-strstr (Depends-on): Add allocsa.
35115         * modules/c-strcasestr (Depends-on): Likewise.
35116         * modules/strcasestr (Depends-on): Likewise.
35117         * modules/mbsstr (Depends-on): Likewise.
35118         * modules/mbscasestr (Depends-on): Likewise.
35119
35120 2007-02-11  Bruno Haible  <bruno@clisp.org>
35121
35122         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
35123
35124         * modules/mbsspn-tests: New file.
35125         * tests/test-mbsspn.sh: New file.
35126         * tests/test-mbsspn.c: New file.
35127
35128 2007-02-11  Bruno Haible  <bruno@clisp.org>
35129
35130         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
35131
35132         * modules/mbspbrk-tests: New file.
35133         * tests/test-mbspbrk.sh: New file.
35134         * tests/test-mbspbrk.c: New file.
35135
35136 2007-02-11  Bruno Haible  <bruno@clisp.org>
35137
35138         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
35139         unneeded cast.
35140
35141         * modules/mbscspn-tests: New file.
35142         * tests/test-mbscspn.sh: New file.
35143         * tests/test-mbscspn.c: New file.
35144
35145 2007-02-11  Bruno Haible  <bruno@clisp.org>
35146
35147         * modules/mbscasecmp-tests: New file.
35148         * tests/test-mbscasecmp.sh: New file.
35149         * tests/test-mbscasecmp.c: New file.
35150
35151 2007-02-11  Bruno Haible  <bruno@clisp.org>
35152
35153         Ensure O(n) worst-case complexity of mbscasestr.
35154         * lib/mbscasestr.c: Include stdbool.h.
35155         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
35156         functions.
35157         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
35158         the bookkeeping indicates that it's worth it.
35159         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
35160
35161         * modules/mbscasestr-tests: New file.
35162         * tests/test-mbscasestr1.c: New file.
35163         * tests/test-mbscasestr2.sh: New file.
35164         * tests/test-mbscasestr2.c: New file.
35165         * tests/test-mbscasestr3.sh: New file.
35166         * tests/test-mbscasestr3.c: New file.
35167         * tests/test-mbscasestr4.sh: New file.
35168         * tests/test-mbscasestr4.c: New file.
35169         * m4/locale-tr.m4: New file.
35170
35171 2007-02-11  Bruno Haible  <bruno@clisp.org>
35172
35173         Ensure O(n) worst-case complexity of mbsstr.
35174         * lib/mbsstr.c: Include stdbool.h.
35175         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
35176         functions.
35177         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
35178         bookkeeping indicates that it's worth it.
35179         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
35180
35181         * modules/mbsstr-tests: New file.
35182         * tests/test-mbsstr1.c: New file.
35183         * tests/test-mbsstr2.sh: New file.
35184         * tests/test-mbsstr2.c: New file.
35185         * tests/test-mbsstr3.sh: New file.
35186         * tests/test-mbsstr3.c: New file.
35187         * m4/locale-fr.m4: New file.
35188
35189 2007-02-11  Bruno Haible  <bruno@clisp.org>
35190
35191         * lib/mbsrchr.c (mbsrchr): Fix bug.
35192
35193         * modules/mbsrchr-tests: New file.
35194         * tests/test-mbsrchr.sh: New file.
35195         * tests/test-mbsrchr.c: New file.
35196
35197 2007-02-11  Bruno Haible  <bruno@clisp.org>
35198
35199         * lib/mbschr.c (mbschr): Fix bug.
35200
35201         * modules/mbschr-tests: New file.
35202         * tests/test-mbschr.sh: New file.
35203         * tests/test-mbschr.c: New file.
35204         * m4/locale-zh.m4: New file.
35205
35206 2007-02-11  Bruno Haible  <bruno@clisp.org>
35207
35208         Support for copying multibyte string iterators.
35209         * lib/mbiter.h: Include <string.h>.
35210         (mbiter_multi_copy): New function.
35211         (mbi_copy): New macro.
35212         * lib/mbuiter.h: Include <string.h>.
35213         (mbuiter_multi_copy): New function.
35214         (mbui_copy): New macro.
35215
35216 2007-02-11  Bruno Haible  <bruno@clisp.org>
35217
35218         New module mbslen.
35219         * modules/mbslen: New file.
35220         * lib/mbslen.c: New file.
35221         * lib/string_.h (mbslen): New declaration.
35222         * m4/mbslen.m4: New file.
35223         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35224         GNULIB_MBSLEN.
35225         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
35226         * MODULES.html.sh (Internationalization functions): Add mbslen.
35227
35228 2007-02-11  Bruno Haible  <bruno@clisp.org>
35229
35230         Ensure O(n) worst-case complexity of strcasestr substitute.
35231         * lib/strcasestr.c: Include stdbool.h.
35232         (knuth_morris_pratt): New function.
35233         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
35234         bookkeeping indicates that it's worth it.
35235         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
35236
35237         * modules/strcasestr-tests: New file.
35238         * tests/test-strcasestr.c: New file.
35239
35240 2007-02-11  Bruno Haible  <bruno@clisp.org>
35241
35242         Ensure O(n) worst-case complexity of c_strcasestr.
35243         * lib/c-strcasestr.c: Include stdbool.h, string.h.
35244         (knuth_morris_pratt): New function.
35245         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
35246         the bookkeeping indicates that it's worth it.
35247         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
35248
35249         * modules/c-strcasestr-tests: New file.
35250         * tests/test-c-strcasestr.c: New file.
35251
35252 2007-02-11  Bruno Haible  <bruno@clisp.org>
35253
35254         Ensure O(n) worst-case complexity of c_strstr.
35255         * lib/c-strstr.c: Include stdbool.h, string.h.
35256         (knuth_morris_pratt): New function.
35257         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
35258         bookkeeping indicates that it's worth it.
35259         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
35260
35261         * lib/c-strstr.c: Complete rewrite for maintainability.
35262
35263         * modules/c-strstr-tests: New file.
35264         * tests/test-c-strstr.c: New file.
35265
35266 2007-02-11  Bruno Haible  <bruno@clisp.org>
35267
35268         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
35269         5.2.1 and earlier, whereby \055 was treated just like the range
35270         delimiter '-'.
35271         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
35272
35273 2007-02-08  Bruno Haible  <bruno@clisp.org>
35274
35275         * modules/regex (Depends-on): Add stdbool.
35276         Reported by Dalibor Topic <robilad@kaffe.org>.
35277
35278 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
35279
35280         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
35281         Prefer returning from main to exiting from it.
35282         Remove unnecessary parens after sizeof.
35283
35284 2007-02-05  Bruno Haible  <bruno@clisp.org>
35285
35286         New module mbssep.
35287         * modules/mbssep: New file.
35288         * lib/mbssep.c: New file.
35289         * lib/string_.h (strsep): Add a conditional link warning.
35290         (mbssep): New declaration.
35291         * m4/mbssep.m4: New file.
35292         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35293         GNULIB_MBSSEP.
35294         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
35295         * MODULES.html.sh (Internationalization functions): Add mbssep.
35296
35297 2007-02-05  Bruno Haible  <bruno@clisp.org>
35298
35299         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
35300         Optimize search in case of 1 delimiter.
35301
35302 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
35303
35304         * lib/acl.h: Include sys/types.h before sys/acl.h.
35305
35306 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
35307
35308         Merge upstream fix for glibc bugzilla #3957:
35309
35310         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
35311
35312         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
35313         bit for RE_HAT_LISTS_NOT_NEWLINE.
35314         (build_charclass_op): Remove bogus comment.
35315
35316 2007-02-05  Simon Josefsson  <simon@josefsson.org>
35317
35318         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
35319
35320 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
35321
35322         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
35323         * lib/memmem.c [!defined _LIBC]: Include config.h.
35324
35325 2007-02-04  Bruno Haible  <bruno@clisp.org>
35326
35327         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
35328         warning message.
35329
35330 2007-02-04  Bruno Haible  <bruno@clisp.org>
35331
35332         New module mbstok_r.
35333         * modules/mbstok_r: New file.
35334         * lib/mbstok_r.c: New file.
35335         * lib/string_.h (strtok_r): Change argument names to match the
35336         comments. Add a conditional link warning.
35337         (mbstok_r): New declaration.
35338         * m4/mbstok_r.m4: New file.
35339         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35340         GNULIB_MBSTOK_R.
35341         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
35342         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
35343
35344 2007-02-04  Bruno Haible  <bruno@clisp.org>
35345
35346         New module mbsspn.
35347         * modules/mbsspn: New file.
35348         * lib/mbsspn.c: New file.
35349         * lib/string_.h (strspn): Add a conditional link warning.
35350         (mbsspn): New declaration.
35351         * m4/mbsspn.m4: New file.
35352         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35353         GNULIB_MBSSPN.
35354         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
35355         * MODULES.html.sh (Internationalization functions): Add mbsspn.
35356
35357 2007-02-04  Bruno Haible  <bruno@clisp.org>
35358
35359         New module mbspbrk.
35360         * modules/mbspbrk: New file.
35361         * lib/mbspbrk.c: New file.
35362         * lib/string_.h (strpbrk): Add a conditional link warning.
35363         (mbspbrk): New declaration.
35364         * m4/mbspbrk.m4: New file.
35365         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35366         GNULIB_MBSPBRK.
35367         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
35368         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
35369
35370 2007-02-04  Bruno Haible  <bruno@clisp.org>
35371
35372         New module mbscspn.
35373         * modules/mbscspn: New file.
35374         * lib/mbscspn.c: New file.
35375         * lib/string_.h (strcspn): Add a conditional link warning.
35376         (mbscspn): New declaration.
35377         * m4/mbscspn.m4: New file.
35378         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35379         GNULIB_MBSCSPN.
35380         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
35381         * MODULES.html.sh (Internationalization functions): Add mbscspn.
35382
35383 2007-02-04  Bruno Haible  <bruno@clisp.org>
35384
35385         New module mbscasestr, reduced goal of strcasestr.
35386         * modules/mbscasestr: New file.
35387         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
35388         (mbscasestr): Renamed from strcasestr.
35389         * lib/strcasestr.c: Don't include mbuiter.h.
35390         (strcasestr): Remove support for multibyte locales.
35391         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
35392         Change the conditional link warning.
35393         (mbscasestr): New declaration.
35394         * m4/mbscasestr.m4: New file.
35395         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
35396         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
35397         REPLACE_STRCASESTR.
35398         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
35399         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35400         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
35401         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
35402         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
35403         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
35404         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
35405         (Depends-on): Remove mbuiter.
35406         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
35407
35408 2007-02-04  Bruno Haible  <bruno@clisp.org>
35409
35410         Simplify handling of strncasecmp.
35411         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
35412         the conditional link warning.
35413         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35414         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
35415         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
35416         * modules/strcase (configure.ac): Don't invoke
35417         gl_STRING_MODULE_INDICATOR.
35418         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
35419
35420 2007-02-04  Bruno Haible  <bruno@clisp.org>
35421
35422         New module mbscasecmp, reduced goal of strcasecmp.
35423         * modules/mbscasecmp: New file.
35424         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
35425         (mbscasecmp): Renamed from strcasecmp.
35426         * lib/strcasecmp.c: Don't include mbuiter.h.
35427         (strcasecmp): Remove support for multibyte locales.
35428         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
35429         Change the conditional link warning.
35430         (mbscasecmp): New declaration.
35431         * m4/mbscasecmp.m4: New file.
35432         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
35433         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
35434         REPLACE_STRCASECMP.
35435         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
35436         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35437         GNULIB_MBSCASECMP.
35438         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
35439         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
35440         * modules/strcase (Files): Remove m4/mbrtowc.m4.
35441         (Depends-on): Remove mbuiter.
35442         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
35443
35444 2007-02-04  Bruno Haible  <bruno@clisp.org>
35445
35446         New module mbsstr. Remove module strstr.
35447         * modules/mbsstr: New file.
35448         * modules/strstr: Remove file.
35449         * lib/mbsstr.c: Renamed from lib/strstr.c.
35450         (mbsstr): Renamed from strstr.
35451         * lib/string_.h (strstr): Remove declaration. Change the conditional
35452         link warning.
35453         (mbsstr): New declaration.
35454         * m4/mbsstr.m4: New file.
35455         * m4/strstr.m4: Remove file.
35456         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
35457         REPLACE_STRSTR.
35458         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
35459         Don't initialize GNULIB_STRSTR.
35460         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
35461         substitute GNULIB_STRSTR and REPLACE_STRSTR.
35462         * MODULES.html.sh (Internationalization functions): Add mbsstr.
35463         (Support for systems lacking ANSI C 89): Remove strstr.
35464
35465 2007-02-04  Bruno Haible  <bruno@clisp.org>
35466
35467         New module mbsrchr.
35468         * modules/mbsrchr: New file.
35469         * lib/mbsrchr.c: New file.
35470         * lib/string_.h (strrchr): Add a conditional link warning.
35471         (mbsrchr): New declaration.
35472         * m4/mbsrchr.m4: New file.
35473         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35474         GNULIB_MBSRCHR.
35475         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
35476         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
35477
35478 2007-02-04  Bruno Haible  <bruno@clisp.org>
35479
35480         New module mbschr.
35481         * modules/mbschr: New file.
35482         * lib/mbschr.c: New file.
35483         * lib/string_.h (strchr): Add a conditional link warning.
35484         (mbschr): New declaration.
35485         * m4/mbschr.m4: New file.
35486         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35487         GNULIB_MBSCHR.
35488         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
35489         * MODULES.html.sh (Internationalization functions): Add mbschr.
35490
35491 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
35492
35493         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
35494
35495         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
35496
35497 2007-02-04  Bruno Haible  <bruno@clisp.org>
35498
35499         New module description section 'configure.ac-early'.
35500         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
35501         (func_get_autoconf_early_snippet): New function.
35502         (func_import, func_create_testdir): Use it. Remove special cases for
35503         modules 'extensions' and 'lock'.
35504         * modules/extensions (configure.ac-early): Require
35505         gl_USE_SYSTEM_EXTENSIONS.
35506         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
35507
35508 2007-02-04  Bruno Haible  <bruno@clisp.org>
35509
35510         Make use of gcj-4.3's -fsource and -ftarget option.
35511         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
35512         and if so try the options -fsource and -ftarget.
35513         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
35514         source_version, ftarget_option, target_version arguments.
35515         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
35516         (is_envjavac_oldgcj_14_14_usable): Renamed from
35517         is_envjavac_gcj_14_14_usable.
35518         (is_envjavac_oldgcj_14_13_usable): Renamed from
35519         is_envjavac_gcj_14_13_usable.
35520         (is_gcj_present): Update.
35521         (is_gcj_43, is_gcj43_usable): New functions.
35522         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
35523         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
35524         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
35525         try the options -fsource and -ftarget.
35526
35527 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
35528
35529         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
35530         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
35531         larger value.
35532
35533 2007-02-03  Jim Meyering  <jim@meyering.net>
35534
35535         Give tools a better chance to allocate space for very large buffers.
35536         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
35537
35538         Make pwd and readlink work also when run with an unreadable parent dir
35539         on systems with openat support.
35540         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
35541         provided getcwd function, even when we have openat support.
35542         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
35543
35544 2007-02-02  Bruno Haible  <bruno@clisp.org>
35545
35546         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
35547         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
35548         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
35549         portability problems if one of these functions is only used on specific
35550         platforms.
35551         Reported by Paul Eggert.
35552
35553 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
35554
35555         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
35556         is causing more trouble than it's curing.
35557         * lib/regex_internal.h (__mempcpy): Remove.
35558         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
35559         (and make the code a tad smaller to boot).
35560         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
35561
35562 2007-02-02  Jim Meyering  <jim@meyering.net>
35563
35564         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
35565         section, not in the Makefile.am: one.
35566
35567 2007-02-02  Eric Blake  <ebb9@byu.net>
35568
35569         * lib/strchrnul.c: Always include config.h first.
35570
35571         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
35572         gnulib strstr is not necessary here.
35573
35574 2007-02-02  Simon Josefsson  <simon@josefsson.org>
35575
35576         * m4/socklen.m4: Fix typo.
35577
35578 2007-02-02  Eric Blake  <ebb9@byu.net>
35579
35580         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
35581         * modules/netinet_in (Makefile.am): Likewise.
35582
35583 2007-02-01  Bruno Haible  <bruno@clisp.org>
35584
35585         * lib/string_.h (GL_LINK_WARNING): New macro.
35586         (strcasecmp, strstr, strcasestr): If provided by the system,
35587         conditionally define as a macro that leads to a warning instead of to
35588         an error.
35589         (strncasecmp): Conditionally define as a macro that leads to a warning.
35590
35591 2007-02-01  Karl Berry  <karl@gnu.org>
35592
35593         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
35594
35595 2007-02-01  Bruno Haible  <bruno@clisp.org>
35596
35597         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
35598         renamings.
35599
35600 2007-02-01  Eric Blake  <ebb9@byu.net>
35601
35602         * modules/regex (Depends-on): Revert dependence on mempcpy.
35603         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
35604         module's definition of mempcpy.
35605         Reported by Paul Eggert.
35606
35607 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
35608
35609         * lib/string_.h: If the gnulib module XYZ is not present, undefine
35610         the symbol XYZ before redefining it.  This fixes a problem with
35611         programs that don't use XYZ, when compiled on systems that define
35612         XYZ to something else.
35613
35614 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
35615
35616         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
35617         occurs when "mkdir -m foo" creates a setgid directory that is (1)
35618         writeable to group or other and (2) is intended to have a special
35619         mode bit that is set or cleared.  In such a case, the directory
35620         should be neither group- nor other-writeable until the special
35621         mode bits are right.
35622
35623 2007-01-31  Eric Blake  <ebb9@byu.net>
35624
35625         * modules/mountlist (Depends-on): Add strstr.
35626
35627         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
35628         bug.
35629         * modules/string (Makefile.am): Remove redundant replacement.
35630         * modules/regex (Depends-on): Add mempcpy.
35631
35632 2007-01-31  Bruno Haible  <bruno@clisp.org>
35633
35634         New module description field 'Link'.
35635         * gnulib-tool (func_usage): Document --extract-link-directive.
35636         (sed_extract_prog): Recognize 'Link' directive.
35637         (func_get_link_directive): New function.
35638         (func_import): Show summary of link directives.
35639         Handle --extract-link-directive option.
35640         * modules/acl (Link): New section.
35641         * modules/clock-time (Link): New section.
35642         * modules/euidaccess (Link): New section.
35643         * modules/gettext (Link): New section.
35644         * modules/iconv (Link): New section.
35645         * modules/lock (Link): New section.
35646         * modules/nanosleep (Link): New section.
35647         * modules/readline (Link): New section.
35648
35649 2007-01-27  Bruno Haible  <bruno@clisp.org>
35650
35651         Enforce the use of gnulib modules for unportable <string.h> functions.
35652         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
35653         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
35654         (gl_HEADER_STRING_H_BODY): Require it.
35655         * lib/string_.h: If the gnulib module XYZ is not present, redefine
35656         the symbol XYZ to one that gives a link error.
35657         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
35658         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
35659         * modules/mempcpy (configure.ac): Likewise.
35660         * modules/memrchr (configure.ac): Likewise.
35661         * modules/stpcpy (configure.ac): Likewise.
35662         * modules/stpncpy (configure.ac): Likewise.
35663         * modules/strcase (configure.ac): Likewise.
35664         * modules/strcasestr (configure.ac): Likewise.
35665         * modules/strchrnul (configure.ac): Likewise.
35666         * modules/strdup (configure.ac): Likewise.
35667         * modules/strndup (configure.ac): Likewise.
35668         * modules/strnlen (configure.ac): Likewise.
35669         * modules/strpbrk (configure.ac): Likewise.
35670         * modules/strsep (configure.ac): Likewise.
35671         * modules/strstr (configure.ac): Likewise.
35672         * modules/strtok_r (configure.ac): Likewise.
35673
35674 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
35675
35676         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
35677
35678 2007-01-30  Jim Meyering  <jim@meyering.net>
35679
35680         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
35681
35682 2007-01-29  Bruno Haible  <bruno@clisp.org>
35683
35684         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
35685         * lib/execute.c: Likewise.
35686         * lib/pipe.c: Likewise.
35687         * lib/printf-args.h: Likewise.
35688         * lib/printf-args.c: Likewise.
35689         * lib/printf-parse.c: Likewise.
35690         * lib/vasnprintf.c: Likewise.
35691
35692 2007-01-29  Eric Blake  <ebb9@byu.net>
35693
35694         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
35695         declaration.
35696
35697 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
35698
35699         * lib/strptime.h (strptime): Use 'restrict' for args where
35700         POSIX requires this.
35701         * lib/strptime.c (strptime): Likewise.
35702         Change license notice from LGPL to GPL, since gnulib-tool will
35703         change this as needed.
35704         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
35705         defined.
35706         Include "strptime.h" first, to check interface.
35707         Do not #undef _LIBC and _NL_CURRENT.
35708         Do not include <stdlib.h>; no longer needed.
35709         Include "time_r.h" and declare ptime_locale_status
35710         only if _LIBC is not defined.
35711         (__P): Remove unused macro.
35712         (match_string): Bring back glibc version, but use it only if _LIBC
35713         is defined.
35714         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
35715         Remove unnecessary assertion and abort() call.
35716         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
35717         * m4/strptime.m4: Fix serial number comment.
35718         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
35719         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
35720         (Depends-on): Add time_r.
35721
35722 2007-01-29  Bruno Haible  <bruno@clisp.org>
35723
35724         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35725         strptime.
35726         * modules/strptime (Depends-on): Add stdbool.
35727         * lib/strptime.h: Include <time.h> always. Add comments.
35728
35729 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35730
35731         * modules/strptime: New file.
35732         * lib/strptime.h: New file.
35733         * lib/strptime.c: New file.
35734         * m4/strptime.m4: New file.
35735
35736 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
35737
35738         * MODULES.html.sh: New module mpsort.
35739         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
35740
35741         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
35742         a circularity problem with HP-UX ia64 reported by Bob Proulx in
35743         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
35744         All uses changed.
35745         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
35746         All uses changed.
35747         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
35748         to _Restrict_.
35749         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
35750         the parameter matches the prototype.
35751
35752 2007-01-28  Jim Meyering  <jim@meyering.net>
35753
35754         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
35755         sys/time.h here, reverting that part of the previous patch:
35756         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
35757
35758 2007-01-28  Bruno Haible  <bruno@clisp.org>
35759
35760         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
35761         value of $(SYS_TIME_H).
35762         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
35763         remove it conditionally, too. [added by Jim Meyering]
35764         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
35765         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
35766         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
35767         GETTIMEOFDAY_REPLACEMENT to 1.
35768
35769 2007-01-28  Bruno Haible  <bruno@clisp.org>
35770
35771         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
35772         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
35773         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
35774         Set UNISTD_H instead of UNISTD_H2.
35775         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
35776
35777 2007-01-28  Bruno Haible  <bruno@clisp.org>
35778
35779         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
35780         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
35781
35782 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35783
35784         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
35785         (func_create_testdir): Ensure C locale for `grep' and `tr'
35786         character ranges.
35787         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
35788         ACLOCAL_AMFLAGS parsing state machine.
35789
35790 2007-01-27  Bruno Haible  <bruno@clisp.org>
35791
35792         * modules/unistr/base: Update.
35793
35794 2007-01-27  Bruno Haible  <bruno@clisp.org>
35795
35796         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
35797         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
35798         * modules/unistr/u32-mbtouc-unsafe: Renamed from
35799         modules/unistr/u32-mbtouc.
35800         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
35801         * lib/unistr.h: Update.
35802         * lib/linebreak.c: Update.
35803         * modules/unistr/u32-mbtouc: Renamed from
35804         modules/unistr/u32-mbtouc-safe.
35805         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
35806         * lib/unistr.h: Update.
35807         * lib/unistr/u32-to-u8.c: Update.
35808         * lib/unistr/u32-to-u16.c: Update.
35809
35810 2007-01-27  Bruno Haible  <bruno@clisp.org>
35811
35812         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
35813         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
35814         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
35815         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
35816         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
35817         * modules/unistr/u16-mbtouc-unsafe: Renamed from
35818         modules/unistr/u16-mbtouc.
35819         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
35820         * lib/unistr.h: Update.
35821         * lib/linebreak.c: Update.
35822         * modules/linebreak: Update.
35823         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
35824         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
35825         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
35826         * modules/unistr/u16-mbtouc: Renamed from
35827         modules/unistr/u16-mbtouc-safe.
35828         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
35829         * lib/unistr.h: Update.
35830         * lib/unistr/u16-to-u8.c: Update.
35831         * modules/unistr/u16-to-u8: Update.
35832         * lib/unistr/u16-to-u32.c: Update.
35833         * modules/unistr/u16-to-u32: Update.
35834
35835 2007-01-27  Bruno Haible  <bruno@clisp.org>
35836
35837         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
35838         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
35839         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
35840         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
35841         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
35842         * modules/unistr/u8-mbtouc-unsafe: Renamed from
35843         modules/unistr/u8-mbtouc.
35844         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
35845         * lib/unistr.h: Update.
35846         * lib/striconveh.c: Update.
35847         * modules/striconveh: Update.
35848         * lib/linebreak.c: Update.
35849         * modules/linebreak: Update.
35850         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
35851         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
35852         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
35853         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
35854         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
35855         * lib/unistr.h: Update.
35856         * lib/striconveh.c: Update.
35857         * modules/striconveh: Update.
35858         * lib/unistr/u8-to-u16.c: Update.
35859         * modules/unistr/u8-to-u16: Update.
35860         * lib/unistr/u8-to-u32.c: Update.
35861         * modules/unistr/u8-to-u32: Update.
35862
35863 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35864
35865         Sync from Libtool.
35866         * lib/argz.c: Do not include strings.h nor memory.h, include
35867         string.h unconditionally.  Patch by Simon Josefsson.
35868
35869 2007-01-27  Bruno Haible  <bruno@clisp.org>
35870
35871         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
35872         from gl_HEADER_STRING_H_BODY.
35873         (gl_HEADER_STRING_H_BODY): Require it.
35874         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
35875         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
35876         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
35877         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
35878         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35879         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
35880         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
35881         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
35882         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
35883         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
35884         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
35885         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
35886         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
35887         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
35888         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
35889
35890 2007-01-27  Bruno Haible  <bruno@clisp.org>
35891
35892         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
35893         check_PROGRAMS into noinst_PROGRAMS.
35894         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
35895         check_PROGRAMS in this case.
35896         (func_import): Set for_test to false.
35897         (func_create_testdir): Set for_test to true.
35898
35899 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
35900             Bruno Haible  <bruno@clisp.org>
35901
35902         * modules/strcasestr (Files): Remove lib/strcasestr.h.
35903         (Depends-on): Add string.
35904         (Includes): Use <string.h> instead of strcasestr.h.
35905         * modules/string (Makefile.am): Also substitute the value of
35906         REPLACE_STRCASESTR.
35907         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
35908         assume strcasestr is declared in <string.h> not <strings.h>. Also
35909         set REPLACE_STRCASESTR.
35910         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
35911         REPLACE_STRCASESTR.
35912         * lib/strcasestr.h: Remove file.
35913         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
35914         * lib/string_.h (strcasestr): New declaration.
35915
35916 2007-01-27  Bruno Haible  <bruno@clisp.org>
35917
35918         * lib/string_.h: Use 'extern'.
35919
35920 2007-01-27  Jim Meyering  <jim@meyering.net>
35921
35922         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
35923         of set-but-not-used local, "q".
35924
35925         * lib/mempcpy.c: Include <config.h> before <string.h>.
35926         This fixes a compilation error on HP-UX, due to the system's
35927         "restrict"-using mempcpy prototype.
35928
35929 2007-01-26  Bruno Haible  <bruno@clisp.org>
35930
35931         Small optimization.
35932         * lib/javacomp.c: Include c-strstr.h.
35933          (is_envjavac_gcj): Use c_strstr instead of strstr.
35934         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
35935
35936 2007-01-26  Bruno Haible  <bruno@clisp.org>
35937
35938         * MODULES.html.sh (Unicode string functions): Add the new modules.
35939
35940         * modules/uniconv/u32-strconv-to-locale: New file.
35941         * lib/uniconv/u32-strconv-to-locale.c: New file.
35942
35943         * modules/uniconv/u16-strconv-to-locale: New file.
35944         * lib/uniconv/u16-strconv-to-locale.c: New file.
35945
35946         * modules/uniconv/u8-strconv-to-locale: New file.
35947         * lib/uniconv/u8-strconv-to-locale.c: New file.
35948
35949         * modules/uniconv/u32-strconv-from-locale: New file.
35950         * lib/uniconv/u32-strconv-from-locale.c: New file.
35951
35952         * modules/uniconv/u16-strconv-from-locale: New file.
35953         * lib/uniconv/u16-strconv-from-locale.c: New file.
35954
35955         * modules/uniconv/u8-strconv-from-locale: New file.
35956         * lib/uniconv/u8-strconv-from-locale.c: New file.
35957
35958         * modules/uniconv/u32-strconv-to-enc: New file.
35959         * lib/uniconv/u32-strconv-to-enc.c: New file.
35960         * modules/uniconv/u32-strconv-to-enc-tests: New file.
35961         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
35962
35963         * modules/uniconv/u16-strconv-to-enc: New file.
35964         * lib/uniconv/u16-strconv-to-enc.c: New file.
35965         * lib/uniconv/u-strconv-to-enc.h: New file.
35966         * modules/uniconv/u16-strconv-to-enc-tests: New file.
35967         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
35968
35969         * modules/uniconv/u8-strconv-to-enc: New file.
35970         * lib/uniconv/u8-strconv-to-enc.c: New file.
35971         * modules/uniconv/u8-strconv-to-enc-tests: New file.
35972         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
35973
35974         * modules/uniconv/u32-strconv-from-enc: New file.
35975         * lib/uniconv/u32-strconv-from-enc.c: New file.
35976         * modules/uniconv/u32-strconv-from-enc-tests: New file.
35977         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
35978
35979         * modules/uniconv/u16-strconv-from-enc: New file.
35980         * lib/uniconv/u16-strconv-from-enc.c: New file.
35981         * modules/uniconv/u16-strconv-from-enc-tests: New file.
35982         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
35983
35984         * modules/uniconv/u8-strconv-from-enc: New file.
35985         * lib/uniconv/u8-strconv-from-enc.c: New file.
35986         * lib/uniconv/u-strconv-from-enc.h: New file.
35987         * modules/uniconv/u8-strconv-from-enc-tests: New file.
35988         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
35989
35990         * modules/uniconv/u32-conv-from-enc: New file.
35991         * lib/uniconv/u32-conv-from-enc.c: New file.
35992         * modules/uniconv/u32-conv-from-enc-tests: New file.
35993         * tests/uniconv/test-u32-conv-from-enc.c: New file.
35994
35995         * modules/uniconv/u16-conv-from-enc: New file.
35996         * lib/uniconv/u16-conv-from-enc.c: New file.
35997         * lib/uniconv/u-conv-from-enc.h: New file.
35998         * modules/uniconv/u16-conv-from-enc-tests: New file.
35999         * tests/uniconv/test-u16-conv-from-enc.c: New file.
36000
36001         * modules/uniconv/u8-conv-from-enc: New file.
36002         * lib/uniconv/u8-conv-from-enc.c: New file.
36003         * modules/uniconv/u8-conv-from-enc-tests: New file.
36004         * tests/uniconv/test-u8-conv-from-enc.c: New file.
36005
36006         * modules/uniconv/base: New file.
36007         * lib/uniconv.h: New file.
36008
36009 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
36010
36011         * doc/gnulib-tool.texi (Initial import): Update to match current
36012         behavior with strdup module.
36013         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
36014         * lib/memmem.h: Remove; all uses removed.  This is now done
36015         by <string.h>.
36016         * lib/mempcpy.h: Likewise.
36017         * lib/memrchr.h: Likewise.
36018         * lib/stpcpy.h: Likewise.
36019         * lib/stpncpy.h: Likewise.
36020         * lib/strcase.h: Likewise.
36021         * lib/strchrnul.h: Likewise.
36022         * lib/strdup.h: Likewise.
36023         * lib/strndup.h: Likewise.
36024         * lib/strnlen.h: Likewise.
36025         * lib/strpbrk.h: Likewise.
36026         * lib/strsep.h: Likewise.
36027         * lib/strstr.h: Likewise.
36028         * lib/strtok_r.h: Likewise.
36029         * lib/string_.h: New file.
36030         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
36031         Rely on <string.h> instead.
36032         * lib/canon-host.c: Likewise.
36033         * lib/chdir-long.c: Likewise.
36034         * lib/concatpath.c: Likewise.
36035         * lib/exclude.c: Likewise.
36036         * lib/fchdir.c: Likewise.
36037         * lib/getaddrinfo.c: Likewise.
36038         * lib/getcwd.c: Likewise.
36039         * lib/getsubopt.c: Likewise.
36040         * lib/glob.c: Likewise.
36041         * lib/hard-locale.c: Likewise.
36042         * lib/iconvme.c: Likewise.
36043         * lib/javacomp.c: Likewise.
36044         * lib/mempcpy.c: Likewise.
36045         * lib/memrchr.c: Likewise.
36046         * lib/regex_internal.h: Likewise.
36047         * lib/stpncpy.c: Likewise.
36048         * lib/strcasecmp.c: Likewise.
36049         * lib/strchrnul.c: Likewise.
36050         * lib/strdup.c: Likewise.
36051         * lib/striconv.c: Likewise.
36052         * lib/striconveh.c: Likewise.
36053         * lib/striconveha.c: Likewise.
36054         * lib/strncasecmp.c: Likewise.
36055         * lib/strndup.c: Likewise.
36056         * lib/strnlen.c: Likewise.
36057         * lib/strsep.c: Likewise.
36058         * lib/strstr.c: Likewise.
36059         * lib/strtok_r.c: Likewise.
36060         * lib/userspec.c: Likewise.
36061         * lib/w32spawn.h: Likewise.
36062         * lib/xstrndup.c: Likewise.
36063         * lib/mountlist.c (strstr): Remove decl.
36064         * m4/string_h.m4: New file.
36065         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
36066         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
36067         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
36068         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
36069         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
36070         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
36071         Set REPLACE_STRCASECMP if necessary.
36072         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
36073         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
36074         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
36075         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
36076         HAVE_DECL_STRDUP if necessary.
36077         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
36078         since gl_FUNC_STRNDUP does that now.
36079         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
36080         Check for decl here...
36081         (gl_PREREQ_STRNLEN): ... not here.
36082         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
36083         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
36084         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
36085         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
36086         necessary.
36087         * modules/string: New file.
36088         * modules/memmem (Files): Remove special-purpose include file.
36089         (Depends-on): Add string.
36090         (Include): Include <string.h>, not the removed file.
36091         * modules/mempcpy: Likewise.
36092         * modules/memrchr: Likewise.
36093         * modules/stpcpy: Likewise.
36094         * modules/stpncpy: Likewise.
36095         * modules/strcase: Likewise.
36096         * modules/strchrnul: Likewise.
36097         * modules/strdup: Likewise.
36098         * modules/strndup: Likewise.
36099         * modules/strnlen: Likewise.
36100         * modules/strpbrk: Likewise.
36101         * modules/strsep: Likewise.
36102         * modules/strstr: Likewise.
36103         * modules/strtok_r: Likewise.
36104         * tests/test-dirname.c: Don't include "strdup.h", since
36105         <string.h> now suffices.
36106         * tests/test-memmem.c: Don't include "memmem.h", since
36107         <string.h> now suffices.
36108
36109 2007-01-25  Bruno Haible  <bruno@clisp.org>
36110
36111         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
36112         *resultp is 0.
36113
36114         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
36115         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
36116         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
36117         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
36118
36119         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
36120         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
36121         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
36122         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
36123         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
36124         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
36125
36126 2007-01-24  Bruno Haible  <bruno@clisp.org>
36127
36128         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
36129         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
36130         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
36131         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
36132         gl_FUNC_FTS_CORE.
36133         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
36134         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
36135         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
36136         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
36137         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
36138         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
36139         gl_FUNC_FCHOWNAT.
36140         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
36141         gl_FUNC_STRFTIME.
36142         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
36143         Reported by Ralf Wildenhues.
36144
36145 2007-01-24  Bruno Haible  <bruno@clisp.org>
36146
36147         Drop AC_REQUIRE calls that are redundant with the module dependencies.
36148         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
36149         gl_GETADDRINFO.
36150         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
36151         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
36152         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
36153
36154 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
36155
36156         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
36157         Don't use 'exit'; just return from 'main'.
36158         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
36159
36160         * lib/fnmatch_.h: Readjust white space and comments to match
36161         glibc, to avoid spurious diffs.
36162
36163 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
36164
36165         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
36166         2004-12-01 change by Jakub Jelinek, since this code won't compile
36167         if !LIBC.  Problem reported by Bob Proulx.
36168
36169 2007-01-23  Bruno Haible  <bruno@clisp.org>
36170
36171         * lib/striconveh.c: Include c-strcaseeq.h.
36172         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
36173         * modules/striconveh (Depends-on): Add c-strcaseeq.
36174
36175 2007-01-23  Bruno Haible  <bruno@clisp.org>
36176
36177         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
36178
36179         * modules/c-strcaseeq: New file.
36180         * lib/c-strcaseeq.h: New file.
36181
36182         * modules/streq: New file.
36183         * lib/streq.h: New file.
36184
36185 2007-01-23  Bruno Haible  <bruno@clisp.org>
36186
36187         * modules/striconveha-tests: New file.
36188         * tests/test-striconveha.c: New file.
36189
36190         * lib/striconveha.h: Include <stdbool.h>.
36191         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
36192         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
36193         (mem_iconveha_notranslit): Renamed from mem_iconveha.
36194         (mem_iconveha): New function.
36195         (str_iconveha_notranslit): Renamed from str_iconveha.
36196         (str_iconveha): New function.
36197         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
36198         c-strcase.
36199
36200 2007-01-23  Bruno Haible  <bruno@clisp.org>
36201
36202         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
36203         encodings without forgiving before trying any encoding with handler.
36204         (str_iconveha): Try all encodings without forgiving before trying any
36205         encoding with handler.
36206
36207 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
36208
36209         Import the following changes from libc.
36210
36211         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
36212
36213         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
36214
36215         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
36216
36217         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
36218         normal_bracket label.
36219
36220         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
36221
36222         [BZ #361]
36223         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
36224         to normal_bracket after fetching the next character.
36225
36226 2007-01-22  Bruno Haible  <bruno@clisp.org>
36227
36228         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
36229         argument.
36230         * lib/striconveh.c (iconv_carefully_1): New function.
36231         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
36232         argument.
36233         (str_cd_iconveh): Update.
36234         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
36235         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
36236         * tests/test-striconveh.c (MAGIC): New macro.
36237         (new_offsets): New function.
36238         (main): Test call with and without offsets.
36239
36240 2007-01-22  Bruno Haible  <bruno@clisp.org>
36241
36242         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
36243         * modules/sys_select (Makefile.am): Likewise.
36244         * modules/sys_socket (Makefile.am): Likewise.
36245         * modules/sys_time (Makefile.am): Likewise.
36246
36247 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
36248
36249         * modules/gettimeofday (License): Change from GPL to LGPL, since
36250         gettimeofday is a library function.
36251
36252 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36253
36254         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
36255
36256 2007-01-21  Bruno Haible  <bruno@clisp.org>
36257
36258         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
36259
36260 2007-01-21  Bruno Haible  <bruno@clisp.org>
36261
36262         * modules/striconveha: New file.
36263         * lib/striconveha.h: New file.
36264         * lib/striconveha.c: New file.
36265         * MODULES.html.sh (Internationalization functions): Add striconveha.
36266         * lib/striconv.c (str_iconv): Optimize the case of an empty input
36267         string.
36268         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
36269
36270 2007-01-21  Bruno Haible  <bruno@clisp.org>
36271
36272         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
36273         * lib/striconveh.c (str_iconveh): Likewise.
36274
36275 2007-01-21  Bruno Haible  <bruno@clisp.org>
36276
36277         * lib/striconveh.h (mem_iconveh): New declaration.
36278         * lib/striconveh.c (mem_iconveh): New function.
36279         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
36280
36281 2007-01-21  Bruno Haible  <bruno@clisp.org>
36282
36283         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
36284
36285         * lib/striconveh.h (mem_cd_iconveh): Change specification.
36286         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
36287         original result buffer.
36288         (str_cd_iconveh): Update.
36289         * tests/test-striconveh.c (main): Update.
36290
36291         * lib/striconv.h (mem_cd_iconv): Change specification.
36292         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
36293         result buffer.
36294         (str_cd_iconv): Update.
36295         * tests/test-striconv.c (main): Update.
36296
36297 2007-01-21  Bruno Haible  <bruno@clisp.org>
36298
36299         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
36300
36301 2007-01-20  Jim Meyering  <jim@meyering.net>
36302
36303         * lib/userspec.c (parse_with_separator): If a user or group string
36304         starts with "+", skip the corresponding name-to-ID look-up, since
36305         such a look-up must fail: user and group names may not include "+".
36306
36307 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
36308
36309         * lib/poll.c: Include sys/time.h and time.h unconditionally,
36310         since we now assume the sys_time module.
36311         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
36312         check for sys/time.h; no longer needed.
36313         * modules/poll (Depends-on): Depend on sys_time.
36314
36315 2007-01-18  Bruno Haible  <bruno@clisp.org>
36316
36317         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
36318         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
36319
36320         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
36321         gettimeofday.
36322
36323         * tests/test-gettimeofday.c: Include <time.h>.
36324         (dummy): Remove variable.
36325
36326         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
36327         gl_HEADER_SYS_TIME_H.
36328         (gl_HEADER_SYS_TIME_H): New macro.
36329
36330         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
36331         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36332         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
36333         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
36334         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36335         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
36336         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
36337         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36338         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
36339         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
36340         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36341
36342         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
36343         last change; it caused a compilation error when cross-compiling to
36344         Cygwin.
36345
36346 2007-01-18  Jim Meyering  <jim@meyering.net>
36347
36348         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
36349         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
36350         than the race-prone "test -d sys || mkdir sys".
36351         (configure.ac): Use AC_PROG_MKDIR_P.
36352         * modules/sys_select: Likewise.
36353         * modules/sys_socket: Likewise.
36354         * modules/sys_time: Likewise.
36355
36356 2007-01-18  Eric Blake  <ebb9@byu.net>
36357
36358         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
36359         replace gettimeofday.
36360         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
36361         name, to avoid infinite recursion.
36362
36363 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
36364
36365         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
36366         module sys_time.
36367         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
36368         assume timespec.h defines struct timeval.
36369         * lib/settime.c: Likewise.
36370         * lib/utimens.c: Likewise.
36371         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
36372         since we now assume the gettimeofday module.
36373         * lib/tempname.c (__gen_tempname): Likewise.
36374         * lib/gettimeofday.h: Remove.
36375         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
36376         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
36377         Include <time.h>, for 'time()'.
36378         (localtime_buffer_addr): Also use this workaround if
36379         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
36380         to simplify the uses.  All uses changed.
36381         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
36382         that #undef is inside {}, and 'const' follows type name consistently.
36383         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
36384         (gettimeofday): Do not use the maximum possible value for
36385         tv->tv_usec, since that might break usages other than ls.c.
36386         Instead, we'll leave ls.c alone.  This undoes today's patch
36387         by Bruno.  Add a compile-time warning for 1s-clock resolution;
36388         we've never observed the problem but might as well keep the
36389         canary.
36390         * lib/nanosleep.c: Include timespec.h first, for interface check.
36391         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
36392         now assume the sys_time module.
36393         * lib/tempname.c: Likewise.
36394         * lib/timespec.h: Likewise.
36395         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
36396         needed.
36397         * lib/strftime.c: Likewise.
36398         * lib/timespec.h: Likewise.
36399         * lib/posixtm.c: Include posixtm.h first, for interface check.
36400         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
36401         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
36402         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
36403         * lib/sys_time_.h: New file.
36404         * lib/timespec.h (struct timespec): Use long int, not long.
36405         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
36406         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
36407         Remove obsolescent call to AC_HEADER_TIME.
36408         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
36409         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36410         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
36411         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
36412         Likewise.
36413         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
36414         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
36415         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
36416         into the sys_time module.  Check for gettimeofday just once.
36417         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
36418         for gettimeofday signature to just check the signature.  Merely
36419         compile it, since linking doesn't test signature.  Improve test for
36420         whether gettimeofday.o is actually needed.
36421         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
36422         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
36423         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
36424         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36425         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
36426         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
36427         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
36428         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
36429         than worrying about sys/time.h.
36430         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
36431         Don't bother worrying about TIME_WITH_SYS_TIME.
36432         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36433         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
36434         * m4/sys_time_h.m4: New file.
36435         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
36436         Don't include sys/time.h.  Return from main rather than exiting.
36437         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
36438         all uses changed.
36439         * modules/gethrxtime (Depends-on): Add sys_time.
36440         * modules/gettime (Depends-on): Likewise.
36441         * modules/gettimeofday (Depends-on): Likewise.
36442         * modules/nanosleep (Depends-on): Likewise.
36443         * modules/settime (Depends-on): Likewise.
36444         * modules/tempname (Depends-on): Likewise.
36445         * modules/utimens (Depends-on): Likewise.
36446         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
36447         (Include:) Change back to <sys/time.h>.
36448         (Maintainer:) Add self.
36449         * modules/sys_time: New file.
36450         * modules/tempname (Depends-on): Add gettimeofday.
36451         * tests/test-gettimeofday.c: Include <sys/time.h>
36452         rather than gettimeofday.h.
36453
36454 2007-01-17  Bruno Haible  <bruno@clisp.org>
36455
36456         * gnulib-tool (func_get_license): Revert last patch. Instead, let
36457         the license default to GPL.
36458         (func_create_testdir): Don't complain if a module is LGPL and its
36459         tests module depends on GPLed modules.
36460
36461 2007-01-17  Bruno Haible  <bruno@clisp.org>
36462
36463         * lib/gettimeofday.c (gettimeofday): Add code for the case
36464         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
36465         maximum possible value for tv->tv_usec, rather than the minimum one.
36466
36467 2005-10-08  Martin Lambers  <marlam@marlam.de>
36468 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
36469 2007-01-16  Bruno Haible  <bruno@clisp.org>
36470
36471         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
36472         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
36473         gl_FUNC_GETTIMEOFDAY.
36474         (Include): Add gettimeofday.h.
36475         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
36476         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
36477         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
36478         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
36479         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
36480         * lib/gettimeofday.h: New file.
36481         * lib/gettimeofday.c: Include <sys/timeb.h>.
36482         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
36483         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36484         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
36485         fall back on time().
36486
36487         * tests/test-gettimeofday.c: New file.
36488         * modules/gettimeofday-tests: New file.
36489
36490 2007-01-16  Eric Blake  <ebb9@byu.net>
36491
36492         * modules/fnmatch (Depends-on): Depend on wchar.
36493         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
36494         * m4/fnmatch.m4: Likewise.
36495         * modules/mbchar (Makefile.am): Assume <wchar.h>.
36496         * m4/mbchar.m4: Likewise.
36497         * modules/mbswidth (Depends-on): Depend on wchar.
36498         * lib/mbswidth.c: Assume <wchar.h>.
36499         * m4/mbswidth.m4: Likewise.
36500         * modules/quotearg (Depends-on): Depend on wchar.
36501         * lib/quotearg.c: Assume <wchar.h>.
36502         * m4/quotearg.m4: Likewise.
36503         * modules/regex (Depends-on): Depend on wchar.
36504         * lib/regex_internal.h: Assume <wchar.h>.
36505         * m4/regex.m4: Likewise.
36506         * modules/stdint (Depends-on): Depend on wchar.
36507         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
36508         * m4/stdint.m4: Likewise.
36509         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
36510         * modules/strftime (Depends-on): Depend on wchar.
36511         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
36512         * modules/strtol (Depends-on): Depend on wchar.
36513         * lib/strtol.c: Assume <wchar.h>.
36514         * modules/wcwidth (Depends-on): Depend on wchar.
36515         * lib/wcwidth.h: Assume <wchar.h>.
36516         * m4/wcwidth.m4: Likewise.
36517
36518 2007-01-16  Bruno Haible  <bruno@clisp.org>
36519
36520         * modules/csharpexec-script: New, created from...
36521         * modules/csharpexec: ... this.
36522
36523 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
36524
36525         * modules/javaexec-script: New, created from...
36526         * modules/javaexec: ... this.
36527
36528 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36529
36530         * modules/poll (Dependencies): Add sys_select.
36531
36532 2007-01-15  Jim Meyering  <jim@meyering.net>
36533
36534         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
36535         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
36536         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
36537         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
36538
36539 2007-01-15  Bruno Haible  <bruno@clisp.org>
36540
36541         * modules/striconveh: New file.
36542         * lib/striconveh.h: New file.
36543         * lib/striconveh.c: New file.
36544         * MODULES.html.sh (Internationalization functions): Add striconveh.
36545
36546         * modules/striconveh-tests: New file.
36547         * tests/test-striconveh.c: New file.
36548
36549 2007-01-15  Bruno Haible  <bruno@clisp.org>
36550
36551         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
36552         not from GNU libiconv or GNU libc.
36553
36554 2007-01-15  Bruno Haible  <bruno@clisp.org>
36555
36556         * doc/gnulib-intro.texi (Copyright): Explain the different license
36557         terms for module descriptions, autoconf macros, tests, documentation.
36558
36559 2007-01-14  Bruno Haible  <bruno@clisp.org>
36560
36561         * modules/striconv-tests: New file.
36562         * tests/test-striconv.c: New file.
36563
36564 2007-01-14  Bruno Haible  <bruno@clisp.org>
36565
36566         * modules/iconv-tests: New file.
36567         * tests/test-iconv.c: New file.
36568
36569 2007-01-14  Bruno Haible  <bruno@clisp.org>
36570
36571         * gnulib-tool (func_get_license): For test modules, use the license of
36572         the main module.
36573
36574 2007-01-14  Bruno Haible  <bruno@clisp.org>
36575
36576         * modules/iconv (Include): Clarify that <iconv.h> can only be included
36577         if iconv is found to exist.
36578
36579 2007-01-14  Bruno Haible  <bruno@clisp.org>
36580
36581         * modules/c-ctype-tests: New file.
36582         * tests/test-c-ctype.c: New file.
36583
36584 2007-01-14  Bruno Haible  <bruno@clisp.org>
36585
36586         * modules/binary-io-tests: New file.
36587         * tests/test-binary-io.sh: New file.
36588         * tests/test-binary-io.c: New file.
36589
36590 2007-01-14  Bruno Haible  <bruno@clisp.org>
36591
36592         * modules/array-oset-tests: New file.
36593         * tests/test-array_oset.c: New file.
36594
36595 2007-01-14  Bruno Haible  <bruno@clisp.org>
36596
36597         * modules/array-list-tests: New file.
36598         * tests/test-array_list.c: New file.
36599
36600 2007-01-14  Bruno Haible  <bruno@clisp.org>
36601
36602         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
36603         and make.
36604         Reported by Simon Josefsson in
36605         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
36606
36607 2007-01-14  Bruno Haible  <bruno@clisp.org>
36608
36609         * modules/allocsa-tests: New file.
36610         * tests/test-allocsa.c: New file.
36611
36612 2007-01-14  Bruno Haible  <bruno@clisp.org>
36613
36614         * modules/fchdir (Depends-on): Add absolute-header.
36615         * modules/unistd (Depends-on): Likewise.
36616
36617 2006-12-30  Bruno Haible  <bruno@clisp.org>
36618
36619         * modules/fchdir: New file.
36620         * modules/unistd (Files): Add lib/unistd_.h.
36621         (Makefile.am): Generate unistd.h from unistd_.h.
36622         * lib/fchdir.c: New file.
36623         * lib/dirent_.h: New file.
36624         * lib/unistd_.h: New file.
36625         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
36626         * m4/fchdir.m4: New file.
36627         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
36628         (gl_HEADER_UNISTD): Invoke it.
36629         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
36630         function.
36631         * lib/backupfile.c (opendir, closedir): Undefine.
36632         * lib/chown.c (open, close): Undefine.
36633         * lib/clean-temp.c (open, close): Undefine.
36634         * lib/copy-file.c (open, close): Undefine.
36635         * lib/execute.c (open, close): Undefine.
36636         * lib/fsusage.c (open, close): Undefine.
36637         * lib/gc-gnulib.c (open, close): Undefine.
36638         * lib/getcwd.c (opendir, closedir): Undefine.
36639         * lib/glob.c (opendir, closedir): Undefine.
36640         * lib/javacomp.c (open, close): Undefine.
36641         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
36642         * lib/openat-proc.c (open, close): Undefine.
36643         * lib/pagealign_alloc.c (open, close): Undefine.
36644         * lib/pipe.c (open, close): Undefine.
36645         * lib/progreloc.c (open, close): Undefine.
36646         * lib/savedir.c (opendir, closedir): Undefine.
36647         * lib/utime.c (open, close): Undefine.
36648         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
36649
36650 2007-01-10  Bruno Haible  <bruno@clisp.org>
36651
36652         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
36653
36654 2007-01-12  Eric Blake  <ebb9@byu.net>
36655
36656         Provide a robust <wchar.h>.  Further simplifications are now
36657         possible in other modules, but not included here.
36658         * modules/wchar: New module.
36659         * m4/wchar.m4: New file.
36660         * lib/wchar_.h: Likewise.
36661         * modules/mbchar (Depends-on): Depend on wchar, as the first use
36662         of the new module.
36663         * MODULES.html.sh (Extended multibyte and wide character utilities):
36664         New section.
36665
36666 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
36667
36668         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
36669         to a reasonable default for memory allocation.
36670         (xreadlink): Don't allocate a huge buffer, to work around a buggy
36671         file system that reports garbage st_size values for symlinks.
36672         Problem reported by Liyang Hu.
36673
36674 2007-01-11  Simon Josefsson  <simon@josefsson.org>
36675
36676         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
36677         Emacs .#* auto-save files).
36678
36679 2007-01-11  Bruno Haible  <bruno@clisp.org>
36680
36681         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
36682         directory.
36683
36684 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
36685
36686         Use @...@ consistently in lib/wctype_.h.
36687         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
36688         on it being set to 1 or 0.
36689         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
36690         go back to AC_SUBSTing it.
36691         * modules/wctype (Makefile.am): Undo previous change.
36692
36693 2007-01-10  Eric Blake  <ebb9@byu.net>
36694
36695         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
36696         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
36697         * modules/wctype (Makefile.am): Likewise.
36698         Reported by Chris McGuire.
36699
36700 2007-01-10  Jim Meyering  <jim@meyering.net>
36701
36702         fts.c: a small readability/maintainability improvement
36703         * lib/fts.c (fts_read): Make this code slightly more readable and
36704         maintainable by hoisting the "sp->fts_cur = p" assignments to
36705         immediately follow the statements that set P.  Derived from
36706         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
36707
36708 2007-01-10  Eric Blake  <ebb9@byu.net>
36709
36710         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
36711         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
36712         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
36713         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
36714         Reported by Chris McGuire.
36715
36716 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36717
36718         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
36719         in sed script.
36720
36721 2007-01-09  Bruno Haible  <bruno@clisp.org>
36722
36723         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
36724         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
36725         variables.
36726         (func_module): Use them.
36727
36728 2007-01-09  Bruno Haible  <bruno@clisp.org>
36729
36730         * modules/unistr/base: New file.
36731         * lib/unistr.h: New file.
36732
36733         * modules/unistr/u8-to-u16: New file.
36734         * lib/unistr/u8-to-u16.c: New file.
36735
36736         * modules/unistr/u8-to-u32: New file.
36737         * lib/unistr/u8-to-u32.c: New file.
36738
36739         * modules/unistr/u16-to-u8: New file.
36740         * lib/unistr/u16-to-u8.c: New file.
36741
36742         * modules/unistr/u16-to-u32: New file.
36743         * lib/unistr/u16-to-u32.c: New file.
36744
36745         * modules/unistr/u32-to-u8: New file.
36746         * lib/unistr/u32-to-u8.c: New file.
36747
36748         * modules/unistr/u32-to-u16: New file.
36749         * lib/unistr/u32-to-u16.c: New file.
36750
36751         * modules/unistr/u8-check: New file.
36752         * modules/unistr/u16-check: New file.
36753         * modules/unistr/u32-check: New file.
36754         * lib/unistr/u8-check.c: New file.
36755         * lib/unistr/u16-check.c: New file.
36756         * lib/unistr/u32-check.c: New file.
36757
36758         * modules/unistr/u8-chr: New file.
36759         * modules/unistr/u16-chr: New file.
36760         * modules/unistr/u32-chr: New file.
36761         * lib/unistr/u8-chr.c: New file.
36762         * lib/unistr/u16-chr.c: New file.
36763         * lib/unistr/u32-chr.c: New file.
36764
36765         * modules/unistr/u8-cmp: New file.
36766         * modules/unistr/u16-cmp: New file.
36767         * modules/unistr/u32-cmp: New file.
36768         * lib/unistr/u8-cmp.c: New file.
36769         * lib/unistr/u16-cmp.c: New file.
36770         * lib/unistr/u32-cmp.c: New file.
36771
36772         * modules/unistr/u8-cpy: New file.
36773         * modules/unistr/u16-cpy: New file.
36774         * modules/unistr/u32-cpy: New file.
36775         * lib/unistr/u8-cpy.c: New file.
36776         * lib/unistr/u16-cpy.c: New file.
36777         * lib/unistr/u32-cpy.c: New file.
36778         * lib/unistr/u-cpy.h: New file.
36779
36780         * modules/unistr/u8-cpy-alloc: New file.
36781         * modules/unistr/u16-cpy-alloc: New file.
36782         * modules/unistr/u32-cpy-alloc: New file.
36783         * lib/unistr/u8-cpy-alloc.c: New file.
36784         * lib/unistr/u16-cpy-alloc.c: New file.
36785         * lib/unistr/u32-cpy-alloc.c: New file.
36786         * lib/unistr/u-cpy-alloc.h: New file.
36787
36788         * modules/unistr/u8-endswith: New file.
36789         * modules/unistr/u16-endswith: New file.
36790         * modules/unistr/u32-endswith: New file.
36791         * lib/unistr/u8-endswith.c: New file.
36792         * lib/unistr/u16-endswith.c: New file.
36793         * lib/unistr/u32-endswith.c: New file.
36794         * lib/unistr/u-endswith.h: New file.
36795
36796         * modules/unistr/u8-mblen: New file.
36797         * modules/unistr/u16-mblen: New file.
36798         * modules/unistr/u32-mblen: New file.
36799         * lib/unistr/u8-mblen.c: New file.
36800         * lib/unistr/u16-mblen.c: New file.
36801         * lib/unistr/u32-mblen.c: New file.
36802
36803         * modules/unistr/u8-mbtouc: New file.
36804         * modules/unistr/u16-mbtouc: New file.
36805         * modules/unistr/u32-mbtouc: New file.
36806         * lib/unistr/u8-mbtouc.c: New file.
36807         * lib/unistr/u16-mbtouc.c: New file.
36808         * lib/unistr/u32-mbtouc.c: New file.
36809
36810         * modules/unistr/u8-mbtouc-safe: New file.
36811         * modules/unistr/u16-mbtouc-safe: New file.
36812         * modules/unistr/u32-mbtouc-safe: New file.
36813         * lib/unistr/u8-mbtouc-safe.c: New file.
36814         * lib/unistr/u16-mbtouc-safe.c: New file.
36815         * lib/unistr/u32-mbtouc-safe.c: New file.
36816
36817         * modules/unistr/u8-move: New file.
36818         * modules/unistr/u16-move: New file.
36819         * modules/unistr/u32-move: New file.
36820         * lib/unistr/u8-move.c: New file.
36821         * lib/unistr/u16-move.c: New file.
36822         * lib/unistr/u32-move.c: New file.
36823         * lib/unistr/u-move.h: New file.
36824
36825         * modules/unistr/u8-next: New file.
36826         * modules/unistr/u16-next: New file.
36827         * modules/unistr/u32-next: New file.
36828         * lib/unistr/u8-next.c: New file.
36829         * lib/unistr/u16-next.c: New file.
36830         * lib/unistr/u32-next.c: New file.
36831
36832         * modules/unistr/u8-prev: New file.
36833         * modules/unistr/u16-prev: New file.
36834         * modules/unistr/u32-prev: New file.
36835         * lib/unistr/u8-prev.c: New file.
36836         * lib/unistr/u16-prev.c: New file.
36837         * lib/unistr/u32-prev.c: New file.
36838
36839         * modules/unistr/u8-set: New file.
36840         * modules/unistr/u16-set: New file.
36841         * modules/unistr/u32-set: New file.
36842         * lib/unistr/u8-set.c: New file.
36843         * lib/unistr/u16-set.c: New file.
36844         * lib/unistr/u32-set.c: New file.
36845         * lib/unistr/u-set.h: New file.
36846
36847         * modules/unistr/u8-startswith: New file.
36848         * modules/unistr/u16-startswith: New file.
36849         * modules/unistr/u32-startswith: New file.
36850         * lib/unistr/u8-startswith.c: New file.
36851         * lib/unistr/u16-startswith.c: New file.
36852         * lib/unistr/u32-startswith.c: New file.
36853         * lib/unistr/u-startswith.h: New file.
36854
36855         * modules/unistr/u8-stpcpy: New file.
36856         * modules/unistr/u16-stpcpy: New file.
36857         * modules/unistr/u32-stpcpy: New file.
36858         * lib/unistr/u8-stpcpy.c: New file.
36859         * lib/unistr/u16-stpcpy.c: New file.
36860         * lib/unistr/u32-stpcpy.c: New file.
36861         * lib/unistr/u-stpcpy.h: New file.
36862
36863         * modules/unistr/u8-stpncpy: New file.
36864         * modules/unistr/u16-stpncpy: New file.
36865         * modules/unistr/u32-stpncpy: New file.
36866         * lib/unistr/u8-stpncpy.c: New file.
36867         * lib/unistr/u16-stpncpy.c: New file.
36868         * lib/unistr/u32-stpncpy.c: New file.
36869         * lib/unistr/u-stpncpy.h: New file.
36870
36871         * modules/unistr/u8-strcat: New file.
36872         * modules/unistr/u16-strcat: New file.
36873         * modules/unistr/u32-strcat: New file.
36874         * lib/unistr/u8-strcat.c: New file.
36875         * lib/unistr/u16-strcat.c: New file.
36876         * lib/unistr/u32-strcat.c: New file.
36877         * lib/unistr/u-strcat.h: New file.
36878
36879         * modules/unistr/u8-strchr: New file.
36880         * modules/unistr/u16-strchr: New file.
36881         * modules/unistr/u32-strchr: New file.
36882         * lib/unistr/u8-strchr.c: New file.
36883         * lib/unistr/u16-strchr.c: New file.
36884         * lib/unistr/u32-strchr.c: New file.
36885
36886         * modules/unistr/u8-strcmp: New file.
36887         * modules/unistr/u16-strcmp: New file.
36888         * modules/unistr/u32-strcmp: New file.
36889         * lib/unistr/u8-strcmp.c: New file.
36890         * lib/unistr/u16-strcmp.c: New file.
36891         * lib/unistr/u32-strcmp.c: New file.
36892
36893         * modules/unistr/u8-strcpy: New file.
36894         * modules/unistr/u16-strcpy: New file.
36895         * modules/unistr/u32-strcpy: New file.
36896         * lib/unistr/u8-strcpy.c: New file.
36897         * lib/unistr/u16-strcpy.c: New file.
36898         * lib/unistr/u32-strcpy.c: New file.
36899         * lib/unistr/u-strcpy.h: New file.
36900
36901         * modules/unistr/u8-strcspn: New file.
36902         * modules/unistr/u16-strcspn: New file.
36903         * modules/unistr/u32-strcspn: New file.
36904         * lib/unistr/u8-strcspn.c: New file.
36905         * lib/unistr/u16-strcspn.c: New file.
36906         * lib/unistr/u32-strcspn.c: New file.
36907         * lib/unistr/u-strcspn.h: New file.
36908
36909         * modules/unistr/u8-strdup: New file.
36910         * modules/unistr/u16-strdup: New file.
36911         * modules/unistr/u32-strdup: New file.
36912         * lib/unistr/u8-strdup.c: New file.
36913         * lib/unistr/u16-strdup.c: New file.
36914         * lib/unistr/u32-strdup.c: New file.
36915         * lib/unistr/u-strdup.h: New file.
36916
36917         * modules/unistr/u8-strlen: New file.
36918         * modules/unistr/u16-strlen: New file.
36919         * modules/unistr/u32-strlen: New file.
36920         * lib/unistr/u8-strlen.c: New file.
36921         * lib/unistr/u16-strlen.c: New file.
36922         * lib/unistr/u32-strlen.c: New file.
36923         * lib/unistr/u-strlen.h: New file.
36924
36925         * modules/unistr/u8-strmblen: New file.
36926         * modules/unistr/u16-strmblen: New file.
36927         * modules/unistr/u32-strmblen: New file.
36928         * lib/unistr/u8-strmblen.c: New file.
36929         * lib/unistr/u16-strmblen.c: New file.
36930         * lib/unistr/u32-strmblen.c: New file.
36931
36932         * modules/unistr/u8-strmbtouc: New file.
36933         * modules/unistr/u16-strmbtouc: New file.
36934         * modules/unistr/u32-strmbtouc: New file.
36935         * lib/unistr/u8-strmbtouc.c: New file.
36936         * lib/unistr/u16-strmbtouc.c: New file.
36937         * lib/unistr/u32-strmbtouc.c: New file.
36938
36939         * modules/unistr/u8-strncat: New file.
36940         * modules/unistr/u16-strncat: New file.
36941         * modules/unistr/u32-strncat: New file.
36942         * lib/unistr/u8-strncat.c: New file.
36943         * lib/unistr/u16-strncat.c: New file.
36944         * lib/unistr/u32-strncat.c: New file.
36945         * lib/unistr/u-strncat.h: New file.
36946
36947         * modules/unistr/u8-strncmp: New file.
36948         * modules/unistr/u16-strncmp: New file.
36949         * modules/unistr/u32-strncmp: New file.
36950         * lib/unistr/u8-strncmp.c: New file.
36951         * lib/unistr/u16-strncmp.c: New file.
36952         * lib/unistr/u32-strncmp.c: New file.
36953
36954         * modules/unistr/u8-strncpy: New file.
36955         * modules/unistr/u16-strncpy: New file.
36956         * modules/unistr/u32-strncpy: New file.
36957         * lib/unistr/u8-strncpy.c: New file.
36958         * lib/unistr/u16-strncpy.c: New file.
36959         * lib/unistr/u32-strncpy.c: New file.
36960         * lib/unistr/u-strncpy.h: New file.
36961
36962         * modules/unistr/u8-strnlen: New file.
36963         * modules/unistr/u16-strnlen: New file.
36964         * modules/unistr/u32-strnlen: New file.
36965         * lib/unistr/u8-strnlen.c: New file.
36966         * lib/unistr/u16-strnlen.c: New file.
36967         * lib/unistr/u32-strnlen.c: New file.
36968         * lib/unistr/u-strnlen.h: New file.
36969
36970         * modules/unistr/u8-strpbrk: New file.
36971         * modules/unistr/u16-strpbrk: New file.
36972         * modules/unistr/u32-strpbrk: New file.
36973         * lib/unistr/u8-strpbrk.c: New file.
36974         * lib/unistr/u16-strpbrk.c: New file.
36975         * lib/unistr/u32-strpbrk.c: New file.
36976         * lib/unistr/u-strpbrk.h: New file.
36977
36978         * modules/unistr/u8-strrchr: New file.
36979         * modules/unistr/u16-strrchr: New file.
36980         * modules/unistr/u32-strrchr: New file.
36981         * lib/unistr/u8-strrchr.c: New file.
36982         * lib/unistr/u16-strrchr.c: New file.
36983         * lib/unistr/u32-strrchr.c: New file.
36984
36985         * modules/unistr/u8-strspn: New file.
36986         * modules/unistr/u16-strspn: New file.
36987         * modules/unistr/u32-strspn: New file.
36988         * lib/unistr/u8-strspn.c: New file.
36989         * lib/unistr/u16-strspn.c: New file.
36990         * lib/unistr/u32-strspn.c: New file.
36991         * lib/unistr/u-strspn.h: New file.
36992
36993         * modules/unistr/u8-strstr: New file.
36994         * modules/unistr/u16-strstr: New file.
36995         * modules/unistr/u32-strstr: New file.
36996         * lib/unistr/u8-strstr.c: New file.
36997         * lib/unistr/u16-strstr.c: New file.
36998         * lib/unistr/u32-strstr.c: New file.
36999         * lib/unistr/u-strstr.h: New file.
37000
37001         * modules/unistr/u8-strtok: New file.
37002         * modules/unistr/u16-strtok: New file.
37003         * modules/unistr/u32-strtok: New file.
37004         * lib/unistr/u8-strtok.c: New file.
37005         * lib/unistr/u16-strtok.c: New file.
37006         * lib/unistr/u32-strtok.c: New file.
37007         * lib/unistr/u-strtok.h: New file.
37008
37009         * modules/unistr/u8-uctomb: New file.
37010         * modules/unistr/u16-uctomb: New file.
37011         * modules/unistr/u32-uctomb: New file.
37012         * lib/unistr/u8-uctomb.c: New file.
37013         * lib/unistr/u16-uctomb.c: New file.
37014         * lib/unistr/u32-uctomb.c: New file.
37015
37016         * MODULES.html.sh (Unicode string functions): Add the new modules.
37017
37018 2007-01-08  Bruno Haible  <bruno@clisp.org>
37019
37020         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
37021         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
37022         subdirectories.
37023
37024 2007-01-08  Karl Berry  <karl@gnu.org>
37025
37026         * doc/error.texi: mention that main() fns must set program_name
37027         when progname is used.
37028
37029 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
37030
37031         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
37032         WCTYPE_H is empty, for the benefit of builds from non-distclean
37033         directories.  Problem reported by Eric Blake in
37034         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
37035
37036 2007-01-08  Bruno Haible  <bruno@clisp.org>
37037
37038         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
37039         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
37040         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
37041         PROVIDE_CANONICALIZE_FILENAME_MODE.
37042         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
37043
37044 2007-01-08  Bruno Haible  <bruno@clisp.org>
37045
37046         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
37047         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
37048         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
37049         * lib/fts.c: Likewise.
37050         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
37051
37052 2006-12-25  Bruno Haible  <bruno@clisp.org>
37053
37054         * modules/utf8-ucs4-safe: New file.
37055         * lib/utf8-ucs4-safe.h: New file.
37056         * lib/unistr/utf8-ucs4-safe.c: New file.
37057
37058         * modules/utf16-ucs4-safe: New file.
37059         * lib/utf16-ucs4-safe.h: New file.
37060         * lib/unistr/utf16-ucs4-safe.c: New file.
37061
37062         * MODULES.html.sh (Unicode string functions): Add the new modules.
37063
37064 2007-01-08  Bruno Haible  <bruno@clisp.org>
37065
37066         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
37067         (Depends-on): Add unitypes.
37068         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
37069         (u8_mbtouc_aux): Move out to separate file.
37070         (u8_mbtouc): Use ucs4_t, uint8_t types.
37071         * lib/unistr/utf8-ucs4.c: New file.
37072
37073         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
37074         (Depends-on): Add unitypes.
37075         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
37076         (u16_mbtouc_aux): Move out to separate file.
37077         (u16_mbtouc): Use ucs4_t, uint16_t types.
37078         * lib/unistr/utf16-ucs4.c: New file.
37079
37080         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
37081         (Depends-on): Add unitypes.
37082         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
37083         (u8_uctomb_aux): Move out to separate file.
37084         (u8_uctomb): Use ucs4_t, uint8_t types.
37085         * lib/unistr/ucs4-utf8.c: New file.
37086
37087         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
37088         (Depends-on): Add unitypes.
37089         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
37090         (u16_uctomb_aux): Move out to separate file.
37091         (u16_uctomb): Use ucs4_t, uint16_t types.
37092         * lib/unistr/ucs4-utf16.c: New file.
37093
37094 2006-12-25  Bruno Haible  <bruno@clisp.org>
37095
37096         * modules/unitypes: New file.
37097         * lib/unitypes.h: New file.
37098         * MODULES.html.sh (func_all_modules): New section "Unicode string
37099         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
37100         this section. Add unitypes.
37101
37102 2007-01-08  Bruno Haible  <bruno@clisp.org>
37103
37104         Avoid variable names that conflict with those from libtool.
37105         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
37106         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
37107         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
37108         library_names_spec to acl_library_names_spec, hardcode_* to
37109         acl_hardcode_*.
37110         Reported by Ralf Wildenhues.
37111
37112 2007-01-08  Bruno Haible  <bruno@clisp.org>
37113
37114         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
37115         definition.
37116         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
37117         definition.
37118         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
37119         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
37120         definition.
37121         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
37122         definition.
37123         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
37124         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
37125         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
37126         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
37127         definition.
37128         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
37129         definition.
37130         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
37131         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
37132         GC_USE_<algorithm>.
37133         * lib/gc-libgcrypt.c: Likewise.
37134         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
37135         * modules/gc-arctwo (configure.ac): Likewise.
37136         * modules/gc-des (configure.ac): Likewise.
37137         * modules/gc-hmac-md5 (configure.ac): Likewise.
37138         * modules/gc-hmac-sha1 (configure.ac): Likewise.
37139         * modules/gc-md2 (configure.ac): Likewise.
37140         * modules/gc-md4 (configure.ac): Likewise.
37141         * modules/gc-md5 (configure.ac): Likewise.
37142         * modules/gc-random (configure.ac): Likewise.
37143         * modules/gc-rijndael (configure.ac): Likewise.
37144         * modules/gc-sha1 (configure.ac): Likewise.
37145
37146 2007-01-08  Bruno Haible  <bruno@clisp.org>
37147
37148         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
37149         macro definition.
37150         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
37151         definition.
37152         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
37153         definition.
37154         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
37155         * modules/fcntl-safer (configure.ac): Likewise.
37156         * modules/fopen-safer (configure.ac): Likewise.
37157         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
37158         GNULIB_FWRITEERROR macro definition.
37159
37160 2007-01-08  Bruno Haible  <bruno@clisp.org>
37161
37162         * m4/gnulib-common.m4: New file.
37163         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
37164         (func_get_filelist): Add m4/gnulib-common.m4.
37165
37166 2007-01-08  Bruno Haible  <bruno@clisp.org>
37167
37168         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
37169         command.
37170
37171 2007-01-08  Jim Meyering  <jim@meyering.net>
37172
37173         Use a more robust test for a "can't happen" condition.
37174         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
37175         narrowed the st_size value.  Presuming the "can't happen" condition
37176         is true, that narrowing could conceivably convert an invalid st_size
37177         value into a valid one.  Instead, use a change based on Matthew
37178         Woehlke's original patch.
37179
37180         Slight readability improvement: use an assert-like macro
37181         in place of literal "abort ()" uses.
37182         * lib/fts.c (fts_assert): Define.
37183         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
37184         Use this macro instead of a bare 'abort'.
37185
37186 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
37187
37188         Don't worry about using IRIX 5.3's wctype.h broken definitions;
37189         simply work around them.
37190         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
37191         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
37192         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
37193         declaring.
37194         Don't bother to define as macros, since the standard doesn't require it.
37195         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
37196         longer worry about IRIX 5.3.
37197         (HAVE_WCTYPE_CTMP_BUG): Remove.
37198
37199 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
37200
37201         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
37202         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
37203         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
37204         Problems reported by Georg Schwarz for IRIX 5.3.
37205
37206         * gnulib-tool (autoconf_minversion): Take the maximum version number
37207         found, not the minimum.  Problem reported by James Youngman.
37208
37209 2007-01-03  Karl Berry  <karl@gnu.org>
37210
37211         * doc/error.texi: new file, explaining interaction with progname.
37212         * doc/gnulib.texi: include it.  Update copyright.
37213
37214 2007-01-03  Simon Josefsson  <simon@josefsson.org>
37215
37216         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
37217         AC_CANONICAL_HOST, to improve autobuild outputs.
37218
37219 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
37220             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37221
37222         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
37223         sockets, server sockets, and other file descriptors.  Count errors
37224         to compute the return value.  Reorder the code a bit to be easier
37225         to follow.  Don't set event bits that were not requested (except
37226         POLLERR and POLLHUP).
37227
37228 2007-01-01  Bruno Haible  <bruno@clisp.org>
37229
37230         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
37231
37232 2007-01-03  Jim Meyering  <jim@meyering.net>
37233
37234         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
37235
37236 2007-01-02  Bruno Haible  <bruno@clisp.org>
37237
37238         * modules/settime (Include): Require timespec.h.
37239         * modules/nanosleep (Include): Likewise.
37240
37241 2007-01-01  Bruno Haible  <bruno@clisp.org>
37242
37243         * gnulib-tool (func_emit_copyright_notice): Bump year.
37244         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
37245
37246 2007-01-01  Bruno Haible  <bruno@clisp.org>
37247
37248         Improve support for OpenBSD.
37249         * build-aux/config.rpath (libname_spec): Export.
37250         (library_names_spec): New variable. Export.
37251         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
37252         library_names_spec from the config.rpath output. Locate shared library
37253         through the name pattern in library_names_spec.
37254
37255 2007-01-01  Eric Blake  <ebb9@byu.net>
37256
37257         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
37258
37259 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
37260
37261         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
37262         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
37263         assume the C locale, and avoid an "eval" that could cause trouble.
37264         Problem with SORT reported by Bob Proulx.
37265
37266         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
37267         Define.  Trivial patch from Henning Nielsen Lund, originally
37268         sent to bug-grep@gnu.org today.
37269
37270 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
37271
37272         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
37273         struct stat.  Problem reported by Henning Nielsen Lund.
37274         * lib/acl.c: Include acl.h first, to check interface.  Don't
37275         bother to include sys/types.h and sys/stat.h again.
37276
37277 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
37278
37279         Import the following change from libc; problem reported by
37280         Sven Verdoolaege.
37281
37282         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
37283
37284         [BZ #1373]
37285         * lib/argp.h: Remove __NTH for __argp_usage inline function.
37286
37287 2006-12-28  Jim Meyering  <jim@meyering.net>
37288
37289         * build-aux/announce-gen: Do not assume that the package
37290         builds any of tar.gz, tar.bz2, and .xdelta files.
37291         Suggestion from Simon Josefsson.
37292
37293 2006-12-28  Simon Josefsson  <simon@josefsson.org>
37294
37295         * modules/announce-gen: New file.
37296
37297 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
37298
37299         * lib/mbchar.h: Just include <wctype.h>; the wctype module
37300         handles its gotchas now.
37301         * lib/mbswidth.c: Likewise.
37302         * lib/wcwidth.h: Likewise.
37303         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
37304         and iswcntrl; the wctype module does this stuff now.
37305         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
37306         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
37307         * modules/mbchar (Depends-on): Add wctype.
37308         * modules/mbswidth (Depends-on): Likewise.
37309         * modules/wcwidth (Depends-on): Likewise.
37310
37311 2006-12-27  Eric Blake  <ebb9@byu.net>
37312
37313         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
37314         module uses more than what <wctype.h> is required to provide.
37315
37316 2006-12-26  Eric Blake  <ebb9@byu.net>
37317
37318         * gnulib-tool (sed_extract_prog): Avoid space-tab.
37319
37320 2006-12-26  Eric Blake  <ebb9@byu.net>
37321
37322         * modules/absolute-header: New module.
37323         * modules/fcntl (Depends-on): Depend on it.
37324         * modules/inttypes (Depends-on): Likewise.
37325         * modules/stdint (Depends-on): Likewise.
37326         * modules/sys_stat (Depends-on): Likewise.
37327         * modules/wctype (Depends-on): Likewise.
37328         * MODULES.html.sh (Support for building libraries and
37329         executables): Document it.
37330
37331 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
37332
37333         * gnulib-tool (SED): Remove, undoing previous change.
37334         The problem was that it broke coreutils on Solaris, because
37335         "sed --posix" leaked into a makefile.
37336         (sed): New alias, if 'alias' and GNU sed.
37337
37338 2006-12-24  Jim Meyering  <jim@meyering.net>
37339
37340         Work around an fchownat bug in glibc-2.4:
37341         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
37342         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
37343         in spite of the -P option.
37344         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
37345         New macros.
37346         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
37347         * modules/openat (Files): Add lib/fchownat.c.
37348         * lib/openat.c (fchownat): Don't define here.  Move to...
37349         * lib/fchownat.c: ...this new file.
37350
37351 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
37352
37353         Fix bug reported by Bruno Haible in
37354         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
37355         where quotearg.c didn't compile on Mac OS X 10.2 because it
37356         lacks <wchar.h> and wint_t.
37357         * lib/wctype_.h (__wctype_wint_t): New type.
37358         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
37359         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
37360         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
37361         Arg is now of type __wctype_wint_t, not wint_t.
37362         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
37363         substitute HAVE_WINT_T.
37364         * modules/wctype (Files): Add m4/wint_t.m4.
37365         (wctype.h): Substitute HAVE_WINT_T.
37366
37367 2006-12-23  Bruno Haible  <bruno@clisp.org>
37368
37369         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
37370
37371 2006-12-23  Bruno Haible  <bruno@clisp.org>
37372
37373         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
37374         S_ISLNK.
37375         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
37376         mingw.
37377
37378 2006-12-22  Bruno Haible  <bruno@clisp.org>
37379
37380         * lib/copy-file.c: Include acl.h.
37381         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
37382         Close the file descriptors only after being done with copy_acl.
37383         * modules/copy-file (Depends-on): Add acl.
37384
37385 2006-12-22  Bruno Haible  <bruno@clisp.org>
37386
37387         * gnulib-tool (SED): New variable.
37388         Use $SED instead of sed everywhere.
37389
37390 2006-12-22  Bruno Haible  <bruno@clisp.org>
37391
37392         * modules/no-c++: New file.
37393         * m4/no-c++.m4: New file.
37394         * MODULES.html.sh (Support for building libraries and executables):
37395         Add no-c++.
37396
37397 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
37398
37399         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
37400         Include <limits.h>, and use its INT_MAX to rewrite the
37401         j loop so that it does not overflow 'int'.  Problem reported by
37402         Ralf Wildenhues in
37403         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
37404         Play it safe by shifting left by 1 rather than multiplying by 2,
37405         as GCC is less likely to optimize this away when the value
37406         is signed (when it assumes overflow leads to undefined behavior).
37407         Also, don't assume time_t uses two's complement.
37408
37409 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
37410
37411         * MODULES.html.sh: New module wctype.
37412         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
37413         * lib/fnmatch.c: Don't bother to include <wchar.h> before
37414         <wctype.h>, since the new wctype module should fix this.
37415         * lib/quotearg.c: Include <wctype.h> unconditionally, since
37416         the wctype module should arrange for it.
37417         * lib/regex_internal.h: Likewise.
37418         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
37419         since the wctype module should handle this now.
37420         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
37421         * modules/fnmatch (Depends-on): Add wctype.
37422         * modules/quotearg (Depends-on): Likewise.
37423         * modules/regex (Depends-on): Likewise.
37424
37425 2006-12-19  Bruno Haible  <bruno@clisp.org>
37426
37427         * lib/strdup.h [C++]: Wrap definitions in extern "C".
37428         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
37429
37430 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37431
37432         * modules/savewd (Depends-on): Fix dependency on fcntl.
37433
37434 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
37435
37436         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
37437         conforms to C99, rather than relying on the user's environment
37438         setting of STDINT_H.
37439
37440 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
37441         and Eric Blake  <ebb9@byu.net>
37442
37443         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
37444         This is more consistent with the other defines here.
37445         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
37446         Port to z/OS.  Problem reported by Paul Gilmartin.
37447         Change local vars to use gl_ prefix rather than ac_.
37448         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
37449         with other defines.
37450         * modules/double-slash-root: New module.
37451         * modules/dirname (Files): Remove m4/double-slash-root.m4.
37452         (Depends-on): Add double-slash-root.
37453         * MODULES.html.sh (File system functions): Mention new module.
37454
37455 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
37456
37457         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
37458         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
37459         This is for the benefit of gzip, which doesn't do i18n.
37460
37461 2006-12-12  Jim Meyering  <jim@meyering.net>
37462
37463         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
37464         Reported by Andreas Schwab <schwab@suse.de>.
37465
37466 2006-12-12  Bruno Haible  <bruno@clisp.org>
37467
37468         Merge these changes.
37469         2006-09-05  Bruno Haible  <bruno@clisp.org>
37470         * lib/iconvme.c (iconv_string): No need to save and restore errno when
37471         iconv_alloc succeeded.
37472         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
37473         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
37474         test for " && dest " at the end - dest is always != NULL there. Call
37475         iconv with 4xNULL arguments initially, to reset the state. Call iconv
37476         with 2xNULL arguments, also to flush the state storage. Handle the
37477         IRIX iconv behaviour. Realloc the final result, to throw away unused
37478         memory.
37479
37480 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
37481
37482         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
37483         and fchmodat unconditionally, since glibc 2.4 has them.
37484         Problem reported by Arkadiusz Miskiewicz.
37485
37486 2006-12-10  Bruno Haible  <bruno@clisp.org>
37487
37488         * gnulib-tool (func_import): Show the include files only for those
37489         modules that are copied and specified.
37490         Reported by Karl Berry.
37491
37492 2006-12-08  Jim Meyering  <jim@meyering.net>
37493
37494         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
37495         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
37496
37497         * build-aux/announce-gen: Add two new options, both optional:
37498         --bootstrap-tools=TOOL_LIST
37499               a comma-separated list of tools, e.g.,
37500               autoconf,automake,bison,gnulib
37501         --gnulib-snapshot-date=DATE
37502               if gnulib is in the bootstrap tool list,
37503               then report this as the snapshot date.
37504               If not specified, use the current date/time.
37505               If you specify a date here, be sure it's UTC.
37506
37507 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37508
37509         * tests/test-argp-2.sh: Fix test to match actual output.
37510         (func_compare): Fix sed script to be portable.
37511
37512 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
37513
37514         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
37515         workaround for this case.  It is not autoconfigured now; offhand
37516         it's hard to see how to autoconfigure it.
37517
37518 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
37519
37520         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
37521         a directory that is about to be chowned.  Such a directory's
37522         initial file permissions should permit the owner only and this
37523         should not be changed until after the chown, since the group and
37524         other bits would be incorrect if they granted permission before
37525         the chown.
37526
37527         Fix porting problem for iswctype reported by Georg Schwarz in:
37528         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
37529         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
37530         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
37531         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
37532         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37533
37534 2006-12-03  Jim Meyering  <jim@meyering.net>
37535
37536         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
37537         p->fts_statp may not yet be defined.
37538         (fts_read): Instead, set it in the caller, once p->fts_statp is
37539         sure to be defined, and corresponds to a top-level directory.
37540         This bug made du -x fail.  Here's the coreutils test case:
37541         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
37542         Reported by Mike Frysinger.
37543
37544 2006-12-01  Jim Meyering  <jim@meyering.net>
37545
37546         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
37547         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
37548         Reported by Simon Josefsson.
37549
37550 2006-11-30  Jim Meyering  <jim@meyering.net>
37551
37552         * m4/warning.m4: Use the all-permissive copyright notice
37553         recommended by RMS (rather than LGPL).
37554         * m4/vararrays.m4: Likewise.
37555         * m4/flexmember.m4: Likewise.
37556
37557 2006-11-29  Bruno Haible  <bruno@clisp.org>
37558
37559         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
37560         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
37561         using +=.
37562         Reported by Simon Josefsson <simon@josefsson.org>.
37563
37564 2006-11-28  James Youngman <jay@gnu.org>
37565
37566         * README: Advise users that they might find the bug-gnulib@gnu.org
37567         and autotools-announce@gnu.org mailing lists useful.
37568
37569 2006-11-28  Bruno Haible  <bruno@clisp.org>
37570
37571         * m4/ptrdiff_max.m4: Remove file.
37572
37573 2006-11-21  Bruno Haible  <bruno@clisp.org>
37574
37575         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
37576         _AC_COMPUTE_INT.
37577         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37578         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
37579         _AC_COMPUTE_INT.
37580         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37581         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
37582         _AC_COMPUTE_INT.
37583         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37584
37585 2006-11-28  Jim Meyering  <jim@meyering.net>
37586
37587         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
37588         warning from "gcc -Wshadow" about shadowing the builtin.
37589
37590 2006-11-27  Bruno Haible  <bruno@clisp.org>
37591
37592         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
37593         _AC_COMPUTE_INT.
37594         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37595
37596 2006-11-27  Bruno Haible  <bruno@clisp.org>
37597             Paul Eggert  <eggert@cs.ucla.edu>
37598
37599         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
37600
37601 2006-11-26  Bruno Haible  <bruno@clisp.org>
37602
37603         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
37604         noinst_LTLIBRARIES.
37605
37606 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
37607             Bruno Haible  <bruno@clisp.org>
37608
37609         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
37610         if compiling with "gcc -ansi".
37611
37612 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
37613
37614         Fix some incompatibilities with gcc -ansi -pedantic.
37615         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
37616         if compiling pedantically with GCC, unless it's C99 or later.
37617         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
37618         it mishandles gcc -ansi -pedantic as well.
37619         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
37620         if gcc -pedantic.
37621         * lib/regexec.c (check_node_accept_bytes): Don't use auto
37622         initializers for struct if -pedantic, unless it's C99 or later.
37623
37624 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
37625
37626         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
37627         Don't close an fd more than once. Identical atimes indicate
37628         success, not failure.
37629
37630 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
37631
37632         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
37633
37634 2006-11-23  Jim Meyering  <jim@meyering.net>
37635
37636         * build-aux/announce-gen: New file.  From coreutils.
37637
37638 2006-11-22  Jim Meyering  <jim@meyering.net>
37639
37640         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
37641         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
37642         (fts_read): Use a temporary to narrow the overused st_size member
37643         before using it in a switch statement.  Reported by Matthew Woehlke.
37644
37645         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
37646         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
37647
37648 2006-11-20  Bruno Haible  <bruno@clisp.org>
37649
37650         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
37651         changequote instead of pairs of brackets.
37652         Reported by Andreas Schwab <schwab@suse.de>.
37653
37654 2006-11-21  Jim Meyering  <jim@meyering.net>
37655
37656         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
37657         so as to remain compatible with older compilers.
37658         Patch from Michael Deutschmann.
37659
37660 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
37661
37662         * MODULES.html.sh (File system functions): Add openat.
37663
37664         * lib/openat.h (rpl_fstatat): New macro, if
37665         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
37666         (fstatat): Define to rpl_fstatat under the same conditions,
37667         unless COMPILING_FSTATAT.
37668         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
37669         seems to have the bug.
37670         * lib/fstatat.c: New file.
37671         * modules/openat (Files): Add it.
37672
37673 2006-11-20  Bruno Haible  <bruno@clisp.org>
37674
37675         * Makefile: New file.
37676
37677 2006-11-20  Jim Meyering  <jim@meyering.net>
37678
37679         The beginnings of syntax-related checks for gnulib.
37680         * lib/Makefile: New file.
37681         * lib/t-idcache: New script.  Ensure that the two halves of
37682         idcache.c stay in sync.
37683
37684         * lib/idcache.c: Adjust comments in user- and group- portions to
37685         be more accurate, and to be consistent with one another.
37686
37687 2006-11-20  Jim Meyering  <jim@meyering.net>
37688
37689         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
37690         continue using the flexible array member (thus, this module performs
37691         half as many malloc calls), with the addition that...
37692         (getgroup, getuser): Consistently record a non-match via an empty
37693         "name" string, and map an empty string match to a NULL return value.
37694         * modules/idcache (Depends-on): Re-add flexmember.
37695
37696         * lib/idcache.c (getuser): Remove all uses of the register keyword.
37697         (getuidbyname, getgroup, getgidbyname): Likewise.
37698
37699         Use cleaner syntax: NULL rather than 0.
37700         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
37701
37702 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
37703
37704         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
37705         It mishandled the case where the group was missing.
37706         Problem reported by Greg Schafer.
37707         * modules/idcache: Likewise.
37708
37709 2006-11-18  Jim Meyering  <jim@meyering.net>
37710
37711         * check-module (%exempt_header): Add exception for some
37712         conditionally-included headers.
37713
37714         * modules/i-ring (Depends-on): Add verify.
37715         (License): Change to LGPL.
37716
37717 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
37718
37719         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
37720         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
37721         and inttostr.h.  Use snprintf rather than uinttostr, so that
37722         LGPLed code doesn't depend on GPLed.
37723
37724 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
37725
37726         * modules/inline (License): Change from GPL to LGPL.
37727
37728 2006-11-17  Jim Meyering  <jim@meyering.net>
37729
37730         * modules/d-type (License): Switch to LGPL.
37731
37732 2006-11-15  Bruno Haible  <bruno@clisp.org>
37733
37734         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
37735
37736 2006-11-15  Eric Blake  <ebb9@byu.net>
37737
37738         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
37739         the module dependency.
37740
37741 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37742             Bruno Haible  <bruno@clisp.org>
37743
37744         * gnulib-tool (func_create_testdir): Add license consistency check.
37745
37746 2006-11-15  Eric Blake  <ebb9@byu.net>
37747
37748         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
37749         random "(cached)" in configure output.
37750
37751 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37752
37753         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
37754         test for conforming inttypes.h is both announced and cached.
37755
37756         * MODULES.html.sh (seen_modules, seen_files): New variables.
37757         (func_module): Rewrite to use a few less gnulib-tool and sed
37758         invocations.  Avoid a couple of quadratic algorithms for ...
37759         (missed_modules, missed_files): ... these, with ...
37760         (func_append, func_tmpdir): ... these new functions, from
37761         gnulib-tool.  Analogously, install traps for cleanup.
37762
37763         * tests/test-gc.c (main): Remove unused variables.
37764         * tests/test-read-file.c: Include stdlib.h, for 'free'.
37765
37766 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
37767
37768         * modules/inttostr (License): Change to LGPL.
37769
37770 2006-11-14  Eric Blake  <ebb9@byu.net>
37771
37772         * modules/tempname (License): Change to LGPL.
37773
37774 2006-11-14  Eric Blake  <ebb9@byu.net>
37775
37776         * doc/functions.texi (Function Portability): *printf functions on
37777         Cygwin now understand all POSIX size specifiers.
37778
37779 2006-11-14  Bruno Haible  <bruno@clisp.org>
37780
37781         * modules/c-ctype (License): Change to LGPL.
37782
37783 2006-11-12  Bruno Haible  <bruno@clisp.org>
37784
37785         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
37786         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
37787         for GNOME libraries, for which the include files are installed in
37788         subdirectories of $prefix/include.
37789
37790 2006-11-12  Bruno Haible  <bruno@clisp.org>
37791
37792         * m4/lib-link.m4: Require at least autoconf-2.54.
37793         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
37794         name to underscores for the --with option.
37795
37796 2006-11-13  Bruno Haible  <bruno@clisp.org>
37797
37798         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
37799         the tests directory.
37800         Reported by Ralf Wildenhues.
37801
37802 2006-11-13  Bruno Haible  <bruno@clisp.org>
37803
37804         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
37805         (func_emit_initmacro_end): Undo the override here.
37806         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
37807         Works around the famous automake error in coreutils.
37808
37809 2006-11-13  Eric Blake  <ebb9@byu.net>
37810
37811         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
37812         element, not its node.
37813
37814 2006-11-12  Bruno Haible  <bruno@clisp.org>
37815
37816         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
37817         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
37818
37819 2006-11-12  Bruno Haible  <bruno@clisp.org>
37820
37821         * gnulib-tool: New option --local-symlink.
37822         (func_usage): Document it.
37823         (lsymbolic): New variable.
37824         (func_import, func_create_testdir): If --symlink was not specified,
37825         test whether --local-symlink was specified and the file comes from
37826         the local_gnulib_dir.
37827
37828 2006-11-12  Bruno Haible  <bruno@clisp.org>
37829
37830         * gnulib-tool (func_ln): New function.
37831         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
37832
37833 2006-11-12  Bruno Haible  <bruno@clisp.org>
37834
37835         Finish support for source files in subdirectories.
37836         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
37837         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
37838         AUTOMAKE_OPTIONS.
37839         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
37840
37841 2006-11-12  Bruno Haible  <bruno@clisp.org>
37842
37843         * gnulib-tool (func_get_automake_snippet): Synthesize also an
37844         EXTRA_lib_SOURCES augmentation.
37845         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
37846
37847 2006-11-12  Jim Meyering  <jim@meyering.net>
37848
37849         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
37850         file descriptors.  This also averts a failure on systems with
37851         native openat support when a traversed directory lacks "x" access.
37852         * lib/fts_.h: Include "i-ring.h"
37853         (struct FTS) [fts_fd_ring]: New member.
37854         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
37855         (FCHDIR): Add parentheses.
37856         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
37857         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
37858         When descending, rather than simply closing the previous
37859         fts_cwd_fd value, push that file descriptor onto the ring.
37860         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
37861         (fts_open): Initialize the new fd_ring member.
37862         (fts_close): Clear the ring.
37863         (fts_safe_changedir): When possible, use our new fd_ring to skip
37864         the diropen and fstat and dev/ino comparison that would normally
37865         accompany a virtual `chdir ("..")'.
37866
37867         * modules/fts (Depends-on): Add i-ring.
37868         * modules/i-ring: New module.
37869         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
37870         * m4/i-ring.m4: New file.
37871
37872 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37873
37874         * gnulib-tool (func_create_testdir): Fix replacement of
37875         `build-aux' in configure.ac.  Run autotools in gltests
37876         subdirectory.
37877         (func_create_testdir, func_create_megatestdir, test): There is
37878         no need for '--force' in most autotool invocations in a new
37879         tree.  Actually fail the whole test if any of the tools, or the
37880         configure or make stages fail.
37881
37882         Sync from Automake.
37883         * build-aux/gnupload: Revert last change.  Add pointer to upload
37884         instructions of the GNU Maintenance Instructions.
37885         Suggestion by Karl Berry.
37886
37887 2006-11-10  Jim Meyering  <jim@meyering.net>
37888
37889         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
37890
37891 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
37892
37893         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
37894         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
37895         (bind_textdomain_codeset) [! ENABLE_NLS]:
37896         Evaluate all the arguments.  That way, callers get compatible behavior
37897         if the arguments have side effects.  Also, it avoids some GCC
37898         diagnostics in some cases; Joel E. Denny reported problems when Bison
37899         was configured with --enable-gcc-warnigs.
37900
37901 2006-11-10  Jim Meyering  <jim@meyering.net>
37902
37903         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
37904         relevant options in CFLAGS (like -O, -fno-inline) are taken into
37905         account.
37906
37907 2006-11-10  Jim Meyering  <jim@meyering.net>
37908
37909         * modules/inline: New file/module.
37910         * modules/xalloc (Files): Remove m4/inline.m4.
37911         (Depends-on): Add inline, instead.
37912         * modules/oset: Likewise.
37913         * modules/list: Likewise.
37914
37915 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
37916
37917         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
37918         Problem reported by Matthew Woehlke.
37919
37920 2006-11-09  Bruno Haible  <bruno@clisp.org>
37921
37922         * lib/tempname.c (gen_tempname): Remove variant that invokes
37923         __gen_tempname.
37924         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
37925         __gen_tempname.
37926
37927 2006-11-08  Bruno Haible  <bruno@clisp.org>
37928
37929         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
37930         to 'yes' instead of 'cross-compiling'.
37931
37932 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
37933
37934         * lib/quotearg.h (quotearg_free): New decl.
37935         * lib/quotearg.c (quotearg_free): New function.
37936         (slot0, nslots, slotvec0, slotvec):
37937         Now file-scope so that quotearg_free can get at them.
37938
37939 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37940
37941         Sync from Automake.
37942         * build-aux/gnupload: Add missing 'gnu' to example URL.
37943         Report by Karl Berry.
37944
37945 2006-11-08  Bruno Haible  <bruno@clisp.org>
37946
37947         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
37948         Suggested by Paul Eggert.
37949
37950 2006-11-08  Jim Meyering  <jim@meyering.net>
37951
37952         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
37953         It's already included if !_LIBC.
37954         (fts_safe_changedir): Add a comment.
37955
37956 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
37957
37958         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
37959         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
37960         Matthew Woehlke.
37961
37962         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
37963         definitions up, to avoid colliding with change below.
37964         (static_inline) [HAVE_INLINE]: New macro.
37965         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
37966         Provide extern decls when !HAVE_INLINE.  Do not define unless
37967         static_inline is defined, either by us or by xmalloc.c.  Use
37968         static_inline rather than static inline.
37969         (XCALLOC): Optimize sizeof(T) = 1 case.
37970         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
37971
37972 2006-11-07  Bruno Haible  <bruno@clisp.org>
37973
37974         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
37975         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
37976         AC_C_INLINE.
37977         * modules/xalloc (Files): Add m4/inline.m4.
37978
37979 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37980
37981         * README: Fix typo.
37982         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
37983         (Miscellanous Notes): ...from this.
37984
37985 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
37986
37987         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
37988         Mention that offsetof should be used instead of sizeof.
37989         From Bruno Haible.
37990
37991 2006-11-07  Bruno Haible  <bruno@clisp.org>
37992
37993         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
37994
37995 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
37996
37997         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
37998         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
37999         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
38000         (gl_tree_add_before, gl_tree_add_after):
38001         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
38002         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
38003         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
38004         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
38005         (gl_linked_add_after, gl_linked_add_at): Likewise.
38006         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
38007         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
38008         (gl_tree_add_before, gl_tree_add_after): Likewise.
38009         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
38010         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
38011         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
38012
38013 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38014
38015         * lib/gl_oset.h: Use C comment style, not C++ comment style.
38016
38017 2006-11-06  Bruno Haible  <bruno@clisp.org>
38018
38019         * m4/inline.m4: New file.
38020         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
38021         * modules/list (Files): Add m4/inline.m4.
38022         * modules/oset (Files): Likewise.
38023
38024 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
38025
38026         * lib/idcache.c: Include <stddef.h>, for offsetof.
38027         (struct userid.name): Change from char * to a flexible array member.
38028         All uses changed.
38029         * modules/idcache (Depends-on): Add flexmember.
38030
38031         * MODULES.html.sh (Core language properties): New module flexmember.
38032         * modules/flexmember, m4/flexmember.m4: New files.
38033
38034         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
38035         inline functions that are identical with the old xnmalloc_inline,
38036         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
38037         that we can avoid some unnecessary integer multiplications and
38038         divisions in the common case where the element size is known at
38039         compile time.
38040         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
38041         needed.
38042         (xnboundedmalloc): Remove.
38043         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
38044         arguments, for consistency with rest of this header.
38045         (xcharalloc): Rewrite using XNMALLOC.
38046         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
38047         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
38048         versions have been moved to lib/xalloc.h and renamed to be the
38049         non-*_inline versions.
38050         (xmalloc, xrealloc): Implement without reference to the xnmalloc
38051         and xnrealloc functions, since those functions are now inline and
38052         now call us.
38053         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
38054         renaming described above.
38055         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
38056         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
38057         captures the dependency in AC_C_INLINE.
38058
38059         New module canonicalize-lgpl, proposed by Charles Wilson in
38060         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
38061         with a few small changes afterwards.
38062         * MODULES.html.sh (File system functions): New module
38063         canonicalize-lgpl.
38064         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
38065         and canonicalize_file_name.
38066         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
38067         * modules/canonicalize-lgpl: New files.
38068
38069 2006-11-05  Bruno Haible  <bruno@clisp.org>
38070
38071         * gnulib-tool (func_import, func_create_testdir): Create directories
38072         also for files in subdirectories of lib/.
38073
38074 2006-11-05  Bruno Haible  <bruno@clisp.org>
38075
38076         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
38077         ANSI C compliant.
38078
38079 2006-11-03  Bruno Haible  <bruno@clisp.org>
38080
38081         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
38082         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
38083         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
38084         (xnboundedmalloc): New inline function.
38085         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
38086         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
38087         xmalloc.
38088         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
38089         xmalloc.
38090         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
38091         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
38092         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
38093         xmalloc.
38094         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
38095         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
38096         xmalloc.
38097         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
38098         gl_tree_add_after): Use XMALLOC instead of xmalloc.
38099         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
38100         xmalloc.
38101         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
38102         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
38103         gl_tree_add_after): Use XMALLOC instead of xmalloc.
38104         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
38105         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
38106         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
38107         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
38108
38109 2006-11-03  Bruno Haible  <bruno@clisp.org>
38110
38111         * lib/c-ctype.h [C++]: Define functions without name mangling.
38112         * lib/fwriteerror.h [C++]: Likewise.
38113         * lib/gcd.h [C++]: Likewise.
38114         * lib/linebreak.h [C++]: Likewise.
38115
38116 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
38117
38118         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
38119         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
38120         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
38121         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
38122         Check for functions and headers just once.
38123         Check for declaration of canonicalize_file_name.
38124         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
38125
38126 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
38127
38128         * gnulib-tool (func_import): Fix typo in actioncmd.
38129
38130 2006-11-02  Bruno Haible  <bruno@clisp.org>
38131
38132         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
38133         newline sequence in the Makefile.am snippet as a space, like "make"
38134         does.
38135         Reported by Roger Persson <perrog@gmail.com>.
38136
38137 2006-11-01  Bruno Haible  <bruno@clisp.org>
38138
38139         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
38140         already declared in <string.h>.
38141         * lib/strcase.h (strncasecmp): Don't declare it if yes.
38142
38143 2006-11-01  Bruno Haible  <bruno@clisp.org>
38144
38145         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
38146         * lib/strcase.h: Include <string.h>.
38147         (strcasecmp): Define to rpl_strcasecmp here.
38148
38149 2006-11-01  Bruno Haible  <bruno@clisp.org>
38150
38151         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
38152
38153 2006-11-01  Eric Blake  <ebb9@byu.net>
38154
38155         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
38156
38157         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
38158
38159 2006-10-29  Bruno Haible  <bruno@clisp.org>
38160
38161         Make it compile in C++ mode.
38162         * lib/full-write.c (full_rw): Add a cast.
38163
38164 2006-11-01  Bruno Haible  <bruno@clisp.org>
38165
38166         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
38167         be POSIX compliant.
38168         Reported by Roger Persson <perrog@gmail.com>.
38169
38170 2006-11-01  Eric Blake  <ebb9@byu.net>
38171
38172         * lib/getopt_.h: Fix comments.
38173
38174 2006-10-31  Eric Blake  <ebb9@byu.net>
38175
38176         * modules/tmpdir (Depends-on): Add sys_stat.
38177         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
38178         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
38179         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
38180         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
38181         tempname.
38182
38183 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
38184
38185         Avoid some C++ diagnostics reported by Bruno Haible.
38186         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
38187         xmalloc.
38188         (quotearg_alloc): Use xcharalloc rather than xmalloc.
38189         (struct slotvec): Move to top level.
38190         (quotearg_n_options): Rewrite to avoid xmalloc.
38191         * lib/xalloc.h (xcharalloc): New function.
38192         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
38193         [defined __cplusplus]: Add function template that provides result
38194         type propagation.  This part of the change is from Bruno Haible.
38195
38196 2006-10-29  Bruno Haible  <bruno@clisp.org>
38197
38198         Make it compile in C++ mode.
38199         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
38200         * lib/strnlen1.c (strnlen1): Cast memchr result.
38201         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
38202         * lib/clean-temp.c (string_equals, string_hash): Add casts.
38203         (create_temp_dir): Rename local variable 'template'.
38204         (compile_csharp_using_sscli): Add cast.
38205         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
38206         * lib/findprog.c (find_in_path): Likewise.
38207         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
38208         * lib/wait-process.c (register_slave_subprocess): Likewise.
38209
38210 2006-10-22  Bruno Haible  <bruno@clisp.org>
38211
38212         * modules/tsearch: New file.
38213         * lib/tsearch.h: New file.
38214         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
38215         * m4/tsearch.m4: New file.
38216         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
38217
38218 2006-10-29  Eric Blake  <ebb9@byu.net>
38219
38220         * lib/arcfour.c: Assume config.h.
38221         * lib/arctwo.c: Likewise.
38222         * lib/base64.c: Likewise.
38223         * lib/check-version.c: Likewise.
38224         * lib/crc.c: Likewise.
38225         * lib/des.c: Likewise.
38226         * lib/gc-gnulib.c: Likewise.
38227         * lib/gc-libgcrypt.c: Likewise.
38228         * lib/gc-pbkdf2-sha1.c: Likewise.
38229         * lib/getaddrinfo.c: Likewise.
38230         * lib/getdelim.c: Likewise.
38231         * lib/getline.c: Likewise.
38232         * lib/hmac-md5.c: Likewise.
38233         * lib/hmac-sha1.c: Likewise.
38234         * lib/iconvme.c: Likewise.
38235         * lib/md2.c: Likewise.
38236         * lib/md4.c: Likewise.
38237         * lib/memxor.c: Likewise.
38238         * lib/read-file.c: Likewise.
38239         * lib/readline.c: Likewise.
38240         * lib/rijndael-alg-fst.c: Likewise.
38241         * lib/rijndael-api-fst.c: Likewise.
38242         * lib/xgetdomainname.c: Likewise.
38243
38244 2006-10-28  Eric Blake  <ebb9@byu.net>
38245
38246         * lib/xstrndup.c: Assume config.h.
38247
38248 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
38249
38250         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
38251         stat-macros.h is now for our own macros, whereas stat_h is for
38252         macros in the <sys/stat.h> name space.
38253         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
38254         (STAT_MACROS_H): Remove.
38255         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
38256         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
38257         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
38258         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
38259         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
38260         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
38261         Move these macros to ...
38262         * lib/stat_.h: here.  Don't include stat-macros.h.
38263         * lib/canonicalize.c: Don't include stat-macros.h.
38264         * lib/chown.c: Likewise.
38265         * lib/euidaccess.c: Likewise.
38266         * lib/file-type.c: Likewise.
38267         * lib/filemode.c: Likewise.
38268         * lib/glob.c: Likewise.
38269         * lib/isapipe.c: Likewise.
38270         * lib/lchown.c: Likewise.
38271         * lib/lstat.c: Likewise.
38272         * lib/mkdir-p.c: Likewise.
38273         * lib/rmdir.c: Likewise.
38274         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
38275         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
38276         unless mkdir isn't declared, to speed up 'configure'.
38277         Always create sys/stat.h, since it's unlikely any real sys/stat.h
38278         would define all the S_* symbols.
38279         * modules/canonicalize (Depends-on):
38280         Depend on sys_stat, not stat-macros.
38281         * modules/chown: Likewise.
38282         * modules/euidaccess: Likewise.
38283         * modules/filemode: Likewise.
38284         * modules/file-type: Likewise.
38285         * modules/glob: Likewise.
38286         * modules/isapipe: Likewise.
38287         * modules/lchown: Likewise.
38288         * modules/lstat: Likewise.
38289         * modules/mkancesdirs: Likewise.
38290         * modules/rmdir: Likewise.
38291         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
38292         * modules/modechange: Likewise.
38293         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
38294         (configure.ac): Remove gl_STAT_MACROS.
38295         * modules/sys_stat (Depends-on): Remove stat-macros.
38296
38297 2006-10-27  Bruno Haible  <bruno@clisp.org>
38298
38299         * m4/signed.m4: Remove file.
38300         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
38301         invocation.
38302         * modules/vasnprintf (Files): Remove m4/signed.m4.
38303
38304 2006-10-27  Bruno Haible  <bruno@clisp.org>
38305
38306         Update to GNU gettext 0.16.
38307         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
38308         m4/inttypes-h.m4, m4/signed.m4.
38309         * m4/gettext.m4: Update to GNU gettext 0.16.
38310         * m4/intl.m4: New file, from GNU gettext.
38311         * m4/intldir.m4: New file, from GNU gettext.
38312         * config/srclist.txt: Update
38313
38314 2006-10-27  Eric Blake  <ebb9@byu.net>
38315
38316         * MODULES.html.sh: Document tempname.
38317         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
38318         dependencies.
38319         (Files): Move lib/tempname.c...
38320         * modules/tempname: ...to this new module.
38321         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
38322         (gl_PREREQ_TEMPNAME): Move...
38323         * m4/tempname.m4: ...to this new file.
38324         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
38325         * modules/sys_stat (Depends-on): Add stat-macros.
38326         * lib/stat_.h (includes): Pick up stat macros.
38327         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
38328         if stat macros are broken.
38329         * lib/tempname.c (includes): No need to include "stat-macros.h".
38330         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
38331         (direxists, __path_search) [!_LIBC]: Don't compile these in
38332         gnulib; the tmpdir module covers that.
38333         * lib/tempname.h: New file.
38334
38335 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
38336
38337         * COPYING: Explain how gnulib-tool converts licence headers.
38338         Almost all wording by Eric Blake.
38339
38340 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
38341
38342         * lib/mbchar.h (is_basic_table): Make read-only.
38343         * lib/mbchar.c (is_basic_table): Likewise.
38344         Reported by John Darrington.
38345
38346 2006-10-25  Bruno Haible  <bruno@clisp.org>
38347
38348         * lib/progname.h (set_program_name): Undefine before defining.
38349
38350 2006-10-25  Bruno Haible  <bruno@clisp.org>
38351
38352         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
38353         false for non-gcc C++ compilers.
38354         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38355
38356 2006-10-24  Bruno Haible  <bruno@clisp.org>
38357
38358         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
38359         iconv implementations like Irix iconv.
38360
38361 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
38362
38363         * modules/vararrays: New file.
38364         * m4/vararrays.m4: New file, taken from diffutils.
38365         * MODULES.html.sh: New module vararrays.
38366
38367 2006-10-24  Karl Berry  <karl@gnu.org>
38368
38369         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
38370         Don't call GNU Unix.
38371
38372 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38373
38374         * users.txt: Add Libtool.
38375
38376         Sync from Libtool:
38377
38378         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
38379
38380         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
38381         to gnulib's policy of including config.h unconditionally.
38382
38383 2006-10-24  Bruno Haible  <bruno@clisp.org>
38384
38385         * modules/wcwidth (Files): Add m4/wint_t.m4.
38386         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
38387         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
38388
38389 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
38390
38391         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
38392         to pacify GCC with some -W flags enabled.  Problem reported by
38393         Bruno Haible.
38394
38395 2006-10-24  Jim Meyering  <jim@meyering.net>
38396
38397         * MODULES.html.sh: Remove uinttostr.  It's not a module.
38398         Reported by Karl Berry.
38399
38400 2006-10-23  Bruno Haible  <bruno@clisp.org>
38401
38402         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
38403
38404 2006-10-24  Bruno Haible  <bruno@clisp.org>
38405
38406         * lib/gl_list.h: Use C comment style, not C++ comment style.
38407
38408 2006-10-23  Eric Blake  <ebb9@byu.net>
38409
38410         * lib/getaddrinfo.c (includes): Add missing include.
38411
38412 2006-10-23  Bruno Haible  <bruno@clisp.org>
38413             Paul Eggert  <eggert@cs.ucla.edu>
38414
38415         Ability to rename obstack_free.
38416         * lib/obstack.h (__obstack_free): New macro. Declare instead of
38417         obstack_free.
38418         (obstack_free): Invoke the __obstack_free macro.
38419         * lib/obstack.c (obstack_free): Use __obstack_free macro.
38420
38421 2006-10-23  Bruno Haible  <bruno@clisp.org>
38422             Paul Eggert  <eggert@cs.ucla.edu>
38423
38424         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
38425         __argc, __argv from the declaration. (They are defined as macros on
38426         mingw.)
38427
38428 2006-10-22  Bruno Haible  <bruno@clisp.org>
38429
38430         * doc/gnulib-intro.texi: New file.
38431         * doc/gnulib.texi: Include it.
38432
38433 2006-10-21  Bruno Haible  <bruno@clisp.org>
38434
38435         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
38436         "Introduction", "Miscellanous Notes", "Particular Modules".
38437
38438 2006-10-21  Bruno Haible  <bruno@clisp.org>
38439
38440         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38441         Change mostlyclean-local rule to avoid sh syntax error from bash
38442         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
38443
38444 2006-10-23  Jim Meyering  <jim@meyering.net>
38445
38446         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
38447         in place of snprintf.
38448
38449         * modules/inttostr (Files): Add lib/uinttostr.c.
38450         * lib/uinttostr.c (inttostr): New file/function.
38451         * lib/inttostr.h (uinttostr): Declare.
38452         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
38453         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
38454         Add uinttostr.
38455         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
38456
38457 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
38458
38459         * lib/canonicalize.c (ELOOP): Define if not already defined.
38460         Problem reported by Bruno Haible in
38461         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
38462
38463 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
38464
38465         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
38466         Problem reported by Perry Smith and Ville Laurikari.
38467
38468         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
38469         uses.
38470
38471 2006-10-19  Bruno Haible  <bruno@clisp.org>
38472
38473         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
38474         for mingw.
38475
38476 2006-10-19  Bruno Haible  <bruno@clisp.org>
38477
38478         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
38479         Needed for mingw.
38480
38481 2006-10-19  Bruno Haible  <bruno@clisp.org>
38482
38483         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
38484
38485 2006-10-19  Bruno Haible  <bruno@clisp.org>
38486
38487         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
38488         it.
38489
38490 2006-10-19  Bruno Haible  <bruno@clisp.org>
38491
38492         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
38493         invocation.
38494
38495 2006-10-19  Bruno Haible  <bruno@clisp.org>
38496
38497         * gnulib-tool (func_create_testdir): Don't include ftruncate and
38498         mountlist by default.
38499
38500 2006-10-16  Bruno Haible  <bruno@clisp.org>
38501
38502         * lib/c-strstr.c: Include c-strstr.h.
38503
38504 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
38505
38506         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
38507         in a slash.
38508
38509 2006-10-18  Bruno Haible  <bruno@clisp.org>
38510
38511         * lib/lock.h [C++]: Wrap definitions in extern "C".
38512
38513 2006-10-18  Bruno Haible  <bruno@clisp.org>
38514
38515         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
38516         gl_LIBOBJS list.
38517
38518 2006-10-18  Bruno Haible  <bruno@clisp.org>
38519
38520         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
38521
38522 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
38523
38524         * lib/xstrtol.h: Include gettext.h.
38525         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
38526         Problem reported by Eric Blake.
38527         * modules/xstrtol (Depends-on): Add gettext-h.
38528
38529 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
38530
38531         * lib/strftime.c (advance): New macro.
38532         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
38533         incomplete type, so you can't add 0 to it.  Problem and patch
38534         reported by Eelco Dolstra for dietlibc.
38535
38536 2006-10-18  Jim Meyering  <jim@meyering.net>
38537
38538         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
38539         type for a local, and rename it: s/up/user_proc/.
38540
38541 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
38542
38543         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
38544         READ_UTMP_USER_PROCESS.
38545         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
38546
38547 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
38548
38549         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
38550         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
38551
38552 2006-10-17  Eric Blake  <ebb9@byu.net>
38553
38554         * lib/sigprocmask.c (sigprocmask): Fix typo.
38555
38556         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
38557
38558         * modules/clean-temp (Makefile.am): Don't add to make output...
38559         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
38560         config.h.
38561
38562 2006-10-17  Bruno Haible  <bruno@clisp.org>
38563
38564         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
38565         differently if DEFAULT_TEXT_DOMAIN is set.
38566
38567 2006-10-16  Bruno Haible  <bruno@clisp.org>
38568
38569         * lib/clean-temp.c: Include fwriteerror.h.
38570
38571 2006-10-16  Bruno Haible  <bruno@clisp.org>
38572
38573         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
38574
38575 2006-10-16  Bruno Haible  <bruno@clisp.org>
38576
38577         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
38578         * lib/sigprocmask.h: Include <sys/types.h>.
38579         (sigset_t): Use the system's definition if present.
38580
38581 2006-10-17  Eric Blake  <ebb9@byu.net>
38582
38583         * lib/xvasprintf.c (includes): Assume config.h.
38584         * lib/xasprintf.c (includes): Likewise.
38585
38586 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
38587
38588         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
38589         at least as wide as intmax_t.
38590
38591 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
38592
38593         (Imported from Automake.)
38594         * build-aux/gnupload: Update to version 1.1 of directive file.
38595
38596 2006-10-16  Eric Blake  <ebb9@byu.net>
38597
38598         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
38599         match Automake 1.10a.
38600
38601 2006-10-14  Bruno Haible  <bruno@clisp.org>
38602
38603         * modules/sigprocmask: New file.
38604         * lib/sigprocmask.h: New file.
38605         * lib/sigprocmask.c: New file.
38606         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
38607         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
38608         request sigprocmask.o.
38609         (gl_PREREQ_SIGPROCMASK): New macro.
38610         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
38611         (Depends-on): Add sigprocmask.
38612         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
38613         gt_SIGNALBLOCKING. Test for 'raise' only once.
38614         * lib/fatal-signal.c: Include sigprocmask.h.
38615         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
38616         unblock_fatal_signals): Define always.
38617         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38618         sigprocmask.
38619
38620 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
38621
38622         Sync from Automake.
38623         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
38624         which incorrectly sets the mode of an existing destination
38625         directory.  In some cases the unpatched install-sh could do the
38626         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
38627         system.  We hope this is rare in practice, but it's clearly worth
38628         fixing.  Problem reported by Alex Unleashed in
38629         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
38630         Also, don't bother to check for -m bugs unless we're using -m;
38631         suggested by Stepan Kasal.
38632
38633 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38634
38635         Sync from Automake.
38636         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
38637         `-c' flag, so they appear at the same position as in %FASTDEP%
38638         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
38639         which ignores unknown options only after the first non-option.
38640         Bug report against M4 by Nelson H. F. Beebe.
38641
38642 2006-10-13  Jim Meyering  <jim@meyering.net>
38643
38644         Fix a bug in yesterday's change.
38645         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
38646         p->fts_statp->st_dev would be used uninitialized.
38647         Ensures that we always call fts_stat on the very first entry.
38648         Miklos Szeredi reported that find -xdev stopped working.
38649
38650 2006-10-12  Bruno Haible  <bruno@clisp.org>
38651
38652         * gnulib-tool (func_get_automake_snippet): Append an automatically
38653         computed EXTRA_DIST augmentation.
38654         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
38655         * modules/alloca-opt (Makefile.am): Likewise.
38656         * modules/allocsa (Makefile.am): Likewise.
38657         * modules/arcfour (Makefile.am): Likewise.
38658         * modules/arctwo (Makefile.am): Likewise.
38659         * modules/argmatch (Makefile.am): Likewise.
38660         * modules/argz (Makefile.am): Likewise.
38661         * modules/atexit (Makefile.am): Likewise.
38662         * modules/backupfile (Makefile.am): Likewise.
38663         * modules/byteswap (Makefile.am): Likewise.
38664         * modules/c-strtod (Makefile.am): Likewise.
38665         * modules/c-strtold (Makefile.am): Likewise.
38666         * modules/calloc (Makefile.am): Likewise.
38667         * modules/canon-host (Makefile.am): Likewise.
38668         * modules/canonicalize (Makefile.am): Likewise.
38669         * modules/chdir-long (Makefile.am): Likewise.
38670         * modules/chdir-safer (Makefile.am): Likewise.
38671         * modules/check-version (Makefile.am): Likewise.
38672         * modules/chown (Makefile.am): Likewise.
38673         * modules/cloexec (Makefile.am): Likewise.
38674         * modules/close-stream (Makefile.am): Likewise.
38675         * modules/closeout (Makefile.am): Likewise.
38676         * modules/crc (Makefile.am): Likewise.
38677         * modules/csharpexec (Makefile.am): Likewise.
38678         * modules/cycle-check (Makefile.am): Likewise.
38679         * modules/des (Makefile.am): Likewise.
38680         * modules/dev-ino (Makefile.am): Likewise.
38681         * modules/dirfd (Makefile.am): Likewise.
38682         * modules/dirname (Makefile.am): Likewise.
38683         * modules/dup2 (Makefile.am): Likewise.
38684         * modules/eealloc (Makefile.am): Likewise.
38685         * modules/error (Makefile.am): Likewise.
38686         * modules/euidaccess (Makefile.am): Likewise.
38687         * modules/exclude (Makefile.am): Likewise.
38688         * modules/exitfail (Makefile.am): Likewise.
38689         * modules/fcntl-safer (Makefile.am): Likewise.
38690         * modules/fcntl (Makefile.am): Likewise.
38691         * modules/file-type (Makefile.am): Likewise.
38692         * modules/fileblocks (Makefile.am): Likewise.
38693         * modules/filemode (Makefile.am): Likewise.
38694         * modules/filenamecat (Makefile.am): Likewise.
38695         * modules/fnmatch (Makefile.am): Likewise.
38696         * modules/fopen-safer (Makefile.am): Likewise.
38697         * modules/fpending (Makefile.am): Likewise.
38698         * modules/fprintftime (Makefile.am): Likewise.
38699         * modules/free (Makefile.am): Likewise.
38700         * modules/fsusage (Makefile.am): Likewise.
38701         * modules/ftruncate (Makefile.am): Likewise.
38702         * modules/fts (Makefile.am): Likewise.
38703         * modules/gc-arcfour (Makefile.am): Likewise.
38704         * modules/gc-des (Makefile.am): Likewise.
38705         * modules/gc-hmac-md5 (Makefile.am): Likewise.
38706         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
38707         * modules/gc-md4 (Makefile.am): Likewise.
38708         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
38709         * modules/gc-sha1 (Makefile.am): Likewise.
38710         * modules/gc (Makefile.am): Likewise.
38711         * modules/getaddrinfo (Makefile.am): Likewise.
38712         * modules/getcwd (Makefile.am): Likewise.
38713         * modules/getdelim (Makefile.am): Likewise.
38714         * modules/getdomainname (Makefile.am): Likewise.
38715         * modules/getgroups (Makefile.am): Likewise.
38716         * modules/gethostname (Makefile.am): Likewise.
38717         * modules/gethrxtime (Makefile.am): Likewise.
38718         * modules/getline (Makefile.am): Likewise.
38719         * modules/getloadavg (Makefile.am): Likewise.
38720         * modules/getlogin_r (Makefile.am): Likewise.
38721         * modules/getndelim2 (Makefile.am): Likewise.
38722         * modules/getopt (Makefile.am): Likewise.
38723         * modules/getpagesize (Makefile.am): Likewise.
38724         * modules/getpass-gnu (Makefile.am): Likewise.
38725         * modules/getpass (Makefile.am): Likewise.
38726         * modules/getsubopt (Makefile.am): Likewise.
38727         * modules/gettime (Makefile.am): Likewise.
38728         * modules/gettimeofday (Makefile.am): Likewise.
38729         * modules/getugroups (Makefile.am): Likewise.
38730         * modules/getusershell (Makefile.am): Likewise.
38731         * modules/glob (Makefile.am): Likewise.
38732         * modules/group-member (Makefile.am): Likewise.
38733         * modules/hard-locale (Makefile.am): Likewise.
38734         * modules/hash (Makefile.am): Likewise.
38735         * modules/hmac-md5 (Makefile.am): Likewise.
38736         * modules/hmac-sha1 (Makefile.am): Likewise.
38737         * modules/human (Makefile.am): Likewise.
38738         * modules/idcache (Makefile.am): Likewise.
38739         * modules/imaxabs (Makefile.am): Likewise.
38740         * modules/imaxdiv (Makefile.am): Likewise.
38741         * modules/inet_ntop (Makefile.am): Likewise.
38742         * modules/inet_pton (Makefile.am): Likewise.
38743         * modules/intprops (Makefile.am): Likewise.
38744         * modules/inttostr (Makefile.am): Likewise.
38745         * modules/inttypes (Makefile.am): Likewise.
38746         * modules/isapipe (Makefile.am): Likewise.
38747         * modules/javaversion (Makefile.am): Likewise.
38748         * modules/lchmod (Makefile.am): Likewise.
38749         * modules/lchown (Makefile.am): Likewise.
38750         * modules/localcharset (Makefile.am): Likewise.
38751         * modules/long-options (Makefile.am): Likewise.
38752         * modules/lstat (Makefile.am): Likewise.
38753         * modules/malloc (Makefile.am): Likewise.
38754         * modules/mathl (Makefile.am): Likewise.
38755         * modules/mbchar (Makefile.am): Likewise.
38756         * modules/md2 (Makefile.am): Likewise.
38757         * modules/md4 (Makefile.am): Likewise.
38758         * modules/md5 (Makefile.am): Likewise.
38759         * modules/memcasecmp (Makefile.am): Likewise.
38760         * modules/memchr (Makefile.am): Likewise.
38761         * modules/memcmp (Makefile.am): Likewise.
38762         * modules/memcoll (Makefile.am): Likewise.
38763         * modules/memcpy (Makefile.am): Likewise.
38764         * modules/memmem (Makefile.am): Likewise.
38765         * modules/memmove (Makefile.am): Likewise.
38766         * modules/mempcpy (Makefile.am): Likewise.
38767         * modules/memrchr (Makefile.am): Likewise.
38768         * modules/memset (Makefile.am): Likewise.
38769         * modules/memxor (Makefile.am): Likewise.
38770         * modules/mkancesdirs (Makefile.am): Likewise.
38771         * modules/mkdir-p (Makefile.am): Likewise.
38772         * modules/mkdir (Makefile.am): Likewise.
38773         * modules/mkdtemp (Makefile.am): Likewise.
38774         * modules/mkstemp (Makefile.am): Likewise.
38775         * modules/mktime (Makefile.am): Likewise.
38776         * modules/modechange (Makefile.am): Likewise.
38777         * modules/mountlist (Makefile.am): Likewise.
38778         * modules/nanosleep (Makefile.am): Likewise.
38779         * modules/obstack (Makefile.am): Likewise.
38780         * modules/openat (Makefile.am): Likewise.
38781         * modules/pagealign_alloc (Makefile.am): Likewise.
38782         * modules/pathmax (Makefile.am): Likewise.
38783         * modules/physmem (Makefile.am): Likewise.
38784         * modules/poll (Makefile.am): Likewise.
38785         * modules/posixtm (Makefile.am): Likewise.
38786         * modules/posixver (Makefile.am): Likewise.
38787         * modules/putenv (Makefile.am): Likewise.
38788         * modules/quote (Makefile.am): Likewise.
38789         * modules/quotearg (Makefile.am): Likewise.
38790         * modules/raise (Makefile.am): Likewise.
38791         * modules/read-file (Makefile.am): Likewise.
38792         * modules/readline (Makefile.am): Likewise.
38793         * modules/readlink (Makefile.am): Likewise.
38794         * modules/readtokens (Makefile.am): Likewise.
38795         * modules/readutmp (Makefile.am): Likewise.
38796         * modules/realloc (Makefile.am): Likewise.
38797         * modules/regex (Makefile.am): Likewise.
38798         * modules/rename-dest-slash (Makefile.am): Likewise.
38799         * modules/rename (Makefile.am): Likewise.
38800         * modules/rijndael (Makefile.am): Likewise.
38801         * modules/rmdir (Makefile.am): Likewise.
38802         * modules/rpmatch (Makefile.am): Likewise.
38803         * modules/safe-read (Makefile.am): Likewise.
38804         * modules/safe-write (Makefile.am): Likewise.
38805         * modules/same-inode (Makefile.am): Likewise.
38806         * modules/same (Makefile.am): Likewise.
38807         * modules/save-cwd (Makefile.am): Likewise.
38808         * modules/savedir (Makefile.am): Likewise.
38809         * modules/setenv (Makefile.am): Likewise.
38810         * modules/settime (Makefile.am): Likewise.
38811         * modules/sha1 (Makefile.am): Likewise.
38812         * modules/sig2str (Makefile.am): Likewise.
38813         * modules/snprintf (Makefile.am): Likewise.
38814         * modules/stat-macros (Makefile.am): Likewise.
38815         * modules/stat-time (Makefile.am): Likewise.
38816         * modules/stdbool (Makefile.am): Likewise.
38817         * modules/stdint (Makefile.am): Likewise.
38818         * modules/stdlib-safer (Makefile.am): Likewise.
38819         * modules/stpcpy (Makefile.am): Likewise.
38820         * modules/stpncpy (Makefile.am): Likewise.
38821         * modules/strcase (Makefile.am): Likewise.
38822         * modules/strcasestr (Makefile.am): Likewise.
38823         * modules/strchrnul (Makefile.am): Likewise.
38824         * modules/strcspn (Makefile.am): Likewise.
38825         * modules/strdup (Makefile.am): Likewise.
38826         * modules/strerror (Makefile.am): Likewise.
38827         * modules/strftime (Makefile.am): Likewise.
38828         * modules/strndup (Makefile.am): Likewise.
38829         * modules/strnlen (Makefile.am): Likewise.
38830         * modules/strpbrk (Makefile.am): Likewise.
38831         * modules/strsep (Makefile.am): Likewise.
38832         * modules/strstr (Makefile.am): Likewise.
38833         * modules/strtod (Makefile.am): Likewise.
38834         * modules/strtoimax (Makefile.am): Likewise.
38835         * modules/strtok_r (Makefile.am): Likewise.
38836         * modules/strtol (Makefile.am): Likewise.
38837         * modules/strtoll (Makefile.am): Likewise.
38838         * modules/strtoul (Makefile.am): Likewise.
38839         * modules/strtoull (Makefile.am): Likewise.
38840         * modules/strtoumax (Makefile.am): Likewise.
38841         * modules/strverscmp (Makefile.am): Likewise.
38842         * modules/sys_socket (Makefile.am): Likewise.
38843         * modules/sys_stat (Makefile.am): Likewise.
38844         * modules/sysexits (Makefile.am): Likewise.
38845         * modules/time_r (Makefile.am): Likewise.
38846         * modules/timegm (Makefile.am): Likewise.
38847         * modules/timespec (Makefile.am): Likewise.
38848         * modules/tmpfile-safer (Makefile.am): Likewise.
38849         * modules/trim (Makefile.am): Likewise.
38850         * modules/unistd-safer (Makefile.am): Likewise.
38851         * modules/unlinkdir (Makefile.am): Likewise.
38852         * modules/unlocked-io (Makefile.am): Likewise.
38853         * modules/userspec (Makefile.am): Likewise.
38854         * modules/utime (Makefile.am): Likewise.
38855         * modules/utimecmp (Makefile.am): Likewise.
38856         * modules/utimens (Makefile.am): Likewise.
38857         * modules/vasnprintf (Makefile.am): Likewise.
38858         * modules/vasprintf (Makefile.am): Likewise.
38859         * modules/vsnprintf (Makefile.am): Likewise.
38860         * modules/xalloc (Makefile.am): Likewise.
38861         * modules/xgetcwd (Makefile.am): Likewise.
38862         * modules/xnanosleep (Makefile.am): Likewise.
38863         * modules/xreadlink (Makefile.am): Likewise.
38864         * modules/xstrtod (Makefile.am): Likewise.
38865         * modules/xstrtol (Makefile.am): Likewise.
38866         * modules/xstrtold (Makefile.am): Likewise.
38867         * modules/yesno (Makefile.am): Likewise.
38868         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
38869
38870 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
38871
38872         * modules/error (Makefile.am): Distribute files through
38873         EXTRA_DIST, not lib_SOURCES.
38874
38875 2006-10-12  Eric Blake  <ebb9@byu.net>
38876
38877         * modules/error (Makefile.am): Distribute files in /lib.
38878         * modules/obstack (Makefile.am): Likewise.
38879
38880 2006-10-12  Bruno Haible  <bruno@clisp.org>
38881
38882         * modules/acl (Makefile.am): Distribute all files in lib/ through
38883         EXTRA_DIST.
38884         * modules/arcfour (Makefile.am): Likewise.
38885         * modules/arctwo (Makefile.am): Likewise.
38886         * modules/argmatch (Makefile.am): Likewise.
38887         * modules/argz (Makefile.am): Likewise.
38888         * modules/atexit (Makefile.am): Likewise.
38889         * modules/backupfile (Makefile.am): Likewise.
38890         * modules/c-strtod (Makefile.am): Likewise.
38891         * modules/c-strtold (Makefile.am): Likewise.
38892         * modules/calloc (Makefile.am): Likewise.
38893         * modules/canon-host (Makefile.am): Likewise.
38894         * modules/canonicalize (Makefile.am): Likewise.
38895         * modules/chdir-long (Makefile.am): Likewise.
38896         * modules/chdir-safer (Makefile.am): Likewise.
38897         * modules/check-version (Makefile.am): Likewise.
38898         * modules/chown (Makefile.am): Likewise.
38899         * modules/cloexec (Makefile.am): Likewise.
38900         * modules/close-stream (Makefile.am): Likewise.
38901         * modules/closeout (Makefile.am): Likewise.
38902         * modules/crc (Makefile.am): Likewise.
38903         * modules/cycle-check (Makefile.am): Likewise.
38904         * modules/des (Makefile.am): Likewise.
38905         * modules/dirfd (Makefile.am): Likewise.
38906         * modules/dirname (Makefile.am): Likewise.
38907         * modules/dup2 (Makefile.am): Likewise.
38908         * modules/euidaccess (Makefile.am): Likewise.
38909         * modules/exclude (Makefile.am): Likewise.
38910         * modules/exitfail (Makefile.am): Likewise.
38911         * modules/fcntl-safer (Makefile.am): Likewise.
38912         * modules/file-type (Makefile.am): Likewise.
38913         * modules/fileblocks (Makefile.am): Likewise.
38914         * modules/filemode (Makefile.am): Likewise.
38915         * modules/filenamecat (Makefile.am): Likewise.
38916         * modules/fnmatch (Makefile.am): Likewise.
38917         * modules/fopen-safer (Makefile.am): Likewise.
38918         * modules/fpending (Makefile.am): Likewise.
38919         * modules/fprintftime (Makefile.am): Likewise.
38920         * modules/free (Makefile.am): Likewise.
38921         * modules/fsusage (Makefile.am): Likewise.
38922         * modules/ftruncate (Makefile.am): Likewise.
38923         * modules/fts (Makefile.am): Likewise.
38924         * modules/gc (Makefile.am): Likewise.
38925         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
38926         * modules/getaddrinfo (Makefile.am): Likewise.
38927         * modules/getcwd (Makefile.am): Likewise.
38928         * modules/getdelim (Makefile.am): Likewise.
38929         * modules/getdomainname (Makefile.am): Likewise.
38930         * modules/getgroups (Makefile.am): Likewise.
38931         * modules/gethostname (Makefile.am): Likewise.
38932         * modules/gethrxtime (Makefile.am): Likewise.
38933         * modules/getline (Makefile.am): Likewise.
38934         * modules/getloadavg (Makefile.am): Likewise.
38935         * modules/getlogin_r (Makefile.am): Likewise.
38936         * modules/getopt (Makefile.am): Likewise.
38937         * modules/getpass (Makefile.am): Likewise.
38938         * modules/getpass-gnu (Makefile.am): Likewise.
38939         * modules/getsubopt (Makefile.am): Likewise.
38940         * modules/gettime (Makefile.am): Likewise.
38941         * modules/gettimeofday (Makefile.am): Likewise.
38942         * modules/getugroups (Makefile.am): Likewise.
38943         * modules/getusershell (Makefile.am): Likewise.
38944         * modules/glob (Makefile.am): Likewise.
38945         * modules/group-member (Makefile.am): Likewise.
38946         * modules/hard-locale (Makefile.am): Likewise.
38947         * modules/hash (Makefile.am): Likewise.
38948         * modules/hmac-md5 (Makefile.am): Likewise.
38949         * modules/hmac-sha1 (Makefile.am): Likewise.
38950         * modules/human (Makefile.am): Likewise.
38951         * modules/idcache (Makefile.am): Likewise.
38952         * modules/imaxabs (Makefile.am): Likewise.
38953         * modules/imaxdiv (Makefile.am): Likewise.
38954         * modules/inet_ntop (Makefile.am): Likewise.
38955         * modules/inet_pton (Makefile.am): Likewise.
38956         * modules/inttostr (Makefile.am): Likewise.
38957         * modules/isapipe (Makefile.am): Likewise.
38958         * modules/lchown (Makefile.am): Likewise.
38959         * modules/long-options (Makefile.am): Likewise.
38960         * modules/lstat (Makefile.am): Likewise.
38961         * modules/malloc (Makefile.am): Likewise.
38962         * modules/mathl (Makefile.am): Likewise.
38963         * modules/mbchar (Makefile.am): Likewise.
38964         * modules/md2 (Makefile.am): Likewise.
38965         * modules/md4 (Makefile.am): Likewise.
38966         * modules/md5 (Makefile.am): Likewise.
38967         * modules/memcasecmp (Makefile.am): Likewise.
38968         * modules/memchr (Makefile.am): Likewise.
38969         * modules/memcmp (Makefile.am): Likewise.
38970         * modules/memcoll (Makefile.am): Likewise.
38971         * modules/memcpy (Makefile.am): Likewise.
38972         * modules/memmem (Makefile.am): Likewise.
38973         * modules/memmove (Makefile.am): Likewise.
38974         * modules/mempcpy (Makefile.am): Likewise.
38975         * modules/memrchr (Makefile.am): Likewise.
38976         * modules/memset (Makefile.am): Likewise.
38977         * modules/memxor (Makefile.am): Likewise.
38978         * modules/mkancesdirs (Makefile.am): Likewise.
38979         * modules/mkdir (Makefile.am): Likewise.
38980         * modules/mkdir-p (Makefile.am): Likewise.
38981         * modules/mkdtemp (Makefile.am): Likewise.
38982         * modules/mkstemp (Makefile.am): Likewise.
38983         * modules/mktime (Makefile.am): Likewise.
38984         * modules/modechange (Makefile.am): Likewise.
38985         * modules/mountlist (Makefile.am): Likewise.
38986         * modules/nanosleep (Makefile.am): Likewise.
38987         * modules/openat (Makefile.am): Likewise.
38988         * modules/pagealign_alloc (Makefile.am): Likewise.
38989         * modules/physmem (Makefile.am): Likewise.
38990         * modules/poll (Makefile.am): Likewise.
38991         * modules/posixtm (Makefile.am): Likewise.
38992         * modules/posixver (Makefile.am): Likewise.
38993         * modules/putenv (Makefile.am): Likewise.
38994         * modules/quote (Makefile.am): Likewise.
38995         * modules/quotearg (Makefile.am): Likewise.
38996         * modules/raise (Makefile.am): Likewise.
38997         * modules/read-file (Makefile.am): Likewise.
38998         * modules/readline (Makefile.am): Likewise.
38999         * modules/readlink (Makefile.am): Likewise.
39000         * modules/readtokens (Makefile.am): Likewise.
39001         * modules/readutmp (Makefile.am): Likewise.
39002         * modules/realloc (Makefile.am): Likewise.
39003         * modules/regex (Makefile.am): Likewise.
39004         * modules/rename (Makefile.am): Likewise.
39005         * modules/rename-dest-slash (Makefile.am): Likewise.
39006         * modules/rijndael (Makefile.am): Likewise.
39007         * modules/rmdir (Makefile.am): Likewise.
39008         * modules/rpmatch (Makefile.am): Likewise.
39009         * modules/safe-read (Makefile.am): Likewise.
39010         * modules/safe-write (Makefile.am): Likewise.
39011         * modules/same (Makefile.am): Likewise.
39012         * modules/save-cwd (Makefile.am): Likewise.
39013         * modules/savedir (Makefile.am): Likewise.
39014         * modules/setenv (Makefile.am): Likewise.
39015         * modules/settime (Makefile.am): Likewise.
39016         * modules/sha1 (Makefile.am): Likewise.
39017         * modules/sig2str (Makefile.am): Likewise.
39018         * modules/snprintf (Makefile.am): Likewise.
39019         * modules/stdlib-safer (Makefile.am): Likewise.
39020         * modules/stpcpy (Makefile.am): Likewise.
39021         * modules/stpncpy (Makefile.am): Likewise.
39022         * modules/strcase (Makefile.am): Likewise.
39023         * modules/strcasestr (Makefile.am): Likewise.
39024         * modules/strchrnul (Makefile.am): Likewise.
39025         * modules/strcspn (Makefile.am): Likewise.
39026         * modules/strdup (Makefile.am): Likewise.
39027         * modules/strerror (Makefile.am): Likewise.
39028         * modules/strftime (Makefile.am): Likewise.
39029         * modules/strndup (Makefile.am): Likewise.
39030         * modules/strnlen (Makefile.am): Likewise.
39031         * modules/strpbrk (Makefile.am): Likewise.
39032         * modules/strsep (Makefile.am): Likewise.
39033         * modules/strstr (Makefile.am): Likewise.
39034         * modules/strtod (Makefile.am): Likewise.
39035         * modules/strtoimax (Makefile.am): Likewise.
39036         * modules/strtok_r (Makefile.am): Likewise.
39037         * modules/strtol (Makefile.am): Likewise.
39038         * modules/strtoll (Makefile.am): Likewise.
39039         * modules/strtoul (Makefile.am): Likewise.
39040         * modules/strtoull (Makefile.am): Likewise.
39041         * modules/strtoumax (Makefile.am): Likewise.
39042         * modules/strverscmp (Makefile.am): Likewise.
39043         * modules/time_r (Makefile.am): Likewise.
39044         * modules/timegm (Makefile.am): Likewise.
39045         * modules/tmpfile-safer (Makefile.am): Likewise.
39046         * modules/unistd-safer (Makefile.am): Likewise.
39047         * modules/unlinkdir (Makefile.am): Likewise.
39048         * modules/userspec (Makefile.am): Likewise.
39049         * modules/utime (Makefile.am): Likewise.
39050         * modules/utimecmp (Makefile.am): Likewise.
39051         * modules/utimens (Makefile.am): Likewise.
39052         * modules/vasnprintf (Makefile.am): Likewise.
39053         * modules/vasprintf (Makefile.am): Likewise.
39054         * modules/vsnprintf (Makefile.am): Likewise.
39055         * modules/xalloc (Makefile.am): Likewise.
39056         * modules/xgetcwd (Makefile.am): Likewise.
39057         * modules/xnanosleep (Makefile.am): Likewise.
39058         * modules/xreadlink (Makefile.am): Likewise.
39059         * modules/xstrtod (Makefile.am): Likewise.
39060         * modules/xstrtol (Makefile.am): Likewise.
39061         * modules/xstrtold (Makefile.am): Likewise.
39062         * modules/yesno (Makefile.am): Likewise.
39063
39064 2006-10-12  Jim Meyering  <jim@meyering.net>
39065
39066         * m4/getloadavg.m4: Revert the change below.
39067
39068         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
39069         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
39070         fail with a symlink, which is what coreutils' ./bootstrap now
39071         creates by default.
39072
39073 2006-10-12  Bruno Haible  <bruno@clisp.org>
39074
39075         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
39076         mingw.
39077         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
39078         MSVC and mingw explicitly.
39079
39080 2006-10-11  Simon Josefsson  <jas@extundo.com>
39081             Bruno Haible  <bruno@clisp.org>
39082
39083         Add support for multiple gnulib-tool invocations in the scope of a
39084         single configure.ac file.
39085         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
39086         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
39087         with the same contents as the _LIBADD variable.
39088         (func_emit_initmacro_start, func_emit_initmacro_end,
39089         func_emit_initmacro_done): New functions.
39090         (func_import, func_create_testdir): Invoke them. Allow the identifiers
39091         gl_LIBOBJS and gl_LTLIBOBJS.
39092
39093 2006-10-11  Bruno Haible  <bruno@clisp.org>
39094
39095         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
39096         (func_create_testdir): Don't create po/Makefile.am, don't invoke
39097         autoreconf. Instead, invoke autopoint explicitly but move back the
39098         *.m4 files from gnulib.
39099
39100 2006-10-11  Bruno Haible  <bruno@clisp.org>
39101
39102         * gnulib-tool (func_usage): Make module names after --create-testdir
39103         optional.
39104         (func_create_testdir): If no module was specified, use nearly all
39105         modules.
39106
39107 2006-10-12  Jim Meyering  <jim@meyering.net>
39108
39109         Big performance improvement for fts-based tools that use FTS_NOSTAT.
39110         Avoid spurious inode-mismatch problems on non-POSIX file systems.
39111         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
39112         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
39113         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
39114         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
39115         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
39116         (fts_set_stat_required): New function.
39117         (fts_open): Defer the calls to fts_stat, if possible or requested.
39118         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
39119         into fts_stat itself.
39120         (fts_read): Perform any required (deferred) fts_stat call.
39121         (fts_build): Likewise, for the directory we're about to open and read.
39122         In the readdir loop, carefully decide whether each entry will require
39123         an eventual call to fts_stat, using dirent.d_type info if available.
39124         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
39125         a command line argument into this function.  Update all callers.
39126         Map a return value of FTS_DOT to FTS_D for a command line argument.
39127         * modules/fts (Depends-on): Add d-type.  Alphabetize.
39128         Thanks to Miklos Szeredi for his tenacity and for the initial
39129         bug report about "find" failing on a FUSE-based file system.
39130
39131         * lib/fts.c (fts_open): Use consistent indentation.
39132
39133 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
39134
39135         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
39136         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
39137         reported by Jim Meyering.  All uses of cache variables renamed
39138         to match Autoconf's.
39139         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
39140         the other one.
39141
39142         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
39143         Fix misspelling in diagnostic.
39144
39145 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
39146
39147         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
39148         defined.  Problem reported by Matthew Woehlke.
39149
39150         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
39151         Add support for Tandem NonStop R series.
39152         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
39153         Use new macro.
39154
39155         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
39156         (has_trailing_slash): Omit size arg; all callers changed.
39157         Omit 'inline', since it doesn't help performance and we'd
39158         need to configure it.
39159         Don't count //, ///, etc. as having a trailing slash.
39160         As a side effect, this removes a C99ism reported by Matthew Woehlke.
39161         (rpl_rename_dest_slash): On failure, use rename's errno rather
39162         than (in some cases) an incorrect or junk errno.
39163         Simplify code by removing need to compute length; this does
39164         cause it to make two passes instead of one over the file name,
39165         but it's worth it.
39166
39167         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
39168         change, since Autoconf's version may no longer be appropriate now
39169         that we are using CVS Autoconf's version.  Add support for Tandem.
39170
39171 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
39172             Bruno Haible  <bruno@clisp.org>
39173
39174         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
39175         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
39176         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
39177         gl_AC_TYPE_LONG_LONG.
39178
39179         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
39180         instead of HAVE_LONG_LONG.
39181         * lib/printf-args.c (printf_fetchargs): Likewise.
39182         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
39183         * lib/vasnprintf.c (VASNPRINTF): Likewise.
39184         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
39185         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
39186         gl_AC_TYPE_LONG_LONG.
39187
39188 2006-10-11  Bruno Haible  <bruno@clisp.org>
39189
39190         * m4/longlong.m4: Add comments.
39191         * m4/ulonglong.m4: Likewise.
39192
39193 2006-10-10  Bruno Haible  <bruno@clisp.org>
39194
39195         Make it possible to #define stpcpy, strdup to aliases.
39196         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
39197         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
39198
39199 2006-10-10  Bruno Haible  <bruno@clisp.org>
39200
39201         Make it possible to #define gcd to an alias.
39202         * lib/gcd.c: Include config.h.
39203
39204 2006-10-10  Bruno Haible  <bruno@clisp.org>
39205
39206         Make it possible to #define c_isascii to an alias.
39207         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
39208         defined. Undefine the macros before defining them, to avoid gcc
39209         warnings.
39210         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
39211         define NO_C_CTYPE_MACROS early.
39212
39213 2006-10-10  Bruno Haible  <bruno@clisp.org>
39214
39215         Make it possible to #define set_program_name to an alias.
39216         * lib/progname.c: Don't undefine set_program_name; instead, undefine
39217         ENABLE_RELOCATABLE early.
39218
39219 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
39220
39221         Port to Tandem NSK OSS, which has 64-bit signed int but at most
39222         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
39223         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
39224         More generally, don't assume that 64-bit signed int is available
39225         if unsigned int is, and vice versa.
39226         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
39227         unsigned symbols, not on their signed counterparts.
39228         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
39229         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
39230         (UINT64_C, UINTMAX_C):
39231         Likewise.
39232         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
39233         unsigned counterparts.
39234         (Have_long_long, Unsigned): New macros.
39235         (Int): Renamed from INT.
39236         (strtoimax): Use the new macros.
39237         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
39238         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
39239         * modules/inttypes (inttypes.h): Substitute
39240         HAVE_UNSIGNED_LONG_LONG_INT.
39241         * modules/stdint (stdint.h): Likewise.
39242         (Files): Add m4/ulonglong.m4.
39243
39244 2006-10-10  Bruno Haible  <bruno@clisp.org>
39245
39246         Fix a gcc -Wshadow warning.
39247         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
39248         to 'bucket'.
39249         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
39250         gl_linked_indexof_from_to): Likewise.
39251         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
39252         Likewise.
39253         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
39254         Likewise.
39255         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
39256         Reported by Eric Blake.
39257
39258 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
39259
39260         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
39261         for NetBSD.  Problem reported by Bruno Haible.
39262
39263 2006-10-09  Jim Meyering  <jim@meyering.net>
39264
39265         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
39266         Patch from Bruno Haible.
39267
39268 2006-10-09  Jim Meyering  <jim@meyering.net>
39269
39270         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
39271         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
39272         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
39273
39274 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
39275
39276         Don't include <config.h> twice; this doesn't work in some cases,
39277         e.g., when config.h has "#define intmax_t long long int" and
39278         we include <config.h>, <inttypes.h>, <config.h> in that order.
39279         Problem reported by Matthew Woehlke in:
39280         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
39281         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
39282         * lib/fts-cycle.c: Don't include config.h.
39283         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
39284         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
39285         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
39286         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
39287         inttypes.h.
39288         * lib/xstrtoumax.c: Likewise.
39289         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
39290         __strtol and the like, so that this module is more like its siblings.
39291         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
39292         Remove; no longer needed now that we assume gnulib inttypes.h.
39293
39294 2006-10-08  Bruno Haible  <bruno@clisp.org>
39295
39296         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
39297         option.
39298
39299 2006-10-07  Jim Meyering  <jim@meyering.net>
39300
39301         * modules/inttypes (inttypes.h): Revert what seems to have been
39302         an inadvertent part of today's change: use "|", not "/" in the
39303         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
39304
39305 2006-10-07  Bruno Haible  <bruno@clisp.org>
39306
39307         * modules/sublist: New file.
39308
39309 2006-10-07  Bruno Haible  <bruno@clisp.org>
39310
39311         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
39312         * modules/argz (argz.h): Likewise.
39313         * modules/arpa_inet (arpa/inet.h): Likewise.
39314         * modules/byteswap (byteswap.h): Likewise.
39315         * modules/configmake (configmake.h): Likewise.
39316         * modules/fcntl (fcntl.h): Likewise.
39317         * modules/fnmatch (fnmatch.h): Likewise.
39318         * modules/getopt (getopt.h): Likewise.
39319         * modules/glob (glob.h): Likewise.
39320         * modules/inttypes (inttypes.h): Likewise.
39321         * modules/netinet_in (netinet/in.h): Likewise.
39322         * modules/poll (poll.h): Likewise.
39323         * modules/stdbool (stdbool.h): Likewise.
39324         * modules/stdint (stdint.h): Likewise.
39325         * modules/sys_select (sys/select.h): Likewise.
39326         * modules/sys_socket (sys/socket.h): Likewise.
39327         * modules/sys_stat (sys/stat.h): Likewise.
39328         * modules/sysexits (sysexits.h): Likewise.
39329         * modules/unistd (unistd.h): Likewise.
39330         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39331         Add a "DO NOT EDIT" comment to the generated file.
39332         (func_import): Likewise for gnulib-comp.m4.
39333
39334 2006-10-07  Bruno Haible  <bruno@clisp.org>
39335
39336         * lib/gl_sublist.h: New file.
39337         * lib/gl_sublist.c: New file.
39338
39339 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
39340
39341         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
39342         name (relative to the original working directory) and the file
39343         name component (relative to the temporary working directory).  All
39344         callers changed.
39345         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
39346         * lib/mkdir-p.c (make_dir_parents): Likewise.
39347         * lib/mkdir-p.h (make_dir_parents): Likewise.
39348
39349 2006-10-06  Eric Blake  <ebb9@byu.net>
39350
39351         Define several macros for use by the clean-temp module.
39352         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
39353         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
39354         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
39355
39356         * lib/clean-temp.h (close_stream_temp): New declaration.
39357         * lib/clean-temp.c (includes): Pull in headers according to what
39358         other modules are in use.
39359         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
39360
39361 2006-10-06  Bruno Haible  <bruno@clisp.org>
39362
39363         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
39364         instead of fopen, fwriteerror.
39365
39366 2006-10-06  Bruno Haible  <bruno@clisp.org>
39367
39368         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
39369         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
39370         int.
39371         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
39372         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
39373         Return an error indicator.
39374         Suggested by Eric Blake.
39375
39376 2006-10-06  Bruno Haible  <bruno@clisp.org>
39377
39378         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
39379         Reported by Eric Blake.
39380
39381 2006-10-06  Bruno Haible  <bruno@clisp.org>
39382
39383         * modules/closeout (Description): Mention stderr too.
39384
39385 2006-10-06  Bruno Haible  <bruno@clisp.org>
39386         and Paul Eggert  <eggert@cs.ucla.edu>
39387
39388         * lib/closeout.c (close_stdout): Also close stderr.
39389         * lib/closeout.h: Update comment.
39390
39391 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
39392
39393         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
39394         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
39395         * lib/dirchownmod.c: Include lchown.h.
39396         * lib/lchown.c: Don't include files that lchown.h now includes.
39397         Don't declare chown, since lchown.h now does that.
39398         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
39399         (lchown): Define to rpl_chown if lchown is declared but
39400         does not exist.  Declare using a prototype if lchown is not
39401         declared.  Add a copyright notice.
39402         * lib/mkstemp.h: Include <unistd.h>.
39403         * lib/openat.c: Include lchown.h.
39404
39405         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
39406         we now test for that separately.
39407         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
39408         rather than O_NOFOLLOW, when testing whether it's possible to
39409         avoid a race condition reliably.
39410         * lib/savewd.c (savewd_chdir): Likewise.
39411
39412         Remove macros that are no longer needed now that stdint.h is
39413         reliable.
39414         * lib/fsusage.c (UINTMAX_MAX): Remove.
39415         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
39416         * lib/utimecmp.c (SIZE_MAX): Remove.
39417
39418         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
39419
39420         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
39421         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
39422         O_NOATIME works.
39423
39424 2006-10-05  Bruno Haible  <bruno@clisp.org>
39425
39426         * lib/gl_list.h (gl_sortedlist_search_from_to,
39427         gl_sortedlist_indexof_from_to): New declarations.
39428         (gl_list_implementation): New fields sortedlist_search_from_to,
39429         sortedlist_indexof_from_to.
39430         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
39431         inline functions.
39432         * lib/gl_list.c (gl_sortedlist_search_from_to,
39433         gl_sortedlist_indexof_from_to): New functions.
39434         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
39435         function.
39436         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
39437         (gl_array_sortedlist_search_from_to): New function.
39438         (gl_array_list_implementation): Update.
39439         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
39440         function.
39441         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
39442         (gl_carray_sortedlist_search_from_to): New function.
39443         (gl_carray_list_implementation): Update.
39444         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
39445         gl_linked_sortedlist_indexof_from_to): New functions.
39446         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
39447         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
39448         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
39449         gl_tree_sortedlist_indexof_from_to): New functions.
39450         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
39451         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
39452         Update.
39453         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
39454         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
39455         Update.
39456
39457 2006-10-05  Bruno Haible  <bruno@clisp.org>
39458
39459         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
39460         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
39461         (struct gl_list_implementation): Add fields search_from_to,
39462         indexof_from_to. Remove fields search, indexof.
39463         (gl_list_search): Use the search_from_to method.
39464         (gl_list_search_from, gl_list_search_from_to): New functions.
39465         (gl_list_indexof): Use the indexof_from_to method.
39466         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
39467         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
39468         (gl_list_search_from, gl_list_search_from_to): New functions.
39469         (gl_list_indexof): Use the indexof_from_to method.
39470         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
39471         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
39472         gl_array_indexof. Add start_index, end_index arguments.
39473         (gl_array_search_from_to): Renamed from gl_array_search. Add
39474         start_index, end_index arguments.
39475         (gl_array_remove, gl_array_list_implementation): Update.
39476         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
39477         gl_carray_indexof. Add start_index, end_index arguments.
39478         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
39479         start_index, end_index arguments.
39480         (gl_carray_remove, gl_carray_list_implementation): Update.
39481         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
39482         gl_linked_search. Add start_index, end_index arguments.
39483         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
39484         start_index, end_index arguments.
39485         (gl_linked_remove): Update.
39486         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
39487         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
39488         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
39489         field to 'size_t'.
39490         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
39491         gl_tree_search. Add start_index, end_index arguments.
39492         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
39493         start_index, end_index arguments.
39494         (gl_tree_remove): Update.
39495         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
39496         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
39497         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
39498         function.
39499         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
39500         gl_tree_search. Add start_index, end_index arguments.
39501         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
39502         start_index, end_index arguments.
39503         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
39504         Update.
39505         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
39506
39507 2006-10-05  Bruno Haible  <bruno@clisp.org>
39508
39509         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
39510
39511         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
39512         fwriteerror_temp): New declarations.
39513         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
39514         (descriptors): New variable.
39515         (cleanup): First, close the descriptors.
39516         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
39517         fclose_temp, fwriteerror_temp): New functions.
39518
39519 2006-10-04  Jim Meyering  <jim@meyering.net>
39520
39521         * lib/fts.c (fts_open): Tiny comment change.
39522
39523 2006-10-04  Bruno Haible  <bruno@clisp.org>
39524
39525         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
39526         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
39527         gl_LOCK_BODY.
39528         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
39529         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
39530         gl_LOCK_EARLY_BODY.
39531         (gl_LOCK): Require gl_LOCK_BODY.
39532
39533 2006-10-04  Bruno Haible  <bruno@clisp.org>
39534
39535         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
39536         (gl_oset_search_atleast): New declaration.
39537         (struct gl_oset_implementation): Add field 'search_atleast'.
39538         (gl_oset_search_atleast): New inline function.
39539         * lib/gl_oset.c (gl_oset_search_atleast): New function.
39540         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
39541         (gl_array_oset_implementation): Update.
39542         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
39543         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
39544         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
39545
39546 2006-10-04  Bruno Haible  <bruno@clisp.org>
39547
39548         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
39549
39550 2006-10-03  Bruno Haible  <bruno@clisp.org>
39551
39552         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
39553         from gl_avltreehash_list_implementation.
39554
39555 2006-10-03  Bruno Haible  <bruno@clisp.org>
39556
39557         * lib/gl_oset.c (gl_oset_add): Fix return type.
39558
39559 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
39560
39561         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
39562
39563 2006-10-02  Eric Blake  <ebb9@byu.net>
39564
39565         * modules/strnlen (Depends-on): Add extensions.
39566
39567 2006-10-02  Eric Blake  <ebb9@byu.net>
39568
39569         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
39570         definition in 2.60+.
39571
39572 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
39573
39574         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
39575         checks.
39576
39577 2006-10-02  Bruno Haible  <bruno@clisp.org>
39578
39579         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
39580         to the AUTOMAKE_OPTIONS.
39581         Reported by Jim Meyering.
39582
39583 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
39584
39585         Work around bug in Solaris 10 /proc file system:
39586         /proc/self/fd/NNN/.. isn't the parent directory of
39587         the directory whose file descriptor is NNN.  This needs to
39588         be worked around at run time, not compile time, since a
39589         program might be built on Solaris 8, where things work, and
39590         run on Solaris 10.
39591         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
39592         to use the following interface instead:
39593         (OPENAT_BUFFER_SIZE): New macro.
39594         (openat_proc_name): New function.
39595         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
39596         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
39597         Likewise.
39598         * lib/openat-proc.c: New file.
39599         * modules/openat (Files): Add lib/openat-proc.c.
39600         (Depends-on): Add same-inode, stdbool.
39601         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
39602
39603 2006-09-29  Bruno Haible  <bruno@clisp.org>
39604
39605         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
39606         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
39607         argument. Set stdout_closed before testing for ferror, not after.
39608         (fwriteerror, fwriteerror_no_ebadf): New functions.
39609
39610 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39611
39612         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
39613
39614 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
39615
39616         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
39617         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
39618
39619 2006-09-28  Jim Meyering  <jim@meyering.net>
39620
39621         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
39622         Include <unistd.h>.
39623
39624 2006-09-28  Bruno Haible  <bruno@clisp.org>
39625
39626         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
39627         * modules/linkedhash-list (Depends-on): Likewise.
39628         * modules/rbtreehash-list (Depends-on): Likewise.
39629
39630 2006-09-28  Bruno Haible  <bruno@clisp.org>
39631
39632         * lib/strndup.h: Simplify the redefinition of strndup.
39633         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
39634         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
39635
39636 2006-09-28  Bruno Haible  <bruno@clisp.org>
39637
39638         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
39639         * lib/gl_linkedhash_list.c: Likewise.
39640         * lib/gl_rbtreehash_list.c: Likewise.
39641
39642 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
39643
39644         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
39645         getaddrinfo.
39646
39647         * lib/__fpending.h: Don't include <stdio_ext.h> unless
39648         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
39649         it causes <stdio_ext.h> to cause a compile-time error.
39650         Problem reported by Nelson H. F. Beebe.
39651         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
39652         of HAVE_DECL___PENDING.
39653
39654         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
39655         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
39656         declaration.
39657
39658 2006-09-27  Jim Meyering  <jim@meyering.net>
39659
39660         This file could end up with a definition for a function
39661         named __strndup, rather than rpl_strndup on a system with
39662         incomplete weak_alias support.
39663         * lib/strndup.c (strndup): Rename from __strndup.
39664         Remove #defines that used to map __strndup to strndup.
39665         Don't use K&R prototypes.
39666         Remove LIBC-related code, since this file is not sync'd with glibc.
39667         * lib/strndup.h: Revamp, accordingly.
39668         * m4/strndup.m4: Modernize.
39669
39670 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
39671
39672         * modules/savewd (Depends-on): Add 'raise'.
39673         * lib/savewd.c: Include <signal.h>, for 'raise'.
39674
39675 2006-09-26  Jim Meyering  <jim@meyering.net>
39676
39677         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
39678         when we detect Darwin 8.7.0's acl_get_file bug.
39679         Rearrange to perform the new (below) run-test while $LIBS
39680         contains any acl-related library.  Set USE_ACL at the end.
39681         (gl_ACL_GET_FILE): New function.
39682
39683 2006-09-26  Eric Blake  <ebb9@byu.net>
39684
39685         * lib/verror.c: Include <config.h> unconditionally.
39686
39687 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
39688
39689         * modules/clock-time (Maintainer): Add self.
39690         * modules/getlogin_r (Depends-on): Add extensions.
39691
39692 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39693
39694         * modules/clock-time: New module.
39695         * modules/nanosleep (Depends-on): Add clock-time.
39696         * modules/gethrxtime (Depends-on): Likewise.
39697         * modules/gettime (Depends-on): Likewise.
39698         * modules/settime (Depends-on): Likewise.
39699
39700         * modules/fts-lgpl: Depend on openat.
39701         * modules/mkancesdirs: Depend on savewd.
39702         * modules/mkdir-p: Likewise.
39703
39704 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39705
39706         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
39707
39708         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
39709         `gl_have_arbitrary_file_name_length_limit' to
39710         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
39711         actually works between configure runs.
39712
39713 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39714             Bruno Haible  <bruno@clisp.org>
39715
39716         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
39717
39718 2006-09-25  Jim Meyering  <jim@meyering.net>
39719
39720         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
39721         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
39722
39723 2006-09-25  Eric Blake  <ebb9@byu.net>
39724
39725         * gnulib-tool (func_import, func_create_testdir): Fix typos in
39726         exec's in 2006-09-18 patch when shuffling fds.
39727
39728 2006-09-25  Bruno Haible  <bruno@clisp.org>
39729
39730         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
39731         Reported by Jim Meyering.
39732
39733 2006-09-24  Jim Meyering  <jim@meyering.net>
39734
39735         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
39736         compare a pointer against a literal "0".  That caused failures with
39737         at least HP-UX's hpcc.
39738
39739 2006-09-22  Simon Josefsson  <jas@extundo.com>
39740
39741         * modules/gc-sha1:
39742         * modules/gc-md4:
39743         * modules/gc-hmac-sha1:
39744         * modules/gc-hmac-md5:
39745         * modules/gc-des:
39746         * modules/gc-arcfour: Distribute more files.
39747
39748 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39749
39750         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
39751         (gl_linked_iterator_from_to): Initialize struct completely.
39752         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
39753         (gl_tree_iterator_from_to): Likewise
39754         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
39755         * lib/gl_array_list.c [lint] (gl_array_iterator)
39756         (gl_array_iterator_from_to): Likewise.
39757         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
39758         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
39759         (gl_carray_iterator_from_to): Likewise.
39760
39761         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
39762         * lib/md4.c (md4_process_block): Remove unused variable.
39763         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
39764         parentheses for clarity.
39765
39766 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39767
39768         * modules/bison-i18n (Depends-on): Add gettext.
39769
39770 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39771
39772         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
39773         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
39774         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
39775         also add missing comma that caused broken test.
39776         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
39777         stdlib.h, for `abort'.
39778         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
39779         variables.
39780         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
39781         include unistd.h if present, for `rmdir'.
39782         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
39783         variables.
39784         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
39785         in the process include standard headers for prototypes.
39786         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
39787         gets declared on GNU/Linux.
39788         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
39789         unistd.h, for `rmdir'.
39790         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
39791
39792         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
39793         always true.
39794         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
39795
39796         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
39797
39798 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39799
39800         * gnulib-tool (func_version): Create output all at once.  This
39801         may help avoid triggering unnecessary SIGPIPEs, and at any
39802         rate it doesn't hurt.
39803
39804 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39805             Bruno Haible  <bruno@clisp.org>
39806
39807         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
39808         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39809         * m4/signed.m4 (bh_C_SIGNED): Likewise.
39810
39811         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
39812         (gl_FUNC_VASPRINTF): Invoke it.
39813
39814 2006-09-22  Bruno Haible  <bruno@clisp.org>
39815
39816         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
39817         getloadavg.c as first argument.
39818
39819 2006-09-22  Bruno Haible  <bruno@clisp.org>
39820
39821         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
39822         at the beginning of the gl_INIT macro.
39823         * modules/getloadavg (configure.ac): Pass $gl_source_base to
39824         gl_GETLOADAVG.
39825
39826 2006-09-22  Bruno Haible  <bruno@clisp.org>
39827
39828         * gnulib-tool (func_create_megatestdir): Don't include the config-h
39829         module.
39830         Suggested by Ralf Wildenhues.
39831
39832 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
39833
39834         Import this patch from libc:
39835
39836         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
39837
39838         * lib/regex_internal.c (re_string_reconstruct): Handle
39839         offset < pstr->valid_raw_len && pstr->offsets_needed case.
39840         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
39841         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
39842         re_string_context_at.
39843
39844         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
39845         now requires it.
39846         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
39847         gl_REGEX now does it for us.
39848         (gl_REGEX): Add test taken from
39849         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
39850
39851         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
39852         Check that large offsets work.  Modernize Autoconf usages.
39853         Prefer "yes" to mean a good thing rather than a bad.
39854         Don't put "#define mkstemp" in config.h, as this might interfere
39855         with standard system headers that "#define mkstemp mkstemp64".
39856
39857         * modules/mkstemp (Depends-on): Add extensions, so that
39858         mkstemp is visible on some platforms.
39859         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
39860         (Include): Change to "mkstemp.h" from <stdlib.h>.
39861         (Files): Add mkstemp.h.
39862
39863         * lib/mkstemp.h: New file, since some standard headers
39864         #define mkstemp.
39865         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
39866         Include "mkstemp.h".
39867         Make the _LIBC code resemble glibc original more,
39868         e.g., use K&R style.
39869         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
39870         (mkstemp): Remove, since mkstemp.h does this for us.
39871         * lib/stdlib--.h: Include mkstemp.h.
39872
39873         Import this patch from libc:
39874
39875         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
39876
39877         * lib/tempname.c (__gen_tempname): Change attempts_min
39878         into a macro.  Use preprocessor to decide how to initialize
39879         attempts [Coverity CID 67].
39880
39881 2006-09-20  Bruno Haible  <bruno@clisp.org>
39882
39883         * lib/mkdtemp.c: Import from libc.
39884         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
39885                 * sysdeps/posix/tempname.c (__gen_tempname): Change
39886                 attempts_min into a macro.  Use preprocessor to decide how to
39887                 initialize attempts [Coverity CID 67].
39888         2001-11-27  Paul Eggert  <eggert@twinsun.com>
39889                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
39890                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
39891
39892 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39893
39894         * gnulib-tool (func_exit): New function, to allow to pass the
39895         exit status portably through the trap.  Use everywhere.
39896         (--help, --version): Signal a write error.
39897         (trap): catch SIGPIPE, for write errors.
39898         Exit at the end of the trap, with the correct exit status.
39899
39900 2006-09-19  Karl Berry  <karl@gnu.org>
39901
39902         * doc/gnulib.texi: note about the license texinfo files.
39903
39904 2006-09-19  Eric Blake  <ebb9@byu.net>
39905
39906         * gnulib-tool: Avoid space-tab.
39907
39908 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
39909
39910         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
39911         that prevented coreutils 6.1 from building.  Problem reported
39912         by Petter Reinholdtsen.
39913
39914 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
39915
39916         * gnulib-tool (avoidlist): Fix typo that broke options like
39917         --avoid=lock that are used by coreutils bootstrap.
39918
39919 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
39920
39921         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
39922         more systematically.
39923
39924 2006-09-18  Jim Meyering  <jim@meyering.net>
39925
39926         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
39927
39928 2006-09-18  Bruno Haible  <bruno@clisp.org>
39929
39930         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
39931
39932 2006-09-18  Bruno Haible  <bruno@clisp.org>
39933
39934         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
39935         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
39936         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
39937         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
39938         * m4/gettext.m4: Require autoconf >= 2.52.
39939         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
39940         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
39941         of gl_cv_header_inttypes_h.
39942
39943 2006-09-18  Bruno Haible  <bruno@clisp.org>
39944
39945         * lib/javaversion.c: Include configmake.h.
39946
39947 2006-09-18  Bruno Haible  <bruno@clisp.org>
39948
39949         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
39950         avoid that the while loops be executed in a subshell.
39951
39952 2006-09-18  Bruno Haible  <bruno@clisp.org>
39953
39954         * MODULES.html.sh (func_module): Break long lines.
39955         Suggested by Bruce Korb <bkorb@gnu.org>.
39956
39957 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39958
39959         Speed up by a factor of 1.12.
39960         * gnulib-tool (nl): New variable.
39961         (func_import): Rewrite include directive extraction to only read each
39962         directive once.
39963
39964 2006-09-17  Bruno Haible  <bruno@clisp.org>
39965
39966         * modules/javaversion (Makefile.am): Remove DEFS setting.
39967         (Depends-on): Add configmake, for PKGDATADIR definition.
39968
39969 2006-09-17  Bruno Haible  <bruno@clisp.org>
39970
39971         * gnulib-tool (func_create_testdir): Rewrite all files at once.
39972
39973 2006-09-17  Bruno Haible  <bruno@clisp.org>
39974
39975         * gnulib-tool (func_append): New function, stolen from libtool.m4.
39976         (func_modules_transitive_closure, func_modules_add_dummy,
39977         func_modules_to_filelist, func_import, func_create_testdir,
39978         func_create_megatestdir, ...): Use it wherever possible.
39979         Suggested by Ralf Wildenhues.
39980
39981 2006-09-16  Karl Berry  <karl@gnu.org>
39982
39983         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
39984         to avoid sectioning errors.
39985         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
39986         [ifinfo]: blank line after @center-ed titles.
39987         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
39988         Spell FSF address consistently with others.
39989         (These changes approved by rms.)
39990
39991 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39992
39993         Speed up by a factor of 1.61.
39994         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
39995         already checked module names again.
39996
39997 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39998
39999         Speed up by a factor of 1.13.
40000         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
40001         for new_files, and the input to func_add_or_update.
40002
40003 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40004
40005         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
40006         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
40007
40008 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
40009
40010         * modules/mkancesdirs (Depends-on): Add fcntl.
40011         * modules/savewd: New file.
40012         * MODULES.html.sh (File system functions): Add savewd.
40013
40014         * modules/configmake (Makefile.am): Add support for the
40015         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
40016
40017 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
40018
40019         * m4/savewd.m4: New file.
40020
40021 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
40022
40023         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
40024         (dirchownmod): New arg FD.  All callers changed.
40025         Use FD rather than opening the directory ourself, as opening is
40026         now the caller's responsibility.
40027         * lib/dirchownmod.h: Likewise.
40028         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
40029         hosts that require <sys/types.h> before <sys/stat.h>.  Include
40030         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
40031         (test_dir): Remove.
40032         (mkancesdirs): Return length of prefix of FILE that has already
40033         been made, or -2 if there is a child doing the work.  Redo
40034         algorithm so that it is O(N) rather than O(N**2).  Optimize away
40035         ".", and treat ".." specially since it might stray back into
40036         already-created areas.  Use a subprocess if necessary.  New arg
40037         WD; all users changed.  MAKE_DIR function should now return 1
40038         if it creates a directory that is not readable.  Return -2 if
40039         a child process is spun off.
40040         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
40041         Adjust signature to match code.
40042         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
40043         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
40044         all users changed.
40045         * lib/savewd.c, lib/savewd.h: New files.
40046
40047 2006-09-15  Jim Meyering  <jim@meyering.net>
40048
40049         * modules/rename-dest-slash: New module.
40050         * MODULES.html.sh (posix_compat): Add it here.
40051
40052         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
40053
40054 2006-09-15  Jim Meyering  <jim@meyering.net>
40055
40056         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
40057         file.
40058
40059         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
40060
40061 2006-09-15  Jim Meyering  <jim@meyering.net>
40062
40063         * lib/rename-dest-slash.c (has_trailing_slash): Use
40064         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
40065         (rpl_rename_dest_slash): Perform the cheaper trailing slash
40066         test before testing whether SRC is a directory.
40067         Suggestions from Bruno Haible.
40068
40069         Avoid a warning about an unused variable.
40070         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
40071         into the #ifdef block where it's used.
40072
40073         * lib/rename-dest-slash.c: New file.
40074
40075 2006-09-14  Bruno Haible  <bruno@clisp.org>
40076
40077         * lib/allocsa.c: Include <config.h> unconditionally.
40078         * lib/asnprintf.c: Likewise.
40079         * lib/asprintf.c: Likewise.
40080         * lib/c-strcasecmp.c: Likewise.
40081         * lib/c-strcasestr.c: Likewise.
40082         * lib/c-strncasecmp.c: Likewise.
40083         * lib/c-strstr.c: Likewise.
40084         * lib/classpath.c: Likewise.
40085         * lib/clean-temp.c: Likewise.
40086         * lib/concatpath.c: Likewise.
40087         * lib/copy-file.c: Likewise.
40088         * lib/csharpcomp.c: Likewise.
40089         * lib/csharpexec.c: Likewise.
40090         * lib/execute.c: Likewise.
40091         * lib/fatal-signal.c: Likewise.
40092         * lib/findprog.c: Likewise.
40093         * lib/fwriteerror.c: Likewise.
40094         * lib/gl_array_list.c: Likewise.
40095         * lib/gl_array_oset.c: Likewise.
40096         * lib/gl_avltree_list.c: Likewise.
40097         * lib/gl_avltree_oset.c: Likewise.
40098         * lib/gl_avltreehash_list.c: Likewise.
40099         * lib/gl_carray_list.c: Likewise.
40100         * lib/gl_linked_list.c: Likewise.
40101         * lib/gl_linkedhash_list.c: Likewise.
40102         * lib/gl_list.c: Likewise.
40103         * lib/gl_oset.c: Likewise.
40104         * lib/gl_rbtree_list.c: Likewise.
40105         * lib/gl_rbtree_oset.c: Likewise.
40106         * lib/gl_rbtreehash_list.c: Likewise.
40107         * lib/imaxabs.c: Likewise.
40108         * lib/imaxdiv.c: Likewise.
40109         * lib/javacomp.c: Likewise.
40110         * lib/javaexec.c: Likewise.
40111         * lib/javaversion.c: Likewise.
40112         * lib/linebreak.c: Likewise.
40113         * lib/localcharset.c: Likewise.
40114         * lib/lock.c: Likewise.
40115         * lib/mbchar.c: Likewise.
40116         * lib/mbswidth.c: Likewise.
40117         * lib/mkdtemp.c: Likewise.
40118         * lib/pipe.c: Likewise.
40119         * lib/printf-args.c: Likewise.
40120         * lib/printf-parse.c: Likewise.
40121         * lib/progname.c: Likewise.
40122         * lib/progreloc.c: Likewise.
40123         * lib/readlink.c: Likewise.
40124         * lib/sh-quote.c: Likewise.
40125         * lib/stpcpy.c: Likewise.
40126         * lib/stpncpy.c: Likewise.
40127         * lib/strcasecmp.c: Likewise.
40128         * lib/strcasestr.c: Likewise.
40129         * lib/strcspn.c: Likewise.
40130         * lib/striconv.c: Likewise.
40131         * lib/strncasecmp.c: Likewise.
40132         * lib/strnlen1.c: Likewise.
40133         * lib/strstr.c: Likewise.
40134         * lib/strtok_r.c: Likewise.
40135         * lib/tls.c: Likewise.
40136         * lib/tmpdir.c: Likewise.
40137         * lib/unicodeio.c: Likewise.
40138         * lib/unsetenv.c: Likewise.
40139         * lib/vasnprintf.c: Likewise.
40140         * lib/vasprintf.c: Likewise.
40141         * lib/wait-process.c: Likewise.
40142         * lib/xallocsa.c: Likewise.
40143         * lib/xsetenv.c: Likewise.
40144         * lib/xstriconv.c: Likewise.
40145
40146 2006-09-13  Simon Josefsson  <jas@extundo.com>
40147
40148         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
40149         that internally, suggested by Ralf Wildenhues
40150         <Ralf.Wildenhues@gmx.de>.
40151
40152 2006-09-13  Simon Josefsson  <jas@extundo.com>
40153
40154         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
40155         @LIBOBJS@.
40156         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40157
40158 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
40159
40160         * lib/_fpending.c: Include <config.h> unconditionally, since we no
40161         longer worry about uses that don't define HAVE_CONFIG_H.
40162         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
40163         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
40164         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
40165         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
40166         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
40167         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
40168         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
40169         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
40170         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
40171         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
40172         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
40173         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
40174         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
40175         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
40176         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
40177         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
40178         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
40179         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
40180         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
40181         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
40182         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
40183         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
40184         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
40185         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
40186         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
40187         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
40188         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
40189         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
40190         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
40191         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
40192         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
40193         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
40194         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
40195         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
40196         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
40197         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
40198         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
40199         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
40200         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
40201         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
40202         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
40203         Likewise.
40204
40205 2006-09-13  Eric Blake  <ebb9@byu.net>
40206
40207         * lib/getopt.c: Fix typo in last commit.
40208
40209 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
40210
40211         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
40212         dgettext.
40213
40214 2006-09-12  Jim Meyering  <jim@meyering.net>
40215
40216         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
40217         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
40218         Reported by Nelson H. F. Beebe.
40219
40220 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
40221
40222         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
40223         program_invocation_name and program_invocation_short_name are
40224         initialized.
40225         * lib/argp-namefrob.h: Move declarations of program_invocation_name
40226         and program_invocation_short_name to argp.h, so they are visible
40227         to user programs.
40228         * lib/argp.h: Likewise
40229
40230 2006-09-10  Bruno Haible  <bruno@clisp.org>
40231
40232         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
40233         m4/inttypes_h.m4, m4/uintmax_t.m4.
40234
40235 2006-09-10  Bruno Haible  <bruno@clisp.org>
40236
40237         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
40238         gl_AC_TYPE_UINTMAX_T.
40239
40240 2006-09-10  Bruno Haible  <bruno@clisp.org>
40241
40242         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
40243
40244 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
40245
40246         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
40247         convention.  Text proposed by Bruno Haible.
40248         (struct argp_option): Document the use of N_() wrappers.
40249
40250         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
40251         '\v', and translate the two parts separately, instead of feeding
40252         the whole string to gettext.  This allows to exclude
40253         '\v' from the strings visible to the translator by writing doc
40254         strings as N_("..") "\v" N_("..").
40255
40256 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
40257
40258         * config/srclist.txt: Undo latest change; the bug was fixed.
40259
40260 2006-09-09  Bruno Haible  <bruno@clisp.org>
40261
40262         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
40263         assignments if building a library without libtool.
40264         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
40265         in func_emit_lib_Makefile_am.
40266         (func_import): When building a static library libfoo.a, arrange to
40267         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
40268         (func_create_testdir): Likewise.
40269         * modules/gc (configure.ac, Makefile.am): If building statically,
40270         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
40271         * modules/iconvme (configure.ac, Makefile.am): Likewise.
40272         * modules/striconv (configure.ac, Makefile.am): Likewise.
40273         Based on a suggestion by Ralf Wildenhues.
40274
40275 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
40276
40277         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
40278         Check for unistd.h too, since Autoconf doesn't assume POSIX.
40279         Also:
40280
40281         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
40282         Add year_2050_test to catch glibc bug 2821
40283         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
40284
40285         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
40286         Prefer #ifdef to #if.
40287
40288         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
40289         Return from 'main' instead of calling 'exit'.
40290
40291 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
40292
40293         * lib/mktime.c (guess_time_tm): Fix bug where mktime
40294         returned the maximum time_t value rather than (time_t) -1.
40295         Problem originally reported by William Bardwell
40296         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
40297
40298         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
40299         Moved to here ...
40300         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
40301         ... from here.
40302
40303 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
40304
40305         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
40306         2821 is fixed.
40307
40308 2006-09-08  Jim Meyering  <jim@meyering.net>
40309
40310         Don't make generated files read-only.  That would bother too many
40311         people.  However, do retain the ability to work when targets are
40312         read-only: remove the destination and temporary files before writing
40313         them (when generated via sed or echo), or by using the -f option for
40314         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
40315         * modules/alloca-opt, modules/argz, modules/arpa_inet:
40316         * modules/byteswap, modules/configmake, modules/fcntl:
40317         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
40318         * modules/localcharset, modules/netinet_in, modules/poll:
40319         * modules/stdbool, modules/stdint, modules/sys_select:
40320         * modules/sys_socket, modules/sys_stat, modules/sysexits:
40321
40322 2006-09-08  Jim Meyering  <jim@meyering.net>
40323
40324         Avoid new build failure on FreeBSD 6.0.
40325         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
40326         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
40327         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
40328
40329 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40330
40331         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
40332
40333 2006-09-07  Jim Meyering  <jim@meyering.net>
40334
40335         Fix global typo in last change: use chmod u-w, not chmod u-x.
40336         Spotted by Paul Eggert and Bruce Korb.
40337         * modules/alloca-opt, modules/argz, modules/arpa_inet:
40338         * modules/byteswap, modules/configmake, modules/fcntl:
40339         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
40340         * modules/localcharset, modules/netinet_in, modules/poll:
40341         * modules/stdbool, modules/stdint, modules/sys_select:
40342         * modules/sys_socket, modules/sys_stat, modules/sysexits:
40343
40344 2006-09-06  Jim Meyering  <jim@meyering.net>
40345
40346         Make generated files be read-only.
40347         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
40348         Ensure that each generated file is now read-only.
40349         * modules/argz: Likewise.
40350         * modules/arpa_inet: Likewise.
40351         * modules/byteswap: Likewise.
40352         * modules/configmake: Likewise.
40353         * modules/fcntl: Likewise.
40354         * modules/fnmatch: Likewise.
40355         * modules/getopt: Likewise.
40356         * modules/glob: Likewise.
40357         * modules/inttypes: Likewise.
40358         * modules/netinet_in: Likewise.
40359         * modules/poll: Likewise.
40360         * modules/stdbool: Likewise.
40361         * modules/stdint: Likewise.
40362         * modules/sys_select: Likewise.
40363         * modules/sys_socket: Likewise.
40364         * modules/sys_stat: Likewise.
40365         * modules/sysexits: Likewise.
40366         * modules/localcharset: Same as above, but continue using temporary
40367         file named "t-$@" (why different?) rather than the "$@-t" used
40368         everywhere else.
40369
40370         * modules/sysexits (Makefile.am): Replace literal occurrences
40371         of "sysexit.h" more readable, and more consistent, "$@".
40372
40373 2006-09-06  Bruno Haible  <bruno@clisp.org>
40374
40375         * modules/striconv: New file.
40376         * modules/xstriconv: New file.
40377         * MODULES.html.sh (Internationalization functions): Add striconv,
40378         xstriconv.
40379
40380 2006-09-06  Bruno Haible  <bruno@clisp.org>
40381
40382         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
40383         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
40384         not using libtool correctly.
40385
40386 2006-09-06  Bruno Haible  <bruno@clisp.org>
40387
40388         * lib/striconv.h: New file.
40389         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
40390         iconvstring.c.
40391         * lib/xstriconv.h: New file.
40392         * lib/xstriconv.c: New file.
40393
40394 2006-09-06  Bruno Haible  <bruno@clisp.org>
40395
40396         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40397         lib_..._LDFLAGS.
40398
40399 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40400
40401         * lib/argz_.h: Sync from Libtool.
40402
40403         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
40404                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40405
40406         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
40407
40408 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
40409
40410         * modules/trim: New file.
40411
40412 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
40413
40414         * lib/trim.h: New file.
40415         * lib/trim.c: New file.
40416
40417 2006-09-05  Bruno Haible  <bruno@clisp.org>
40418
40419         * MODULES.html.sh (String handling): Add trim.
40420
40421 2006-09-04  Karl Berry  <karl@gnu.org>
40422
40423         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
40424         until next release.
40425
40426 2006-09-03  Bruno Haible  <bruno@clisp.org>
40427
40428         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
40429         correctly.
40430
40431 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
40432
40433         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
40434         not gl_GETLOADAVG.  Omit unneeded semicolons.
40435         Problems reported by Ralf Wildenhues in
40436         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
40437         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
40438         at the end, which is the usual gnulib style.
40439
40440         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
40441         of doing all the work ourselves.
40442         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
40443         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
40444
40445 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
40446
40447         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
40448         Problem reported by Ralf Wildenhues in
40449         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
40450
40451         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
40452         HAVE_STRUCT_STATFS_F_FSTYPENAME.
40453
40454 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
40455
40456         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
40457         yesterday's patch by changing test -n to test -z.
40458
40459 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
40460
40461         * modules/getloadavg (Files): Add m4/getloadavg.m4.
40462         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
40463         the former is now obsolescent.
40464
40465         * modules/chdir-long (Depends-on): Add fcntl.
40466
40467 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
40468
40469         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
40470         obsolescent, and programs should use gnulib instead.
40471         * m4/getloadavg.m4: New file, with contents taken from Autoconf
40472         but with prefixes changed.
40473
40474 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
40475
40476         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
40477         or stdbool.h, because they might not exist while configuring.
40478
40479         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
40480         Don't include unistd.h or limits.h; not needed, since chdir-long.h
40481         does that for us.
40482         (O_DIRECTORY): Remove.
40483
40484 2006-08-31  Eric Blake  <ebb9@byu.net>
40485
40486         * gnulib-tool: Don't let emacs change spaces to TAB.
40487
40488 2006-08-31  Bruno Haible  <bruno@clisp.org>
40489
40490         * gnulib-tool: When calling func_import more than once, do it in a
40491         subshell.
40492         Reported by Eric Blake <ebb9@byu.net>.
40493
40494 2006-08-31  Bruno Haible  <bruno@clisp.org>
40495
40496         * gnulib-tool (nl): Remove variable.
40497         (sed_transform_lib_file): Use more robust test for config-h module.
40498         (func_import): Fix typo in 2006-08-25 patch.
40499
40500 2006-08-31  Bruno Haible  <bruno@clisp.org>
40501
40502         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
40503         specified, augment Makefile.am variables instead of assigning them.
40504
40505 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
40506
40507         Work around a bug in both the Linux and SunOS 64-bit kernels:
40508         nanosleep mishandles sleeps for longer than 2**31 seconds.
40509         Problem reported by Frank v Waveren in
40510         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
40511         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
40512         Check for nanosleep bug.
40513         (LIB_NANOSLEEP): Append clock_gettime library if needed.
40514
40515 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
40516
40517         Work around a bug in both the Linux and SunOS 64-bit kernels:
40518         nanosleep mishandles sleeps for longer than 2**31 seconds.
40519         Problem reported by Frank v Waveren in
40520         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
40521         * lib/nanosleep.c (BILLION): New constant.
40522         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
40523         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
40524         implementation.
40525
40526 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
40527
40528         * modules/nanosleep (Depends-on): Add gettime.
40529
40530 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
40531         and Simon Josefsson  <jas@extundo.com>
40532         and Oskar Liljeblad  <oskar@osk.mine.nu>
40533
40534         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
40535         * gnulib-tool (func_import): New license type 'unmodifiable license
40536         text'.
40537         * modules/fdl: Use it.  Longer description.
40538         * module/gpl, module/lgpl: New files.
40539
40540 2006-08-30  Jim Meyering  <jim@meyering.net>
40541
40542         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
40543         shadowing the parameter.
40544
40545 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40546
40547         Sync from Libtool:
40548
40549         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40550
40551         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
40552         sharing with gnulib.  Report by Eric Blake.
40553
40554 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
40555
40556         * modules/isapipe: New file.
40557         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
40558
40559 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
40560
40561         * modules/configmake (Makefile.am): Add a comment, and omit
40562         the CONFIGMAKE_ prefix from generated macro names.  Suggested
40563         by Bruno Haible.
40564
40565 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
40566
40567         * m4/isapipe.m4: New file.
40568
40569 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
40570
40571         * lib/isapipe.c, lib/isapipe.h: New files.
40572
40573 2006-08-29  Jim Meyering  <jim@meyering.net>
40574
40575         * modules/configmake (Makefile.am): Make configmake.h depend on
40576         Makefile.  Otherwise, a stale configmake.h could hang around.
40577
40578 2006-08-29  Eric Blake  <ebb9@byu.net>
40579
40580         * lib/error.c (error_at_line, print_errno_message): Match libc, after
40581         resolution of upstream bug 3044.
40582
40583 2006-08-29  Bruno Haible  <bruno@clisp.org>
40584
40585         * modules/localcharset (Depends-on): Add configmake.
40586         (Makefile.am): Remove setting of LIBDIR through DEFS.
40587
40588 2006-08-29  Bruno Haible  <bruno@clisp.org>
40589
40590         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
40591         defined.
40592
40593 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
40594
40595         * modules/fcntl: New file.
40596         * modules/chdir-safer (Depends-on): Add fcntl.
40597         * modules/fts: Likewise.
40598         * modules/mkdir-p: Likewise.
40599
40600         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
40601         This undoes the most recent change, since we're now addressing the
40602         problem in a different way.
40603
40604         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
40605         into output, since the output might be called Makefile.am even
40606         if $makefile_name is something different.
40607         (func_import): Use $makefile_am rather than
40608         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
40609         empty.
40610
40611         * modules/inttypes (Files): Add m4/inttypes-h.m4.
40612
40613 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
40614
40615         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
40616         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
40617         recent change to stdint.m4, since we're now addressing the problem in a
40618         different way.
40619
40620 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
40621
40622         * m4/fcntl_h.m4: New file.
40623
40624 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
40625
40626         * lib/fcntl_.h: New file.
40627         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
40628         the fcntl module.
40629         * lib/dirchownmod.c: Likewise.
40630         * lib/fts.c: Likewise.
40631
40632         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
40633         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
40634         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
40635         just before including <inttypes.h>, to avoid circular inclusion.
40636
40637 2006-08-28  Jim Meyering  <jim@meyering.net>
40638
40639         * doc/visibility.texi: Actually read and correct the grammar of the
40640         sentence affected by yesterday's change.
40641
40642 2006-08-28  Eric Blake  <ebb9@byu.net>
40643
40644         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
40645         needs wrapper.
40646
40647 2006-08-28  Eric Blake  <ebb9@byu.net>
40648
40649         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
40650
40651 2006-08-28  Eric Blake  <ebb9@byu.net>
40652
40653         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
40654
40655 2006-08-28  Bruno Haible  <bruno@clisp.org>
40656
40657         * modules/c-strstr: New file, from GNU gettext.
40658         * MODULES.html.sh (String handling): Add c-strstr.
40659
40660 2006-08-28  Bruno Haible  <bruno@clisp.org>
40661
40662         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
40663         macros.
40664         Reported by Eric Blake.
40665
40666 2006-08-28  Bruno Haible  <bruno@clisp.org>
40667
40668         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
40669         (VASNPRINTF): Return a string of length > INT_MAX without failing.
40670         * lib/vasprintf.c: Include errno.h, limits.h.
40671         (EOVERFLOW): New fallback definition.
40672         (vasprintf): Test here whether the string length is > INT_MAX.
40673         * lib/vsnprintf.c: Include errno.h, limits.h.
40674         (EOVERFLOW): New fallback definition.
40675         (vsnprintf): Fix bug when generated string was too long for the buffer.
40676         Test here whether the string length is > INT_MAX.
40677
40678 2006-08-28  Bruno Haible  <bruno@clisp.org>
40679
40680         * lib/inttypes_.h (SCNX*): Remove definitions.
40681         Reported by Eric Blake.
40682
40683 2006-08-28  Bruno Haible  <bruno@clisp.org>
40684
40685         * lib/c-strstr.h: New file, from GNU gettext.
40686         * lib/c-strstr.c: New file, from GNU gettext.
40687
40688 2006-08-28  Bruno Haible  <bruno@clisp.org>
40689
40690         * gnulib-tool: Reorder some statements.
40691
40692 2006-08-28  Bruno Haible  <bruno@clisp.org>
40693
40694         * gnulib-tool: New option --makefile-name.
40695         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
40696         $makefile_name.
40697         (func_import): Write $makefile_name to the cache file, and read it from
40698         there unless explicitly specified. Use $makefile_name as file name
40699         instead of Makefile.am. Adjust the recommendations accordingly.
40700
40701 2006-08-28  Bruno Haible  <bruno@clisp.org>
40702
40703         * gnulib-tool (func_verify_module): Check against misapplying patch.
40704
40705 2006-08-28  Bruno Haible  <bruno@clisp.org>
40706
40707         * gnulib-tool (func_relativize, func_relconcat): New functions.
40708         Give an error if --local-dir is given with --update.
40709         Remove trailing slashes from $local_gnulib_dir.
40710         (func_import): Store the relativized $local_gnulib_dir in
40711         gnulib-cache.m4, and read it from there if not specified explicitly.
40712
40713 2006-08-28  Bruno Haible  <bruno@clisp.org>
40714
40715         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
40716         is the current directory. Respect also $local_gnulib_dir.
40717
40718 2006-08-28  Bruno Haible  <bruno@clisp.org>
40719             Simon Josefsson  <jas@extundo.com>
40720
40721         BeOS portability.
40722         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
40723
40724 2006-08-27  Jim Meyering  <jim@meyering.net>
40725
40726         * doc/visibility.texi: Remove duplicate word: "pointer".
40727
40728 2006-08-26  Bruno Haible  <bruno@clisp.org>
40729
40730         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
40731         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
40732         (Makefile.am): Create inttypes.h from inttypes_.h.
40733         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
40734
40735         * modules/imaxabs: New file.
40736
40737         * modules/imaxdiv: New file.
40738
40739 2006-08-26  Bruno Haible  <bruno@clisp.org>
40740
40741         * m4/inttypes.m4: New file.
40742         * m4/_inttypes_h.m4: Remove file.
40743         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
40744         PRI_MACROS_BROKEN.
40745         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
40746
40747         * m4/imaxabs.m4: New file.
40748
40749         * m4/imaxdiv.m4: New file.
40750
40751 2006-08-26  Bruno Haible  <bruno@clisp.org>
40752
40753         * lib/inttypes_.h: New file.
40754         * lib/inttypes.h: Remove file.
40755         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
40756
40757         * lib/imaxabs.c: New file.
40758
40759         * lib/imaxdiv.c: New file.
40760
40761 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
40762
40763         New config-h module, so that "make" output needn't be cluttered
40764         by -DHAVE_CONFIG_H.
40765         * MODULES.html.sh (Support for building libraries and executables):
40766         Add config-h.
40767         * modules/config-h: New file.
40768         * gnulib-tool (nl, sed_transform_lib_file): New vars.
40769         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
40770         the config-h module is used.
40771
40772         New configmake module, so that "make" output needn't be cluttered
40773         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
40774         * MODULES.html.sh (Support for building libraries and executables):
40775         Add configmake.
40776         * modules/configmake: New file.
40777
40778 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
40779
40780         * m4/config-h.m4: New file.
40781
40782 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
40783
40784         * config/srclist.txt: Add elisp-comp.
40785
40786 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
40787
40788         * MODULES.html.sh (Support for building libraries and executables):
40789         Add elisp-comp.
40790         * build-aux/elisp-comp: New file.
40791         * modules/elisp-comp: New file.
40792
40793 2006-08-24  Bruno Haible  <bruno@clisp.org>
40794
40795         * gnulib-tool (func_create_testdir): Use non-default values of
40796         sourcebase and m4base.
40797
40798 2006-08-24  Bruno Haible  <bruno@clisp.org>
40799
40800         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
40801         HTML structure.
40802
40803 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
40804
40805         * modules/openat (Depends-on): Add lchown.
40806
40807 2006-08-23  Bruno Haible  <bruno@clisp.org>
40808
40809         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
40810         of gl_LOCK_EARLY instead of gl_LOCK.
40811
40812 2006-08-23  Bruno Haible  <bruno@clisp.org>
40813
40814         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
40815         on OSF/1 to no.
40816         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
40817
40818 2006-08-23  Bruno Haible  <bruno@clisp.org>
40819
40820         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
40821         as unusable.
40822
40823         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
40824         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
40825         (gl_LOCK): New macro.
40826
40827 2006-08-22  Simon Josefsson  <jas@extundo.com>
40828
40829         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
40830         to md5 module.
40831
40832 2006-08-22  Simon Josefsson  <jas@extundo.com>
40833
40834         * MODULES.html.sh: Add "Support for maintaining and release
40835         projects".
40836
40837         * build-aux/gnupload: New file, from coreutils.
40838
40839 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
40840
40841         Avoid the need for AC_LIBSOURCES in m4 macros.
40842         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
40843         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
40844         * modules/check-version (EXTRA_DIST): Add check-version.h.
40845         * modules/crc (EXTRA_DIST): Add crc.h.
40846         * modules/des (EXTRA_DIST): Add des.h.
40847         * modules/gc (EXTRA_DIST): Add gc.h.
40848         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
40849         * modules/getline (EXTRA_DIST): Add getline.h.
40850         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
40851         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
40852         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
40853         * modules/md2 (EXTRA_DIST): Add md2.h.
40854         * modules/md4 (EXTRA_DIST): Add md4.h.
40855         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
40856         * modules/read-file (EXTRA_DIST): Add read-file.h.
40857         * modules/readline (EXTRA_DIST): Add readline.h.
40858         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
40859         rijndael-api-fst.h.
40860
40861 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
40862
40863         * m4/rijndael.m4 (gl_ARCFOUR):
40864         * m4/arctwo.m4 (gl_ARCTWO):
40865         * m4/check-version.m4 (gl_CHECK_VERSION):
40866         * m4/crc.m4 (gl_CRC):
40867         * m4/des.m4 (gl_DES):
40868         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
40869         * m4/gc.m4 (gl_GC):
40870         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
40871         * m4/getline.m4 (gl_FUNC_GETLINE):
40872         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
40873         * m4/hmac-md5.m4 (gl_HMAC_MD5):
40874         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
40875         * m4/md2.m4 (gl_MD2):
40876         * m4/md4.m4 (gl_MD4):
40877         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
40878         * m4/read-file.m4 (gl_FUNC_READ_FILE):
40879         * m4/readline.m4 (gl_FUNC_READLINE):
40880         * m4/rijndael.m4 (gl_RIJNDAEL):
40881         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
40882         to get the necessary .h files and whatnot.
40883
40884 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
40885
40886         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
40887         gnulib rather than the other way around.
40888         * config/srclistvars.sh (COREUTILS): Remove.
40889
40890 2006-08-22  Jim Meyering  <jim@meyering.net>
40891
40892         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
40893
40894         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
40895
40896 2006-08-22  Eric Blake  <ebb9@byu.net>
40897
40898         * modules/regexprops-generic: New file.
40899         * MODULES.html.sh (Support for building documentation): List it.
40900
40901 2006-08-22  Eric Blake  <ebb9@byu.net>
40902
40903         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
40904         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
40905         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
40906         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
40907
40908 2006-08-22  Bruno Haible  <bruno@clisp.org>
40909
40910         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
40911         and lib_LTLIBRARIES like the other lib_* variables.
40912
40913 2006-08-22  Bruno Haible  <bruno@clisp.org>
40914
40915         * build-aux/x-to-1.in: New file, from GNU gettext.
40916
40917 2006-08-22  Bruno Haible  <bruno@clisp.org>
40918
40919         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
40920         <utmpx.h> exists.
40921
40922 2006-08-22  Bruno Haible  <bruno@clisp.org>
40923
40924         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
40925         <utmpx.h> exists.
40926
40927 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
40928
40929         BeOS portability.
40930         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
40931         exist.
40932         Problem reported by Bruno Haible.
40933
40934 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
40935
40936         Avoid the need for AC_LIBSOURCES in m4 macros.
40937         * modules/acl (EXTRA_DIST): Add acl.h.
40938         * modules/argmatch (Files): Add m4/argmatch.m4.
40939         (configure.ac): Add gl_ARGMATCH.
40940         (EXTRA_DIST): Renamed from lib_SOURCES, for
40941         consistency with the other modules.  Remove argmatch.c.
40942         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
40943         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
40944         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
40945         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
40946         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
40947         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
40948         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
40949         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
40950         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
40951         * modules/closeout (EXTRA_DIST): Add closeout.h.
40952         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
40953         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
40954         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
40955         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
40956         dirname.h; remove basename.c and stripslash.c.
40957         * modules/exclude (EXTRA_DIST): Add exclude.h.
40958         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
40959         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
40960         * modules/file-type (EXTRA_DIST): Add file-type.h.
40961         * modules/filemode (EXTRA_DIST): Add filemode.h.
40962         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
40963         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
40964         * modules/fpending (EXTRA_DIST): Add __fpending.h.
40965         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
40966         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
40967         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
40968         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
40969         * modules/getdate (EXTRA_DIST): Add getdate.c.
40970         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
40971         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
40972         * modules/getpass (EXTRA_DIST): Add getpass.h.
40973         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
40974         * modules/group-member (EXTRA_DIST): Add group-member.h.
40975         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
40976         * modules/hash (EXTRA_DIST): Add hash.h.
40977         * modules/human (EXTRA_DIST): Add human.h.
40978         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
40979         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
40980         * modules/lchown (EXTRA_DIST): Add lchown.h.
40981         * modules/long-options (EXTRA_DIST): Add long-options.h.
40982         * modules/lstat (EXTRA_DIST): Add lstat.h.
40983         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
40984         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
40985         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
40986         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
40987         * modules/memxor (EXTRA_DIST): Add memxor.h.
40988         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
40989         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
40990         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
40991         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
40992         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
40993         * modules/physmem (EXTRA_DIST): Add physmem.h.
40994         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
40995         * modules/posixver (EXTRA_DIST): Add posixver.h.
40996         * modules/quote (EXTRA_DIST): Add quote.h.
40997         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
40998         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
40999         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
41000         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
41001         regex_internal.h regexec.c.
41002         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
41003         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
41004         * modules/same (EXTRA_DIST): Add same.h.
41005         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
41006         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
41007         * modules/savedir (EXTRA_DIST): Add savedir.h.
41008         * modules/sha1 (EXTRA_DIST): Add sha1.h.
41009         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
41010         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
41011         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
41012         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
41013         * modules/strdup (EXTRA_DIST): Add strdup.h.
41014         * modules/strftime (EXTRA_DIST): Add strftime.h.
41015         * modules/strndup (EXTRA_DIST): Add strndup.h.
41016         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
41017         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
41018         * modules/time_r (EXTRA_DIST): Add time_r.h.
41019         * modules/timespec (EXTRA_DIST): Add timespec.h.
41020         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
41021         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
41022         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
41023         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
41024         * modules/userspec (EXTRA_DIST): Add userspec.h.
41025         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
41026         * modules/utimens (EXTRA_DIST): Add utimens.h.
41027         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
41028         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
41029         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
41030         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
41031         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
41032         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
41033         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
41034         * modules/yesno (EXTRA_DIST): Add yesno.h.
41035
41036 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
41037
41038         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
41039
41040         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
41041         * m4/dev-ino.m4, same-inode.m4: Remove.
41042
41043         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
41044         * m4/acl.m4 (AC_FUNC_ACL):
41045         * m4/backupfile.m4 (gl_BACKUPFILE):
41046         * m4/c-strtod.m4 (gl_C99_STRTOLD):
41047         * m4/canon-host.m4 (gl_CANON_HOST):
41048         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
41049         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
41050         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
41051         * m4/cloexec.m4 (gl_CLOEXEC):
41052         * m4/close-stream.m4 (gl_CLOSE_STREAM):
41053         * m4/closeout.m4 (gl_CLOSEOUT):
41054         * m4/dirfd.m4 (gl_FUNC_DIRFD):
41055         * m4/dirname.m4 (gl_DIRNAME):
41056         * m4/exclude.m4 (gl_EXCLUDE):
41057         * m4/exitfail.m4 (gl_EXITFAIL):
41058         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
41059         * m4/file-type.m4 (gl_FILE_TYPE):
41060         * m4/filemode.m4 (gl_FILEMODE):
41061         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
41062         * m4/fpending.m4 (gl_FUNC_FPENDING):
41063         * m4/fprintftime.m4 (gl_FPRINTFTIME):
41064         * m4/fts.m4 (gl_FUNC_FTS):
41065         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
41066         * m4/getdate.m4 (gl_GETDATE):
41067         * m4/gethrxtime.m4 (gl_GETHRXTIME):
41068         * m4/getpagesize.m4 (gl_GETPAGESIZE):
41069         * m4/getpass.m4 (gl_FUNC_GETPASS):
41070         * m4/gettime.m4 (gl_GETTIME):
41071         * m4/getugroups.m4 (gl_GETUGROUPS):
41072         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
41073         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
41074         * m4/hard-locale.m4 (gl_HARD_LOCALE):
41075         * m4/hash.m4 (gl_HASH):
41076         * m4/idcache.m4 (gl_IDCACHE):
41077         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
41078         * m4/lchown.m4 (gl_FUNC_LCHOWN):
41079         * m4/long-options.m4 (gl_LONG_OPTIONS):
41080         * m4/lstat.m4 (gl_FUNC_LSTAT):
41081         * m4/md5.m4 (gl_MD5):
41082         * m4/memcasecmp.m4 (gl_MEMCASECMP):
41083         * m4/memcoll.m4 (gl_MEMCOLL):
41084         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
41085         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
41086         * m4/memxor.m4 (gl_MEMXOR):
41087         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
41088         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
41089         * m4/modechange.m4 (gl_MODECHANGE):
41090         * m4/mountlist.m4 (gl_MOUNTLIST):
41091         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
41092         * m4/openat.m4 (gl_FUNC_OPENAT):
41093         * m4/pathmax.m4 (gl_PATHMAX):
41094         * m4/physmem.m4 (gl_PHYSMEM):
41095         * m4/posixtm.m4 (gl_POSIXTM):
41096         * m4/posixver.m4 (gl_POSIXVER):
41097         * m4/quote.m4 (gl_QUOTE):
41098         * m4/quotearg.m4 (gl_QUOTEARG):
41099         * m4/readtokens.m4 (gl_READTOKENS):
41100         * m4/readutmp.m4 (gl_READUTMP):
41101         * m4/regex.m4 (gl_REGEX):
41102         * m4/safe-read.m4 (gl_SAFE_READ):
41103         * m4/safe-write.m4 (gl_SAFE_WRITE):
41104         * m4/same.m4 (gl_SAME):
41105         * m4/save-cwd.m4 (gl_SAVE_CWD):
41106         * m4/savedir.m4 (gl_SAVEDIR):
41107         * m4/settime.m4 (gl_SETTIME):
41108         * m4/sha1.m4 (gl_SHA1):
41109         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
41110         * m4/stat-macros.m4 (gl_STAT_MACROS):
41111         * m4/stat-time.m4 (gl_STAT_TIME):
41112         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
41113         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
41114         * m4/strdup.m4 (gl_FUNC_STRDUP):
41115         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
41116         * m4/strndup.m4 (gl_FUNC_STRNDUP):
41117         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
41118         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
41119         * m4/time_r.m4 (gl_TIME_R):
41120         * m4/timespec.m4 (gl_TIMESPEC):
41121         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
41122         * m4/unlinkdir.m4 (gl_UNLINKDIR):
41123         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
41124         * m4/userspec.m4 (gl_USERSPEC):
41125         * m4/utimecmp.m4 (gl_UTIMECMP):
41126         * m4/utimens.m4 (gl_UTIMENS):
41127         * m4/xalloc.m4 (gl_XALLOC):
41128         * m4/xgetcwd.m4 (gl_XGETCWD):
41129         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
41130         * m4/xreadlink.m4 (gl_XREADLINK):
41131         * m4/xstrtod.m4 (gl_XSTRTOD):
41132         * m4/yesno.m4 (gl_YESNO):
41133         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
41134         to get the necessary .h files and whatnot.
41135
41136 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
41137             Bruno Haible  <bruno@clisp.org>
41138
41139         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
41140         /bin/sh understanding of '!' conditional negation.
41141
41142 2006-08-21  Jim Meyering  <jim@meyering.net>
41143
41144         * modules/openat (Depends-on): Really alphabetize.
41145
41146         * modules/acl (Depends-on): Add error and quote.
41147
41148         * check-module (find_included_lib_files): Add at-func.c to the
41149         ok-to-include-more-than-once white list.
41150
41151         * modules/openat (Depends-on): Add lstat.  Alphabetize.
41152
41153 2006-08-21  Bruno Haible  <bruno@clisp.org>
41154
41155         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41156         Emit a pkgdata_DATA variable only if some snippets add contents to it.
41157         Reported by Martin Lambers <marlam@marlam.de>.
41158
41159 2006-08-21  Bruno Haible  <bruno@clisp.org>
41160
41161         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
41162         specify an installation location, don't emit a noinst_LIBRARIES or
41163         noinst_LTLIBRARIES assignment.
41164
41165 2006-08-21  Bruno Haible  <bruno@clisp.org>
41166
41167         BeOS portability.
41168         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
41169         BeOS has mbrtowc() but no <wctype.h>.
41170
41171 2006-08-21  Bruno Haible  <bruno@clisp.org>
41172
41173         BeOS portability.
41174         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
41175         exist.
41176
41177 2006-08-21  Bruno Haible  <bruno@clisp.org>
41178
41179         BeOS portability.
41180         * lib/mbchar.h: Include <wctype.h> only if it exists.
41181
41182 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
41183
41184         Remove files that are no longer needed by their respective modules.
41185         * m4/obstack.m4: Remove.
41186         * m4/strerror_r.m4: Remove.
41187         * m4/uint32_t.m4: Remove.
41188         * m4/uintptr_t.m4: Remove.
41189         * m4/ullong_max.m4: Remove.
41190         * m4/xstrtoimax.m4: Remove.
41191         * m4/xstrtoumax.m4: Remove.
41192
41193         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
41194         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
41195         dependencies now capture this.
41196
41197         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
41198         Do not use AC_LIBSOURCES, since gnulib modules now do this.
41199         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
41200         * m4/human.m4 (gl_HUMAN): Likewise.
41201         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
41202         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
41203
41204         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
41205
41206         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
41207         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
41208         stdint.
41209         * m4/human.m4 (gl_HUMAN): Likewise.
41210         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
41211         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
41212         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
41213         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
41214         * m4/xstrtol (gl_XSTRTOL): Likewise.
41215
41216         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
41217         AC_TYPE_LONG_LONG_INT.
41218         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
41219         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
41220         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
41221         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
41222
41223         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
41224         on stdbool.
41225
41226         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
41227         (gl_PREREQ_XSTRTOUL): Remove.
41228
41229         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
41230
41231         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
41232         mode.
41233
41234 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
41235
41236         Add and change modules to make it easier for coreutils to use
41237         gnulib-tool.
41238         * modules/backupfile (Files): Remove m4/d-ino.m4.
41239         (Depends-on): Add d-ino.
41240         * modules/cycle-check (Depends-on): Add stdint.
41241         (lib_SOURCES): Add cycle-check.h.
41242         * modules/d-ino: New module.
41243         * modules/d-type: New module.
41244         * modules/error (Files): Remove m4/strerror_r.m4.
41245         * modules/filemode (Files): Add m4/st_dm_mode.m4.
41246         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
41247         m4/inttypes_h.m4, m4/uintmax_t.m4.
41248         (Depends-on): Add stdint.
41249         (lib_SOURCES): Add fsusage.h.
41250         * modules/getcwd (Files): Remove d-ino.m4.
41251         (Depends-on): Add d-ino.
41252         * modules/getndelim2 (Depends-on): Add stdint.
41253         * modules/glob (Files): Remove m4/d-type.m4.
41254         (Depends-on): Add d-type.
41255         * modules/host-os: New module.
41256         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
41257         m4/inttypes_h.m4, m4/uintmax_t.m4.
41258         * Depends-on: Add stdint.
41259         (lib_SOURCES): Add human.h.
41260         * modules/inttostr (Files): Remove m4/intmax_t.m4,
41261         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
41262         m4/uintmax_t.m4, m4/ulonglong.m4.
41263         (Depends-on): Add stdint.
41264         (EXTRA_DIST): Add inttostr.h.
41265         * modules/lchmod: New module.
41266         * modules/link-follow: New module.
41267         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
41268         (Depends-on): Add lchmod.
41269         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
41270         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
41271         (Depends-on): Add stdint.
41272         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
41273         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
41274         (Depends-on): Add stdint.
41275         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
41276         * modules/perl: New module.
41277         * modules/regex (Depends-on): Add stdint.
41278         * modules/rmdir-errno: New module.
41279         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
41280         m4/intmax_t.m4.
41281         (Depends-on): Add stdint.
41282         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
41283         m4/uintmax_t.m4.
41284         (Depends-on): Add stdint.
41285         * modules/unlink-busy: New module.
41286         * modules/utimecmp (Depends-on): Add stdint.
41287         * modules/uptime: New module.
41288         * modules/winsz-ioctl: New module.
41289         * modules/winsz-termios: New module.
41290         * modules/xnanosleep (Depends-on): Add nanosleep.
41291         * modules/ullong_max: Remove.
41292         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
41293         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
41294         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
41295         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
41296         (Depends-on): Add inttypes.
41297         (lib_SOURCES): Add xstrtol.h.
41298         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
41299         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
41300         * MODULES.html.sh: Move 'assert' into the assert section.
41301         Move 'dummy' into the linking section.
41302         Remove ullong_max.
41303         Add section for compatibility checks for POSIX:2001 functions,
41304         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
41305         winsz-ioctl, and winsz-termios into it.
41306         Add lchmod.
41307         Add top-level Misc section and put host-os, perl, and uptime
41308         into it.
41309
41310 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
41311
41312         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
41313         now assume the stdint module.  Do not include inttypes.h.
41314         * lib/fsusage.h: Likewise.
41315         * lib/getndelim2.c: Likewise.
41316         * lib/human.h: Likewise.
41317         * lib/inttostr.h: Likewise.
41318         * lib/obstack.c: Likewise.
41319         * lib/regex_internal.h: Likewise.
41320         * lib/tempname.c: Likewise.
41321         * lib/utimecmp.c: Likewise.
41322         * lib/xstrtol.h: Likewise.
41323
41324         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
41325
41326         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
41327         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
41328         * lib/xtime.h: Likewise.
41329
41330 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
41331
41332         * modules/openat (Files): Add lib/fchmodat.c.
41333         Fixes problem reported by Jay Youngman.
41334
41335 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
41336
41337         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
41338         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
41339
41340 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
41341             Bruno Haible  <bruno@clisp.org>
41342
41343         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
41344         and is a script that invokes bison. Tighten the code. Add comments.
41345
41346 2006-08-18  Jim Meyering  <jim@meyering.net>
41347
41348         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
41349         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
41350         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
41351         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
41352
41353 2006-08-18  Bruno Haible  <bruno@clisp.org>
41354
41355         * modules/bison-i18n: New file.
41356         * MODULES.html.sh (Internationalization functions): Add it.
41357
41358 2006-08-18  Bruno Haible  <bruno@clisp.org>
41359
41360         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
41361         sys/statvfs.h. When getmntinfo was found, check its declaration and
41362         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
41363
41364 2006-08-18  Bruno Haible  <bruno@clisp.org>
41365
41366         * m4/bison-i18n.m4: New file, from bison.
41367
41368 2006-08-18  Bruno Haible  <bruno@clisp.org>
41369
41370         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
41371         (ME_DUMMY): Treat "kernfs" as a dummy.
41372         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
41373
41374 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
41375
41376         Update from coreutils.
41377
41378         2006-08-15  Jim Meyering  <jim@meyering.net>
41379
41380         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
41381
41382         2006-01-17  Jim Meyering  <jim@meyering.net>
41383
41384         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
41385
41386         2006-01-11  Jim Meyering  <jim@meyering.net>
41387
41388         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
41389         Check for the lchmod function.
41390
41391 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
41392
41393         Update from coreutils.
41394
41395         * lib/__fpending.h: Add copyright notice.
41396         * lib/fprintftime.h: Likewise.
41397         * lib/savedir.c: Use (C) in copyright notice.
41398         * lib/savedir.h: Likewise.
41399
41400         2006-08-15  Jim Meyering  <jim@meyering.net>
41401
41402         * lib/at-func.c: New file, with the logic of all emulated at-functions.
41403         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
41404         in support of the EXPECTED_ERRNO macro.
41405         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
41406         definitions.  Instead, define the appropriate symbols and include
41407         "at-func.c".
41408         * lib/mkdirat.c (mkdirat): Likewise.
41409         * lib/fchmodat.c (fchmodat): Likewise.
41410         (ENOSYS): Remove definition.
41411         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
41412         it.  Don't include "unistd--.h" -- it wasn't ever used.
41413
41414         2006-01-17  Jim Meyering  <jim@meyering.net>
41415
41416         Rewrite fts.c not to change the current working directory,
41417         by using openat, fstatat, fdopendir, etc..
41418
41419         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
41420         (HAVE_OPENAT_SUPPORT): Define.
41421         [_LIBC] (fchdir): Don't undef or define; no longer used.
41422         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
41423         Now, this `function' always succeeds, and consumes its file descriptor
41424         parameter -- so callers must not close such FDs.  Update callers.
41425         (diropen_fd, opendirat, cwd_advance_fd): New functions.
41426         (diropen): Add parameter, SP.  Adjust all callers.
41427         Implement using diropen_fd, rather than open.
41428         (fts_open): Initialize new member, fts_cwd_fd.
41429         Remove fts_rft-setting code.
41430         (fts_close): Close fts_cwd_fd, if necessary.
41431         (__opendir2): Define in terms of opendir or opendirat,
41432         depending on whether the FST_NOCHDIR flag is set.
41433         (fts_build): Since fts_safe_changedir consumes its FD, and since
41434         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
41435         and close the dup'd file descriptor upon failure.
41436         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
41437         (fts_safe_changedir): Tweak semantics to reflect that this function
41438         now calls cwd_advance_fd and hence consumes its FD argument.
41439         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
41440         [struct FTS] (fts_rft): Remove now-unused member.
41441         [struct FTS] (fts_cycle.state): Improve comment.
41442
41443         * lib/openat.c (openat_needs_fchdir): New function.
41444         * lib/openat.h (openat_needs_fchdir): Declare it.
41445
41446 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
41447
41448         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
41449         Problem and fix reported by Pádraig Brady in
41450         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
41451
41452 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
41453
41454         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
41455
41456 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
41457
41458         * lib/memcoll.c (memcoll): Optimize for the common case where the
41459         arguments are bytewise equal.
41460
41461 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
41462
41463         * doc/regexprops-generic.texi: Add a copyright notice.
41464
41465 2006-08-15  Bruno Haible  <bruno@clisp.org>
41466
41467         * modules/tmpdir (License): Change to LGPL.
41468
41469 2006-08-15  Bruno Haible  <bruno@clisp.org>
41470
41471         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
41472         module.
41473
41474 2006-08-14  Simon Josefsson  <jas@extundo.com>
41475
41476         * config/srclist.txt: Add gnupload.
41477
41478 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
41479
41480         Change copyright notice from LGPL 2 to GPL 2, since that's the
41481         standard form used in the gnulib repository.
41482         * tests/test-lock.c: Likewise.
41483         * tests/test-stdint.c: Likewise.
41484         * tests/test-tls.c: Likewise.
41485
41486         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
41487         prelude-manager.  User shorter URLs for GNU projects, without '?'.
41488         Add copyright notice.
41489
41490         * check-module: Add copyright notice.  Output a copyright
41491         notice if "--version" is specified.
41492         * modules/COPYING: New file.
41493         * tests/test-getaddrinfo.c: Add copyright notice.
41494         * tests/test-verify.c: Likewise.
41495
41496 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
41497
41498         Change copyright notice from LGPL 2 to GPL 2, since that's the
41499         standard form used in the gnulib repository.
41500         * lib/lock.c: LGPL -> GPL.
41501         * lib/lock.h: Likewise.
41502         * lib/strnlen1.c: Likewise.
41503         * lib/strnlen1.h: Likewise.
41504         * lib/tls.c: Likewise.
41505         * lib/tls.h: Likewise.
41506         * lib/tmpdir.c: Likewise.
41507
41508         * lib/TODO: Remove; this belongs only in coreutils.
41509
41510 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
41511
41512         Add copyright notices to long-enough files that lack them, since
41513         otherwise the files aren't clearly free.  Use the same notice that
41514         getdate.texi already uses.
41515         * doc/alloca-opt.texi: Add copyright notice.
41516         * doc/alloca.texi: Likewise.
41517         * doc/ctime.texi: Likewise.
41518         * doc/functions.texi: Likewise.
41519         * doc/gcd.texi: Likewise.
41520         * doc/gnulib-tool.texi: Likewise.
41521         * doc/inet_ntoa.texi: Likewise.
41522         * doc/visibility.texi: Likewise.
41523
41524         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
41525         * doc/quote.texi: Add copyright notice.
41526
41527         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
41528         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
41529         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
41530         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
41531         is now obsolete, and give a pointer to the Sun list.
41532         Add copyright notice.
41533
41534 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
41535
41536         * config/srclistvars.sh: Add copyright notice.
41537
41538 2006-08-14  Eric Blake  <ebb9@byu.net>
41539
41540         Import the following change from libc:
41541
41542         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
41543
41544         Upstream bug 2997.
41545         * lib/misc/error.c: Add space between program name and message if file
41546         name is missing.
41547
41548 2006-08-12  Karl Berry  <karl@gnu.org>
41549
41550         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
41551         remove, these originate in gnulib now.
41552
41553 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41554
41555         * doc/Makefile (standards.info standards.html standards.dvi):
41556         Also depend on make-stds.texi.
41557
41558 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
41559
41560         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
41561         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
41562
41563         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
41564         in wchar_t.  Problem reported by Eric Blake.
41565
41566         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
41567         LEN is smaller than SIZE.  Suggested by Bruno Haible.
41568         Also, help the compiler to keep LEN in a register.
41569
41570 2006-08-11  Eric Blake  <ebb9@byu.net>
41571
41572         * users.txt: Sort.  Add tar.
41573
41574 2006-08-11  Bruno Haible  <bruno@clisp.org>
41575
41576         * users.txt: New file.
41577
41578 2006-08-11  Bruno Haible  <bruno@clisp.org>
41579
41580         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
41581         before <wchar.h>. Needed for OSF/1 and BSD/OS.
41582
41583 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
41584
41585         * modules/snprintf (Depends-on): Remove minmax.
41586         (Maintainer): Add self and Bruno.
41587
41588 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
41589
41590         * lib/.cppi-disable: Add snprintf.h, socket_.h.
41591         * lib/snprintf.c: Include <errno.h> and <limits.h>.
41592         (EOVERFLOW): Define if the system does not.
41593         Do not include "minmax.h"; it wasn't used.
41594         (snprintf): Don't assume size_t promotes to an unsigned type.
41595         Fix bug when generated string was too long for the buffer: the
41596         buffer's contents are supposed to be the initial prefix of the
41597         output.  Don't assume vasnprintf returns EOVERFLOW if the size
41598         exceeds INT_MAX; do the check ourselves.
41599
41600         Import the following changes from libc:
41601
41602         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
41603
41604         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
41605         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
41606         set wc to the byte which couldn't be converted.
41607         (re_string_reconstruct): Don't clear valid_raw_len before calling
41608         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
41609         tip_context using re_string_context_at.
41610
41611         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
41612
41613         * lib/posix/regex.h: g++ still cannot handled [restrict].
41614
41615         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
41616
41617         * lib/posix/regex.h: Remove special handling for VMS.
41618
41619 2006-08-10  Jim Meyering  <jim@meyering.net>
41620
41621         * modules/same-inode: New module.
41622         * modules/dev-ino: New module.
41623         * modules/cycle-check: Depend on these modules, rather than simply
41624         including their .h files.
41625         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
41626         required via m4/cycle-check.m4.
41627         * modules/same: Depend on new same-inode module, rather than
41628         including same-inode.h.
41629         * modules/chdir-safer: New file.
41630
41631         * modules/chown (Depends-on): Add stat-macros.
41632
41633 2006-08-10  Jim Meyering  <jim@meyering.net>
41634
41635         * m4/cycle-check.m4: New file.
41636         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
41637         * m4/dev-ino.m4, m4/same-inode.m4: New files.
41638
41639 2006-08-10  Eric Blake  <ebb9@byu.net>
41640
41641         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
41642         in from original proposal.
41643
41644 2006-08-10  Eric Blake  <ebb9@byu.net>
41645         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41646
41647         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
41648         namespace.
41649
41650 2006-08-10  Bruno Haible  <bruno@clisp.org>
41651
41652         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
41653         as well.
41654
41655 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
41656
41657         Sync from coreutils.
41658
41659         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
41660
41661         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
41662         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
41663
41664 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
41665
41666         * modules/restrict: Remove; no longer needed now that we assume
41667         Autoconf 2.59 or later.
41668         * MODULES.html.sh: Remove 'restrict'.
41669         * modules/argp (Depends-on): Remove 'restrict'.
41670         * modules/base64 (Depends-on): Likewise.
41671         * modules/gc (Depends-on): Likewise.
41672         * modules/getaddrinfo (Depends-on): Likewise.
41673         * modules/glob (Depends-on): Likewise.
41674         * modules/inet_ntop (Depends-on): Likewise.
41675         * modules/inet_pton (Depends-on): Likewise.
41676         * modules/memxor (Depends-on): Likewise.
41677         * modules/regex (Depends-on): Likewise.
41678         * modules/strtok_r (Depends-on): Likewise.
41679         * modules/time_r (Depends-on): Likewise.
41680
41681 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
41682
41683         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
41684         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
41685         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
41686         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
41687         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
41688         * m4/memxor.m4 (gl_MEMXOR): Likewise.
41689         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
41690         gl_C_RESTRICT replaced by AC_C_RESTRICT.
41691
41692         Merge from coreutils.
41693         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
41694         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
41695         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
41696         * m4/time_r.m4 (gl_TIME_R): Likewise.
41697
41698 2006-08-09  Karl Berry  <karl@gnu.org>
41699
41700         * config/srclist.txt: no more gettext-tools, per Bruno.
41701
41702 2006-08-08  Eric Blake  <ebb9@byu.net>
41703
41704         * modules/verror: New module.
41705         * MODULES.html.sh: Document it.
41706
41707 2006-08-08  Eric Blake  <ebb9@byu.net>
41708
41709         * lib/verror.h, lib/verror.c: New files.
41710
41711 2006-08-08  Eric Blake  <ebb9@byu.net>
41712
41713         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
41714         verror_at_line output complies with GNU Coding Standards even when
41715         file is NULL.
41716
41717 2006-08-07  Bruno Haible  <bruno@clisp.org>
41718
41719         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
41720         versions of AIX.
41721         Reported by Ralf Wildenhues.
41722
41723 2006-08-07  Bruno Haible  <bruno@clisp.org>
41724
41725         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
41726         in an AC_DEFUN. Needed so that the autoconf snippets can use
41727         AC_REQUIRE.
41728
41729 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41730
41731         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41732         Initialize pkgdata_DATA.
41733         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
41734         overriding it.
41735
41736 2006-08-06  Eric Blake  <ebb9@byu.net>
41737
41738         * lib/error.h: Fold in some upstream changes from glibc.
41739         * lib/error.c: Likewise.
41740
41741 2006-08-04  Bruno Haible  <bruno@clisp.org>
41742
41743         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41744         Make the mostlyclean-local rule depend on mostlyclean-generic.
41745         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
41746
41747 2006-07-31  Bruno Haible  <bruno@clisp.org>
41748
41749         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
41750         <stdlib.h>, <string.h>.
41751
41752 2006-07-30  Bruno Haible  <bruno@clisp.org>
41753
41754         * modules/readlink (License): Change to LGPL.
41755
41756 2006-07-30  Bruno Haible  <bruno@clisp.org>
41757
41758         * modules/javaversion (Makefile.am): Distribute javaversion.java and
41759         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
41760         set PKGDATADIR to point to it.
41761
41762 2006-07-30  Bruno Haible  <bruno@clisp.org>
41763
41764         * modules/csharpexec (configure.ac): Comment out macro invocation.
41765         * modules/javaexec (configure.ac): Likewise.
41766         * modules/javacomp-script (configure.ac): Likewise.
41767
41768         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
41769
41770 2006-07-30  Bruno Haible  <bruno@clisp.org>
41771
41772         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
41773         linked-list.
41774
41775 2006-07-30  Bruno Haible  <bruno@clisp.org>
41776
41777         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
41778
41779 2006-07-30  Bruno Haible  <bruno@clisp.org>
41780
41781         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41782         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
41783         get removed.
41784
41785 2006-07-29  Bruno Haible  <bruno@clisp.org>
41786
41787         Make it possible for gnulib-tool to work with locally modified or
41788         augmented gnulib repositories.
41789         * gnulib-tool (func_usage): Document --local-dir option.
41790         (local_gnulib_dir): New variable.
41791         Handle --local-dir option.
41792         (func_lookup_file): New function.
41793         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
41794         (func_get_description, func_get_filelist, func_get_description,
41795         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
41796         func_get_automake_snippet, func_get_include_directive,
41797         func_get_license, func_get_maintainer): Use func_lookup_file.
41798         (func_import, func_create_testdir): Use func_lookup_file.
41799
41800 2006-07-29  Bruno Haible  <bruno@clisp.org>
41801
41802         * modules/setenv (Depends-on): Add unistd.
41803
41804 2006-07-29  Bruno Haible  <bruno@clisp.org>
41805
41806         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
41807
41808 2006-07-29  Bruno Haible  <bruno@clisp.org>
41809
41810         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
41811
41812 2006-07-29  Bruno Haible  <bruno@clisp.org>
41813
41814         * gnulib-tool (import, update): If there is no Makefile.am, look at
41815         aclocal.m4, instead of bailing out.
41816
41817 2006-07-29  Bruno Haible  <bruno@clisp.org>
41818
41819         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
41820         Categorize the options by when they are useful.
41821
41822 2006-07-29  Bruno Haible  <bruno@clisp.org>
41823
41824         * gnulib-tool (func_usage): Document option --no-libtool.
41825         Handle option --no-libtool.
41826         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
41827         for changed semantics of $libtool variable.
41828         (func_import): Likewise. If libtool is not used, show this through
41829         an option --no-libtool.
41830         (func_create_testdir): Update.
41831
41832 2006-07-29  Bruno Haible  <bruno@clisp.org>
41833
41834         * gnulib-tool (func_import): Extend error message about missing
41835         --doc-base.
41836
41837 2006-07-29  Bruno Haible  <bruno@clisp.org>
41838
41839         * gnulib-tool (func_import): Don't create the $docbase directory if
41840         there is no file to store there.
41841
41842 2006-07-29  Bruno Haible  <bruno@clisp.org>
41843
41844         * gnulib-tool (autoconf_minversion): If a --dir option is given and
41845         relevant, look for configure.ac there, not in the current directory.
41846         Also use a simple search for AC_PREREQ, not "autoconf --trace".
41847
41848 2006-07-29  Bruno Haible  <bruno@clisp.org>
41849
41850         * gnulib-tool (SORT): New variable.
41851         (func_usage): Undocument --assume-autoconf option.
41852         Remove --assume-autoconf option handling.
41853         (autoconf_minversion): Determine from the contents of configure.ac.
41854         (func_import): Remove autoconf_minversion handling.
41855         Suggested by Eric Blake.
41856
41857 2006-07-29  Bruno Haible  <bruno@clisp.org>
41858
41859         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
41860
41861 2006-07-29  Bruno Haible  <bruno@clisp.org>
41862
41863         * config/srclist.txt (*setenv.[ch]): Remove rules.
41864
41865 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41866
41867         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
41868
41869 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41870
41871         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
41872         arpa/inet.h.
41873
41874 2006-07-28  Simon Josefsson  <jas@extundo.com>
41875
41876         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
41877         * modules/inet_pton (Depends-on): Likewise.
41878
41879 2006-07-28  Simon Josefsson  <jas@extundo.com>
41880
41881         * m4/netinet_in_h.m4: New file.
41882
41883 2006-07-28  Simon Josefsson  <jas@extundo.com>
41884
41885         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
41886         #include's.
41887
41888 2006-07-28  Simon Josefsson  <jas@extundo.com>
41889
41890         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
41891         #include's.
41892
41893 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
41894
41895         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
41896         setgid on directories only if they set these bits.
41897         * lib/modechange.h: Remove obsolete comment about masks.
41898
41899 2006-07-28  Eric Blake  <ebb9@byu.net>
41900
41901         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
41902         macro expansion.
41903
41904 2006-07-28  Bruno Haible  <bruno@clisp.org>
41905
41906         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
41907
41908 2006-07-28  Bruno Haible  <bruno@clisp.org>
41909
41910         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
41911
41912 2006-07-28  Bruno Haible  <bruno@clisp.org>
41913
41914         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
41915         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
41916         Define fallbacks.
41917         Avoids link error on FreeBSD 4.x.
41918         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41919
41920         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
41921         encoding.
41922         * lib/mbswidth.c (iswcntrl): Likewise.
41923
41924 2006-07-27  Bruno Haible  <bruno@clisp.org>
41925
41926         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
41927         test.
41928
41929 2006-07-27  Bruno Haible  <bruno@clisp.org>
41930
41931         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
41932         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
41933         defined.
41934
41935 2006-07-26  Eric Blake  <ebb9@byu.net>
41936
41937         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
41938
41939 2006-07-26  Eric Blake  <ebb9@byu.net>
41940
41941         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
41942         like mingw that lack mkstemp.
41943         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
41944         avoid compilation warning on mingw.
41945
41946 2006-07-26  Bruno Haible  <bruno@clisp.org>
41947
41948         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
41949         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
41950         INT_FAST*_MIN, INTPTR_MIN.
41951
41952 2006-07-25  Bruno Haible  <bruno@clisp.org>
41953
41954         * modules/version-etc (Depends-on): Add stdarg.
41955
41956 2006-07-25  Bruno Haible  <bruno@clisp.org>
41957
41958         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
41959         complex commands.
41960
41961 2006-07-25  Bruno Haible  <bruno@clisp.org>
41962
41963         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
41964         defined in <stdarg.h> or config.h.
41965
41966 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
41967
41968         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
41969         (gl_STDIO_SAFER): Remove.
41970
41971 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
41972
41973         * MODULES.html.sh (File stream based Input/Output):
41974         Add fopen-safer, tmpfile-safer; remove stdio-safer.
41975         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
41976         * modules/fopen-safer, modules/tmpfile-safer: New files.
41977         * modules/stdio-safer: Remove.
41978
41979 2006-07-24  Bruno Haible  <bruno@clisp.org>
41980
41981         * modules/tmpdir: New file.
41982         * MODULES.html.sh (File system functions): Add it.
41983
41984 2006-07-24  Bruno Haible  <bruno@clisp.org>
41985
41986         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
41987         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
41988
41989 2006-07-24  Bruno Haible  <bruno@clisp.org>
41990
41991         * modules/clean-temp: New file.
41992
41993 2006-07-24  Bruno Haible  <bruno@clisp.org>
41994
41995         * m4/tmpdir.m4: New file, from GNU gettext.
41996
41997 2006-07-24  Bruno Haible  <bruno@clisp.org>
41998
41999         * lib/tmpdir.h: New file, from GNU gettext.
42000         * lib/tmpdir.c: New file, from GNU gettext.
42001
42002 2006-07-24  Bruno Haible  <bruno@clisp.org>
42003
42004         * lib/clean-temp.h: New file, from GNU gettext.
42005         * lib/clean-temp.c: New file, from GNU gettext.
42006
42007 2006-07-23  Eric Blake  <ebb9@byu.net>
42008
42009         * modules/stdio-safer (Files): Add tmpfile-safer.c.
42010         (Depends-on): Add binary-io.
42011
42012 2006-07-23  Eric Blake  <ebb9@byu.net>
42013
42014         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
42015
42016 2006-07-23  Eric Blake  <ebb9@byu.net>
42017
42018         * lib/tmpfile-safer.c: New file.
42019         * lib/stdio-safer.h (fopen_safer): Add prototype.
42020         * lib/stdio--.h (tmpfile): Make safer.
42021
42022 2006-07-23  Bruno Haible  <bruno@clisp.org>
42023
42024         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
42025         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
42026         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
42027         gl_linked_remove_at): Use it.
42028
42029 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42030         and Simon Josefsson <jas@extundo.com>
42031
42032         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
42033
42034         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
42035
42036 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
42037
42038         * modules/close-stream: New file.
42039         * modules/closeout (Description): Make it clear that it exits
42040         with a diagnostic on error.
42041         (Depends-on): Add close-stream.  Remove fpending, stdbool.
42042         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
42043
42044 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
42045
42046         * m4/close-stream.m4: New file.
42047
42048 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
42049
42050         * lib/close-stream.c, lib/close-stream.h: New files.
42051
42052 2006-07-22  Bruno Haible  <bruno@clisp.org>
42053
42054         Merge from GNU gettext 0.15.
42055
42056         2006-05-01  Bruno Haible  <bruno@clisp.org>
42057
42058                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
42059
42060         2006-07-22  Bruno Haible  <bruno@clisp.org>
42061
42062                 * modules/javaversion: New file.
42063                 * MODULES.html.sh (Java): Add javaversion.
42064
42065         2006-03-12  Bruno Haible  <bruno@clisp.org>
42066
42067                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
42068
42069         2005-12-04  Bruno Haible  <bruno@clisp.org>
42070
42071                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
42072                 (untested).
42073
42074         2006-06-21  Bruno Haible  <bruno@clisp.org>
42075
42076                 Avoid warnings from recent versions of mcs.
42077                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
42078                 -o, -L, -r any more. Use options documented since mcs-1.0
42079                 instead. Similarly for -g.
42080
42081         2005-12-04  Bruno Haible  <bruno@clisp.org>
42082
42083                 * build-aux/csharpcomp.sh.in: Suffix for resources is
42084                 .resources, not .resource.
42085
42086         2005-07-09  Bruno Haible  <bruno@clisp.org>
42087
42088                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
42089                 add a .dll suffix.
42090                 Reported by Mark Junker <mjscod@gmx.de>.
42091
42092         2006-07-22  Bruno Haible  <bruno@clisp.org>
42093
42094                 * modules/gettext: Upgrade to gettext-0.15.
42095                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
42096                 m4/visibility.m4.
42097                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
42098
42099 2006-07-22  Bruno Haible  <bruno@clisp.org>
42100
42101         Merge from GNU gettext 0.15.
42102
42103         2006-03-25  Bruno Haible  <bruno@clisp.org>
42104
42105                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
42106
42107         2006-07-21  Bruno Haible  <bruno@clisp.org>
42108
42109                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
42110                 "1.1".
42111
42112         2006-05-09  Bruno Haible  <bruno@clisp.org>
42113
42114                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
42115                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
42116                 for the conftestver execution.
42117
42118         2006-05-01  Bruno Haible  <bruno@clisp.org>
42119
42120                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
42121                 optional target-version argument. Verify that the compiler
42122                 groks source of the specified source-version, or add -source
42123                 option as necessary. Verify that the compiler produces
42124                 bytecode in the specified target-version, or add -target and
42125                 -source options as necessary. Make the result of the test
42126                 available as variable CONF_JAVAC. Also log error output in
42127                 config.log.
42128
42129         2006-03-11  Bruno Haible  <bruno@clisp.org>
42130
42131                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
42132
42133         2006-05-09  Bruno Haible  <bruno@clisp.org>
42134
42135                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
42136                 CLASSPATH_SEPARATOR to a semicolon.
42137
42138         2006-03-12  Bruno Haible  <bruno@clisp.org>
42139
42140                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
42141                 available as variable CONF_JAVA, for subsequent autoconf
42142                 tests. Also log error output in config.log.
42143
42144         2006-07-19  Bruno Haible  <bruno@clisp.org>
42145
42146                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
42147                 that getline works on glibc2 systems. Needed to avoid trouble
42148                 in relocatable.c.
42149                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
42150
42151         2005-12-04  Bruno Haible  <bruno@clisp.org>
42152
42153                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
42154                 launcher (untested).
42155
42156         2005-12-04  Bruno Haible  <bruno@clisp.org>
42157
42158                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
42159
42160         2006-07-22  Bruno Haible  <bruno@clisp.org>
42161
42162                 * gettext.m4: Update from GNU gettext-0.15.
42163                 * nls.m4: Likewise.
42164                 * po.m4: Likewise.
42165                 * inttypes-pri.m4: Likewise.
42166                 * inttypes-h.m4: Renamed from inttypes.m4.
42167                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
42168
42169 2006-07-22  Bruno Haible  <bruno@clisp.org>
42170
42171         Merge from GNU gettext 0.15.
42172
42173         2005-07-05  Bruno Haible  <bruno@clisp.org>
42174
42175                 * printf-args.c (printf_fetchargs): Work around broken
42176                 definition of wint_t on mingw.
42177
42178         2005-02-12  Bruno Haible  <bruno@clisp.org>
42179
42180                 * xallocsa.h: Add extern "C" for C++.
42181
42182         2006-05-17  Bruno Haible  <bruno@clisp.org>
42183
42184                 Cygwin portability.
42185                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
42186
42187         2006-04-30  Bruno Haible  <bruno@clisp.org>
42188
42189                 * progreloc.c: Include <mach-o/dyld.h> if available.
42190                 (find_executable): Use _NSGetExecutablePath when possible.
42191
42192         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
42193
42194                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
42195                 function.
42196
42197         2005-12-29  Bruno Haible  <bruno@clisp.org>
42198
42199                 * progreloc.c (set_program_name_and_installdir): Fix
42200                 compilation error.
42201
42202         2005-12-04  Bruno Haible  <bruno@clisp.org>
42203
42204                 Cygwin portability.
42205                 * progreloc.c: Include <windows.h> also on Cygwin.
42206                 (find_executable): Add support for Cygwin.
42207                 (set_program_name_and_installdir): Handle also platforms with
42208                 nonempty EXEEXT.
42209
42210         2006-07-11  Bruno Haible  <bruno@clisp.org>
42211
42212                 * javacomp.c: Fix a comment.
42213                 Reported by Jim Meyering.
42214
42215         2006-04-30  Bruno Haible  <bruno@clisp.org>
42216
42217                 * javacomp.h (compile_java_class): Add source_version,
42218                 target_version arguments.
42219                 * javacomp.c: Rewritten to choose only a compiler that
42220                 respects the specified source_version and target_version.
42221
42222         2006-06-27  Bruno Haible  <bruno@clisp.org>
42223
42224                 Assume correct S_ISDIR macro.
42225                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
42226
42227         2006-07-22  Bruno Haible  <bruno@clisp.org>
42228
42229                 * javaversion.h: New file, from GNU gettext.
42230                 * javaversion.c: New file, from GNU gettext.
42231                 * javaversion.java: New file, from GNU gettext.
42232                 * javaversion.class: New file, from GNU gettext.
42233
42234         2006-05-17  Bruno Haible  <bruno@clisp.org>
42235
42236                 Cygwin portability.
42237                 * javaexec.c (execute_java_class): Test for jview program
42238                 also on Cygwin.
42239
42240         2006-04-09  Bruno Haible  <bruno@clisp.org>
42241
42242                 * fatal-signal.c: Don't include string.h.
42243                 (at_fatal_signal): Use a copying loop instead of memcpy.
42244
42245         2005-12-04  Bruno Haible  <bruno@clisp.org>
42246
42247                 * csharpexec.c: Add support for 'clix' launcher (untested).
42248                 (execute_csharp_using_sscli): New function.
42249                 (execute_csharp_program): Call it.
42250
42251         2006-06-21  Bruno Haible  <bruno@clisp.org>
42252
42253                 Avoid warnings from recent versions of mcs.
42254                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
42255                 -o, -L, -r any more. Use options documented since mcs-1.0
42256                 instead. Similarly for -g.
42257
42258         2005-07-09  Bruno Haible  <bruno@clisp.org>
42259
42260                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
42261                 add a .dll suffix.
42262                 Reported by Mark Junker <mjscod@gmx.de>.
42263
42264         2006-06-17  Bruno Haible  <bruno@clisp.org>
42265
42266                 * config.charset: Update for NetBSD 3.0.
42267
42268         2006-05-17  Bruno Haible  <bruno@clisp.org>
42269
42270                 Cygwin portability.
42271                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
42272
42273         2006-05-16  Bruno Haible  <bruno@clisp.org>
42274
42275                 * localcharset.c [CYGWIN]: Include <windows.h>.
42276                 (get_charset_aliases): For Cygwin, return the same CPxxx
42277                 aliases list as under WIN32.
42278                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
42279                 the environment variables. Fall back to GetACP().
42280
42281         2006-04-05  Bruno Haible  <bruno@clisp.org>
42282
42283                 * config.charset: Update Juan Manuel Guerrero's address.
42284
42285         2005-02-12  Bruno Haible  <bruno@clisp.org>
42286
42287                 * allocsa.h: Add extern "C" for C++.
42288
42289         2005-02-10  Bruno Haible  <bruno@clisp.org>
42290
42291                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
42292                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
42293
42294         2006-07-22  Bruno Haible  <bruno@clisp.org>
42295
42296                 * gettext.h: Update to GNU gettext-0.15.
42297
42298 2006-07-22  Bruno Haible  <bruno@clisp.org>
42299
42300         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
42301         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
42302         lib-prefix.m4, longdouble.m4, ssize_t.m4.
42303
42304 2006-07-21  Eric Blake  <ebb9@byu.net>
42305
42306         * modules/stdlib-safer: New file.
42307         * MODULES.html.sh (File stream based Input/Output): Add
42308         stdlib-safer.
42309
42310 2006-07-21  Eric Blake  <ebb9@byu.net>
42311
42312         * lib/stdlib-safer.h: New file from coreutils, required by
42313         stdlib--.h.
42314
42315 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
42316
42317         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
42318
42319 2006-07-20  Bruno Haible  <bruno@clisp.org>
42320
42321         * gnulib-tool: Recognize new option --assume-autoconf.
42322         (autoconf_minversion): New variable.
42323         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
42324
42325 2006-07-20  Bruno Haible  <bruno@clisp.org>
42326
42327         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
42328
42329 2006-07-19  Derek R. Price  <derek@ximbiot.com>
42330
42331         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
42332         Reindent and repaginate.
42333
42334 2006-07-19  Derek Price  <derek@ximbiot.com>
42335
42336         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
42337         Correct grammar.
42338
42339 2006-07-17  Bruno Haible  <bruno@clisp.org>
42340
42341         * modules/list: New file.
42342         * modules/array-list: New file.
42343         * modules/carray-list, modules/carray-list-tests: New files.
42344         * modules/linked-list, modules/linked-list-tests: New files.
42345         * modules/avltree-list, modules/avltree-list-tests: New files.
42346         * modules/rbtree-list, modules/rbtree-list-tests: New files.
42347         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
42348         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
42349         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
42350         * modules/oset: New file.
42351         * modules/array-oset: New file.
42352         * modules/avltree-oset, modules/avltree-oset-tests: New files.
42353         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
42354         * tests/test-carray_list.c: New file.
42355         * tests/test-linked_list.c: New file.
42356         * tests/test-avltree_list.c: New file.
42357         * tests/test-rbtree_list.c: New file.
42358         * tests/test-linkedhash_list.c: New file.
42359         * tests/test-avltreehash_list.c: New file.
42360         * tests/test-rbtreehash_list.c: New file.
42361         * tests/test-avltree_oset.c: New file.
42362         * tests/test-rbtree_oset.c: New file.
42363         * MODULES.html.sh (Container data structures): New section.
42364
42365 2006-07-17  Bruno Haible  <bruno@clisp.org>
42366
42367         * m4/gl_list.m4: New file.
42368
42369 2006-07-17  Bruno Haible  <bruno@clisp.org>
42370
42371         * lib/gl_list.h: New file.
42372         * lib/gl_list.c: New file.
42373         * lib/gl_array_list.h: New file.
42374         * lib/gl_array_list.c: New file.
42375         * lib/gl_carray_list.h: New file.
42376         * lib/gl_carray_list.c: New file.
42377         * lib/gl_linked_list.h: New file.
42378         * lib/gl_linked_list.c: New file.
42379         * lib/gl_anylinked_list1.h: New file.
42380         * lib/gl_anylinked_list2.h: New file.
42381         * lib/gl_avltree_list.h: New file.
42382         * lib/gl_avltree_list.c: New file.
42383         * lib/gl_anyavltree_list1.h: New file.
42384         * lib/gl_anyavltree_list2.h: New file.
42385         * lib/gl_rbtree_list.h: New file.
42386         * lib/gl_rbtree_list.c: New file.
42387         * lib/gl_anyrbtree_list1.h: New file.
42388         * lib/gl_anyrbtree_list2.h: New file.
42389         * lib/gl_anytree_list1.h: New file.
42390         * lib/gl_anytree_list2.h: New file.
42391         * lib/gl_linkedhash_list.h: New file.
42392         * lib/gl_linkedhash_list.c: New file.
42393         * lib/gl_anyhash_list1.h: New file.
42394         * lib/gl_anyhash_list2.h: New file.
42395         * lib/gl_avltreehash_list.h: New file.
42396         * lib/gl_avltreehash_list.c: New file.
42397         * lib/gl_rbtreehash_list.h: New file.
42398         * lib/gl_rbtreehash_list.c: New file.
42399         * lib/gl_anytreehash_list1.h: New file.
42400         * lib/gl_anytreehash_list2.h: New file.
42401
42402         * lib/gl_oset.h: New file.
42403         * lib/gl_oset.c: New file.
42404         * lib/gl_array_oset.h: New file.
42405         * lib/gl_array_oset.c: New file.
42406         * lib/gl_avltree_oset.h: New file.
42407         * lib/gl_avltree_oset.c: New file.
42408         * lib/gl_rbtree_oset.h: New file.
42409         * lib/gl_rbtree_oset.c: New file.
42410         * lib/gl_anytree_oset.h: New file.
42411
42412 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
42413
42414         * m4/mkancesdirs.m4: New file.
42415         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
42416         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
42417         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
42418         it.
42419
42420 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
42421
42422         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
42423         * lib/mkancesdirs.h: New files.
42424         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
42425         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
42426         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
42427         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
42428         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
42429         callers changed.  Revamp internals significantly, by not
42430         attempting to create directories that are temporarily more
42431         permissive than the final results.  Do not attempt to use
42432         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
42433         This removes some race conditions, fixes some bugs, and simplifies
42434         things.  Use new dirchownmod function to do owner and mode changes.
42435         * lib/mkdir-p.h: Likewise.
42436         * lib/modechange.c (octal_to_mode): New function.
42437         (struct mode_change): New member mentioned.
42438         (make_node_op_equals): New arg mentioned.  All callers changed.
42439         (mode_compile): Keep track of which mode bits the user has explicitly
42440         mentioned.
42441         (mode_adjust): New arg DIR, so that we implement the X op correctly.
42442         New arg PMODE_BITS, to keep track of which mode bits the user
42443         mentioned; it treats S_ISUID and S_ISGID speciall.
42444         All callers changed.
42445         * lib/modechange.h: Likewise.
42446
42447 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
42448
42449         * MODULES.html.sh: Add mkancestors.
42450         * modules/mkancesdirs: New module.
42451         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
42452         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
42453         The chdir-safer and afs files are now orphans; I'll remove them
42454         unless someone speaks up.
42455         Add lib/dirchownmod.c, lib/dirchownmod.h.
42456         (Depends-on): Remove alloca, chown, save-cwd, dirname.
42457         Add lchown, mkancesdirs.
42458         (Maintainer): Add self.
42459
42460 2006-07-15  Karl Berry  <karl@gnu.org>
42461
42462         * gnulib-tool: help message wording/arrangement.
42463
42464 2006-07-14  Simon Josefsson  <jas@extundo.com>
42465
42466         * doc/gnulib.texi (Libtool and Windows): New section.
42467
42468 2006-07-12  Simon Josefsson  <jas@extundo.com>
42469
42470         * modules/gendocs (License): Fix license, approved by Karl.
42471
42472 2006-07-12  Eric Blake  <ebb9@byu.net>
42473
42474         * MODULES.html.sh: Add gendocs.
42475
42476 2006-07-11  Eric Blake  <ebb9@byu.net>
42477
42478         * modules/fdl: New module, to install doc/fdl.texi.
42479         * MODULES.html.sh: Add new section for documentation modules.
42480         * gnulib-tool: Avoid space-tab.
42481         (--doc-base): New option, to manage files from doc.
42482
42483 2006-07-11  Eric Blake  <ebb9@byu.net>
42484
42485         * m4/absolute-header.m4: Fix comments to match recent change.
42486
42487 2006-07-11  Eric Blake  <ebb9@byu.net>
42488
42489         * gnulib-tool: List --doc-base before --tests-base.
42490
42491 2006-07-11  Derek R. Price  <derek@ximbiot.com>
42492
42493         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
42494
42495 2006-07-11  Bruno Haible  <bruno@clisp.org>
42496
42497         * README: Mention where to put documentation.
42498
42499 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42500
42501         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
42502
42503 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
42504
42505         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
42506         to stdint.m4.
42507
42508 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
42509
42510         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
42511         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
42512         "no/such/file/stdint.h" when there is no such file, so that
42513         the resulting C code can be parsed by dodgy compilers.
42514         Problems reported by Bob Proulx.
42515
42516 2006-07-10  Derek R. Price  <derek@ximbiot.com>
42517
42518         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
42519         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
42520         macros into the GNU _D_EXACT_NAMLEN.
42521         * lib/savedir.c:  Likewise.
42522         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
42523
42524 2006-07-10  Derek R. Price  <derek@ximbiot.com>
42525         and Paul Eggert  <eggert@cs.ucla.edu>
42526
42527         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
42528         * m4/savedir.m4:
42529         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
42530         macros into the GNU _D_EXACT_NAMLEN.
42531
42532 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
42533
42534         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
42535         around the absolute name, to work around a problem with the HP-UX
42536         11.23 native C compiler, reported by Bob Proulx.
42537
42538 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
42539
42540         * doc/maintain.texi, make-stds.texi: Sync from
42541         <http://savannah.gnu.org/projects/gnustandards>.
42542
42543 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
42544
42545         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
42546
42547 2006-07-09  Jim Meyering  <jim@meyering.net>
42548
42549         * m4/glob.m4: Remove a doubled word in a comment.
42550
42551 2006-07-09  Jim Meyering  <jim@meyering.net>
42552
42553         * lib/argp-pv.c: Remove a doubled word in a comment.
42554         * lib/check-version.c (check_version): Likewise.
42555         * lib/javacomp.c (compile_java_class): Likewise.
42556
42557 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
42558
42559         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
42560         for the benefit of people using Autoconf 2.60.  If you want to
42561         support older Autoconf versions you can copy m4/onceonly_2_57.m4
42562         (or m4/onceonly.m4, if pre-2.57) manually.
42563
42564 2006-07-08  Jim Meyering  <jim@meyering.net>
42565
42566         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
42567         comment.
42568         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
42569         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
42570         comment.
42571
42572 2006-07-08  Jim Meyering  <jim@meyering.net>
42573
42574         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
42575
42576 2006-07-07  Simon Josefsson  <jas@extundo.com>
42577
42578         * tests/test-crc.c: Change expected crc value, the test vector
42579         were probably computed using the old broken crc.c?
42580
42581 2006-07-06  Simon Josefsson  <jas@extundo.com>
42582
42583         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
42584         now the canonical place for the M4 file).
42585
42586         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
42587         from the sys_socket dependency now.
42588
42589         * modules/inet_pton (Files): Ditto.
42590
42591         * modules/inet_ntop (Files): Ditto.
42592
42593 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
42594
42595         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
42596         not gl_PREREQ_GETUSERSHELL.
42597
42598 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42599
42600         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
42601         with only one argument, for Autoconf 2.60.
42602         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
42603         expand to nothing, so add a shell command to avoid syntax error.
42604         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
42605
42606 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42607
42608         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
42609
42610 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
42611
42612         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
42613         no longer needed.  Check for isblank decl.
42614         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
42615         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
42616         of existence.
42617
42618 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
42619
42620         * lib/getloadavg.c: Use __VMS, not VMS.
42621         * lib/getopt.c: Likewise.
42622         * lib/getpagesize.h: Likewise.
42623         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
42624         and probably does not work.
42625
42626 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
42627
42628         * lib/.cppi-disable: Add wcwidth.
42629         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
42630         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
42631         (ISGRAPH): Remove.  All uses changed to isgraph.
42632         (FOLD) [!defined _LIBC]: Remove special case.
42633         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
42634         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
42635         HAVE_ISBLANK.
42636         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
42637         case.
42638
42639 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
42640
42641         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
42642         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
42643         brackets.  Other minor changes to suppress some compiler
42644         warnings.
42645
42646 2006-07-06  Derek R. Price  <derek@ximbiot.com>
42647         and Paul Eggert  <eggert@cs.ucla.edu>
42648
42649         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
42650         of invoking obsolescent AC_HEADER_DIRENT macro.
42651         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
42652         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
42653         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
42654         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
42655         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
42656         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
42657         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
42658         * m4/readdir.m4: Remove; no longer needed.
42659
42660 2006-07-06  Derek R. Price  <derek@ximbiot.com>
42661         and Paul Eggert  <eggert@cs.ucla.edu>
42662
42663         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
42664         Don't worry about this obsolete case any more.
42665         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
42666         directories.
42667         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
42668         worry about this obsolete case any more.
42669         * lib/fts.c: Likewise.
42670         * lib/getcwd.c: Likewise.
42671         * lib/glob.h: Likewise.
42672         * lib/savedir.c: Likewise.
42673
42674 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
42675
42676         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
42677         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
42678         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
42679         needed.
42680         All uses removed.
42681         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
42682         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
42683         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
42684         needed.
42685         * m4/getdate.m4 (gl_GETDATE): Likewise.
42686         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
42687         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
42688         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
42689         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
42690         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
42691         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
42692         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
42693         needed.
42694
42695 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
42696
42697         * lib/memcasecmp.c: Include <limits.h>.
42698         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
42699         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
42700         Don't assume isdigit succeeds only on '0' through '9'.
42701
42702 2006-07-05  Eric Blake  <ebb9@byu.net>
42703
42704         * modules/getaddrinfo (Depends-on): Add snprintf.
42705
42706 2006-07-05  Eric Blake  <ebb9@byu.net>
42707
42708         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
42709         to avoid 'header present but could not be compiled' on cygwin.
42710
42711 2006-07-05  Eric Blake  <ebb9@byu.net>
42712
42713         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
42714         missing from netdb.h.
42715         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
42716
42717 2006-07-05  Derek R. Price  <derek@ximbiot.com>
42718
42719         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
42720         no longer needed.
42721         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
42722         * m4/getdate.m4 (gl_GETDATE): Likewise.
42723         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
42724         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
42725         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
42726         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
42727         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
42728
42729 2006-07-05  Derek R. Price  <derek@ximbiot.com>
42730
42731         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
42732         All uses of is_space replaced by isspace.
42733         * lib/exit.h: Don't talk about STDC_HEADERS.
42734         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
42735         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
42736         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
42737         replaced by isprint etc.
42738         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
42739         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
42740         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
42741         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
42742         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
42743         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
42744
42745 2006-07-05  Bruno Haible  <bruno@clisp.org>
42746
42747         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
42748         the function exists, before testing against AIX.
42749         Reported by Martin Lambers <marlam@marlam.de>.
42750
42751 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
42752
42753         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
42754         From Mark D. Baushke.
42755
42756 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
42757
42758         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
42759         to the absolute name, not just one, to bypass Sun C 5.8's
42760         "warning: #include of /usr/include/... may be non-portable".
42761
42762 2006-07-04  Eric Blake  <ebb9@byu.net>
42763
42764         * modules/dirname-tests: New test module.
42765         * tests/test-dirname.c: New file, replacing dirname.c
42766         TEST_DIRNAME section that was recently deleted.
42767
42768 2006-07-04  Bruno Haible  <bruno@clisp.org>
42769
42770         Assume ANSI C header files and <ctype.h> functions.
42771         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
42772         (mbsnwidth): Use isprint, iscntrl instead.
42773
42774 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
42775
42776         Merge from coreutils.
42777         * MODULES.html.sh: Add xstrtold.
42778         * modules/xstrtold: New file.
42779         * modules/cycle-check (Files): Add lib/same-inode.h.
42780         * modules/dirname (Files): Add m4/double-slash-root.m4.
42781         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
42782         * modules/mkdir-p (Files): Add lib/same-inode.h.
42783         * modules/same (Files): Add lib/same-inode.h.
42784
42785 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
42786
42787         * m4/absolute-header.m4: Renamed from full-header-path.m4.
42788         This is to keep the terminology clean; POSIX talks about
42789         "absolute pathnames", not "full pathnames", but the GNU
42790         Coding Standards say to use "path" for something else;
42791         so use "absolute" to keep both sides happy.
42792         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
42793         Set gl_absolute_header, not gl_full_header_path.
42794         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
42795         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
42796         All uses changed.
42797
42798         Merge from coreutils.
42799
42800         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
42801
42802         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
42803         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
42804         want to require the building of c-strtod.o.
42805         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
42806         needs -lm directly.
42807         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
42808
42809         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
42810
42811         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
42812         --as-needed option if available.  Problem reported by Albert Chin in
42813         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
42814         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
42815         cc merely issues a bunch of annoying warnings for --as-needed
42816         (this problem was reported by Bob Proulx).  Also, try linking with
42817         -lm to detect a bug in binutils 2.16 (this problem was reported
42818         by Ralf Wildenhues).
42819
42820         2006-06-18  Jim Meyering  <jim@meyering.net>
42821
42822         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
42823         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
42824         macro.
42825         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
42826         also check for glibc-2.4's abort-inducing bug.
42827
42828         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
42829         Low-probability clean-up should be to use rmdir to get rid of
42830         the just-created directory, not unlink.
42831
42832         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
42833         configure fail, and request a bug report to inform us about it.
42834         Add a comment that, barring reports to the contrary, in 2007 we'll
42835         assume ftruncate is universally available.
42836
42837         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
42838
42839         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
42840
42841         2006-03-12  Jim Meyering  <jim@meyering.net>
42842
42843         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
42844         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
42845         * m4/same.m4 (gl_SAME): Likewise.
42846         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
42847
42848         2006-03-11  Eric Blake  <ebb9@byu.net>
42849
42850         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
42851         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
42852         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
42853         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
42854
42855 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
42856
42857         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
42858         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
42859         reported by Mark D. Baushke, one in
42860         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
42861
42862         Merge from coreutils.
42863
42864         * lib/.cppi-disable: Add stdint_.h.
42865         * lib/.cvsignore: Add stdint.h.
42866
42867         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
42868
42869         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
42870         both double and long double versions.
42871         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
42872         * lib/xstrtold.c: New file.
42873         * lib/xstrtod.h (xstrtold): New decl.
42874
42875         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
42876
42877         * lib/filemode.c (setst): Remove.
42878         (strmode): Rewrite to avoid setst.  This makes the code shorter,
42879         (arguably) clearer, and the generated code is a bit smaller on my
42880         Debian GNU/Linux stable x86 host.
42881
42882         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
42883
42884         * lib/filemode.c: Include "filemode.h" first, to test the interface.
42885         Assume that filemode.h includes sys/types.h and sys/stat.h.
42886         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
42887         (ftypelet): Reorder to put common cases first, for efficiency.
42888         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
42889         to do 'M'.
42890         (strmode): Renamed from mode_string, and now stores 12 bytes instead
42891         of 10, for compatibility with FreeBSD.  All callers changed.
42892         (filemodestring): Now stores 12 bytes instead of 10, and sets file
42893         types that can't be deduced solely from st_mode.  First arg is now a
42894         const pointer.
42895         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
42896         (strmode): Renamed from mode_string.
42897         (filemodestring): New decl.
42898         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
42899         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
42900         needed.
42901         (S_ISPORT, S_ISWHT): New macros, if not already defined.
42902
42903         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
42904
42905         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
42906         fsusage.h now does that.  Include fsusage.h first, to test interface.
42907         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
42908         at most one method (the old code could have generated decls that
42909         didn't conform to C89, not that this was ever exercised).
42910         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
42911
42912         2006-03-19  Jim Meyering  <jim@meyering.net>
42913
42914         Work even in a chroot where d_ino values for entries in "/"
42915         don't match the stat.st_ino values for the same names.
42916         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
42917         number, iterate through all entries again, using lstat instead.
42918         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
42919         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
42920
42921         * lib/getcwd.c (__getcwd): Clarify a comment.
42922         Use memcpy in place of a call to strcpy.
42923
42924         2006-03-12  Jim Meyering  <jim@meyering.net>
42925
42926         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
42927         matches that of the current directory (which we're about to chdir ".."
42928         out of), then save the dev-ino of the parent, instead.
42929
42930         * lib/same-inode.h (SAME_INODE): New file/macro.
42931         * lib/chdir-safer.c (SAME_INODE): Remove definition.
42932         Include "same-inode.h", instead.
42933         * lib/same.c: Likewise.
42934         * lib/cycle-check.h: Include "same-inode.h".
42935         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
42936         * lib/cycle-check.c (SAME_INODE): Remove definition.
42937         * lib/root-dev-ino.h: Include "same-inode.h".
42938
42939         2006-03-11  Eric Blake  <ebb9@byu.net>
42940
42941         * lib/same.c (same_name): s/base_name/last_component/
42942         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
42943         * lib/filenamecat.c (file_name_concat): Likewise.
42944
42945         2006-03-11  Eric Blake  <ebb9@byu.net>,
42946                     Paul Eggert  <eggert@cs.ucla.edu>
42947
42948         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
42949         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
42950         drive prefix.
42951         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
42952         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
42953         (last_component): New method.
42954         * lib/dirname.c (dir_len): Determine when drive letters need a
42955         subsequent slash.  Preserve // when it is special.
42956         (dir_name): Don't append dot when drive letter is absolute.
42957         [TEST_DIRNAME]: Move into a full-blown gnulib test.
42958         * lib/basename.c (base_name): New semantics - malloc the result.
42959         Preserve // when it is special.  Preserve relative files that look
42960         like drive letters.
42961         (base_len): Preserve // when it is special.
42962         (last_component): New method, similar to old base_name semantics.
42963         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
42964         base_name.  Strip redundant slashes from ///.
42965
42966 2006-07-03  Jim Meyering  <jim@meyering.net>
42967
42968         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
42969         macro is used before the first cycle_check call.
42970
42971 2006-07-03  Eric Blake  <ebb9@byu.net>
42972
42973         * modules/dirname (Depends-on): Add xstrndup.
42974
42975 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
42976
42977         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
42978         test cases, so that config.log is a bit easier to follow.
42979
42980 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
42981
42982         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
42983         both are 64 bits, since this seems to be the tradition, and this
42984         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
42985         we ever run into a host that prefers long long to long in this
42986         case, we'll need another configure-time test.  Problem reported by
42987         Jim Meyering.
42988
42989 2006-07-02  Eric Blake  <ebb9@byu.net>
42990
42991         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
42992
42993 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
42994
42995         * modules/inttypes (Depends-on): No longer depends on stdint.
42996         * modules/stdint (Description): Say more about assumptions.
42997         Say that the fast types might differ.  Say macros are used.
42998         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
42999         (Makefile.am): Revise list of substituted symbols to match
43000         new stdint.m4.
43001         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
43002         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
43003         * tests/test-stdint.c (verify_same_types)
43004         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
43005         the code conforms to C99/C89.
43006         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
43007         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
43008
43009 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
43010
43011         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
43012         but fix a bug, by requiring at least 64 bits.
43013         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
43014         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
43015         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
43016         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
43017
43018         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
43019         changes.  Make 2.59 a prerequisite.  Check and substitute for
43020         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
43021         inttypes.h.  Do not use special include files; just use the
43022         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
43023         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
43024         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
43025         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
43026         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
43027         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
43028         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
43029         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
43030         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
43031         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
43032         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
43033         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
43034         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
43035         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
43036         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
43037         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
43038         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
43039         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
43040         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
43041         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
43042         WINT_MAX.  Check for C99 conformance more strictly, by detecting
43043         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
43044         not check for things that C99 does not require, e.g., int8_t.  If
43045         a test isn't needed unless <stdint.h> isn't working, and is
43046         unlikely to be needed for any other reason, then don't do it
43047         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
43048         size_t, since we assume C89 freestanding at least.  Do not check
43049         for sig_atomic_t, wchar_t, or wint_t, since the code now does
43050         the right thing even if the types are not defined.  Instead use:
43051         (gl_STDINT_TYPE_PROPERTIES): New macro.
43052         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
43053         testing whether <sys/types.h> clashes, as Autoconf does this for
43054         us now.  All uses removed.
43055         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
43056         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
43057         (gl_CHECK_TYPE_SAME):
43058         Remove; no longer needed.
43059         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
43060         exists, since we'll return 0 anyway in that case.
43061         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
43062
43063 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
43064
43065         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
43066         possible collision with system files.
43067         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
43068         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
43069         WCHAR_MIN and WCHAR_MAX in this case.
43070         (<stddef.h>): Do not include; no longer needed.
43071         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
43072         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
43073         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
43074         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
43075         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
43076         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
43077         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
43078         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
43079         !defined(__c99))]: Include in this case too, since it's harmless
43080         now.
43081         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
43082         dangerous to do so.
43083         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
43084         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
43085         (_STDINT_MIN, _STDINT_MAX): New macros.
43086         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
43087         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
43088         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
43089         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
43090         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
43091         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
43092         macros, not typedefs; this simplifies things quite a bit.
43093         Use long int for all types narrower than int64_t.
43094         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
43095         Define in terms of long long int or int64_t or long int,
43096         not int64_t or int32_t.  This saves some compile-time testing.
43097         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
43098         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
43099         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
43100         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
43101         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
43102         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
43103         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
43104         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
43105         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
43106         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
43107         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
43108         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
43109         undef any previous version and define our own version, for
43110         simplicity and consistency with the new macros for types.
43111         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
43112         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
43113         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
43114         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
43115         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
43116         @WINT_T_SUFFIX@ to keep things simple here.
43117         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
43118         Simplify by assuming typical 8/16/32/64 host, since we're
43119         already doing that elsewhere anyway.
43120         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
43121         and assume long long int is 64 bits if available.  This
43122         speeds up 'configure'.
43123
43124 2006-07-01  Eric Blake  <ebb9@byu.net>
43125
43126         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
43127         Reported by Andreas Buening.
43128
43129 2006-07-01  Eric Blake  <ebb9@byu.net>
43130
43131         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
43132
43133 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
43134
43135         * lib/getaddrinfo.c: fixed typo
43136
43137 2006-06-29  Jim Meyering  <jim@meyering.net>
43138
43139         * modules/strftime (Maintainer): Add my name, since with the
43140         FPRINTFTIME changes strftime.c has forked from glibc.
43141
43142 2006-06-29  Eric Blake  <ebb9@byu.net>
43143
43144         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
43145
43146 2006-06-29  Eric Blake  <ebb9@byu.net>
43147
43148         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
43149
43150 2006-06-29  Eric Blake  <ebb9@byu.net>
43151
43152         * lib/stat_.h: New file.
43153
43154 2006-06-29  Eric Blake  <ebb9@byu.net>
43155
43156         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
43157         unused static function.
43158
43159 2006-06-29  Eric Blake  <ebb9@byu.net>
43160
43161         * doc/functions.texi (Function Portability): Document missing lstat
43162         on mingw.
43163
43164 2006-06-29  Eric Blake  <ebb9@byu.net>
43165
43166         * MODULES.html.sh: Add sys_stat.
43167         * modules/sys_stat: New module.
43168         * modules/mkstemp (Depends-on): Add sys_stat.
43169
43170 2006-06-29  Derek R. Price  <derek@ximbiot.com>
43171
43172         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
43173
43174 2006-06-29  Derek R. Price  <derek@ximbiot.com>
43175
43176         * m4/c-bs-a.m4: Removed.
43177
43178 2006-06-29  Derek R. Price  <derek@ximbiot.com>
43179
43180         * lib/strftime.c: Assume strftime() exists.
43181
43182 2006-06-29  Derek Price  <derek@ximbiot.com>
43183
43184         * modules/c-bs-a: Removed - \a is C89.
43185         * MODULES.html.sh: Remove c-bs-a.
43186
43187 2006-06-29  Bruno Haible  <bruno@clisp.org>
43188
43189         * modules/wcwidth (License): Change to LGPL.
43190
43191 2006-06-28  Simon Josefsson  <jas@extundo.com>
43192
43193         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
43194         on _WIN32.
43195
43196         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
43197         getnameinfo.
43198
43199 2006-06-28  Simon Josefsson  <jas@extundo.com>
43200
43201         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
43202
43203 2006-06-28  Simon Josefsson  <jas@extundo.com>
43204
43205         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
43206         functions there.  It will succeed on Windows XP, but on Windows
43207         2000 and (presumably) earlier, it will fail, and use the internal
43208         re-implementation.
43209         (use_win32_p): New function.
43210         (getaddrinfo): Use strtoul on servname, to support numeric ports.
43211         Support AI_NUMERICSERV to disable getservbyname.
43212         (getnameinfo): New function, only supports
43213         NI_NUMERICHOST|NI_NUMERICSERV for now.
43214
43215         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
43216         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
43217         getnameinfo.
43218
43219 2006-06-28  Eric Blake  <ebb9@byu.net>
43220
43221         * modules/wcwidth: New file.
43222         * modules/mbchar (Depends-on): Add wcwidth.
43223         * modules/mbswidth (Depends-on): Add wcwidth.
43224         * MODULES.html.sh: Add wcwidth.
43225
43226 2006-06-28  Eric Blake  <ebb9@byu.net>
43227
43228         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
43229         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
43230
43231 2006-06-28  Eric Blake  <ebb9@byu.net>
43232
43233         * lib/xvasprintf.h: Fix comments.
43234
43235 2006-06-28  Eric Blake  <ebb9@byu.net>
43236
43237         * lib/mbchar.h (wcwidth): Include wcwidth.h.
43238         * lib/mbswidth.c (wcwidth): Move from here...
43239         * lib/wcwidth.h: ...to this new file.
43240
43241 2006-06-28  Derek R. Price  <derek@ximbiot.com>
43242
43243         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
43244
43245         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
43246         it's obsolete.
43247         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
43248
43249 2006-06-28  Derek R. Price  <derek@ximbiot.com>
43250
43251         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
43252         Autoconf 2.60 says this stuff was obsolete.
43253
43254 2006-06-28  Bruno Haible  <bruno@clisp.org>
43255
43256         * modules/wcwidth (Files): Add m4/wchar_t.m4.
43257
43258 2006-06-28  Bruno Haible  <bruno@clisp.org>
43259
43260         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
43261         gt_TYPE_WCHAR_T.
43262
43263 2006-06-28  Bruno Haible  <bruno@clisp.org>
43264
43265         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
43266         declaration for wcwidth.
43267         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
43268
43269 2006-06-28  Bruno Haible  <bruno@clisp.org>
43270
43271         * lib/mkdtemp.c [MINGW]: Include <io.h>.
43272         (mkdir): Define using _mkdir.
43273
43274 2006-06-28  Bruno Haible  <bruno@clisp.org>
43275
43276         * lib/getaddrinfo.h: Fix POSIX URL.
43277         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
43278         _WIN32.
43279         (use_win32_p): Make static.
43280         (getaddrinfo): Reject service name if it is empty or does not consist
43281         solely of decimal digits, or if its value is > 65535.
43282         (getnameinfo): Remove useless casts.
43283
43284 2006-06-27  Simon Josefsson  <jas@extundo.com>
43285
43286         * modules/sys_select: New file, suggested by Bruno Haible, Paul
43287         Eggert and Martin Lambers.
43288
43289 2006-06-27  Simon Josefsson  <jas@extundo.com>
43290
43291         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
43292         Eggert and Martin Lambers.
43293
43294 2006-06-27  Bruno Haible  <bruno@clisp.org>
43295
43296         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
43297         result to 0, not to empty.
43298         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
43299
43300 2006-06-27  Bruno Haible  <bruno@clisp.org>
43301
43302         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
43303
43304 2006-06-26  Simon Josefsson  <jas@extundo.com>
43305
43306         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
43307         present.
43308
43309 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
43310
43311         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
43312         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
43313         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
43314
43315 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
43316
43317         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
43318
43319 2006-06-26  Bruno Haible  <bruno@clisp.org>
43320
43321         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
43322
43323 2006-06-26  Bruno Haible  <bruno@clisp.org>
43324
43325         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
43326
43327 2006-06-26  Bruno Haible  <bruno@clisp.org>
43328
43329         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
43330         SGI C compiler in pre-C99 mode.
43331         Suggested by Mark D. Baushke and Larry Jones.
43332
43333 2006-06-26  Bruno Haible  <bruno@clisp.org>
43334
43335         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
43336         WCHAR_MAX.
43337         Reported by Mark D. Baushke and Larry Jones.
43338
43339 2006-06-26  Bruno Haible  <bruno@clisp.org>
43340
43341         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
43342         in pre-C99 mode.
43343         Suggested by Mark D. Baushke and Larry Jones.
43344
43345 2006-06-23  Simon Josefsson  <jas@extundo.com>
43346             Bruno Haible  <bruno@clisp.org>
43347
43348         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
43349         Emit mostlyclean-local rule.
43350         (func_emit_tests_Makefile_am): Likewise.
43351         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
43352
43353 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
43354
43355         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
43356
43357 2006-06-23  Bruno Haible  <bruno@clisp.org>
43358
43359         * tests/test-stdint.c: Update to match ISO C 99 Technical
43360         Corrigendum 1.
43361
43362 2006-06-23  Bruno Haible  <bruno@clisp.org>
43363
43364         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
43365
43366 2006-06-23  Bruno Haible  <bruno@clisp.org>
43367
43368         * lib/stdint_.h: Treat IRIX like OpenBSD.
43369
43370 2006-06-23  Bruno Haible  <bruno@clisp.org>
43371
43372         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
43373         ISO C 99 Technical Corrigendum 1.
43374
43375 2006-06-22  Simon Josefsson  <jas@extundo.com>
43376
43377         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
43378         MinGW.
43379
43380 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
43381
43382         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
43383         needed.  Some compiler complained about some of them.  Problem reported
43384         by Larry Jones in
43385         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
43386
43387 2006-06-21  Simon Josefsson  <jas@extundo.com>
43388
43389         * tests/test-getaddrinfo.c: New file.
43390
43391         * modules/getaddrinfo-tests: New file.
43392
43393         * MODULES.html.sh: Add inet_pton.
43394
43395         * modules/inet_pton: New file.
43396
43397 2006-06-21  Simon Josefsson  <jas@extundo.com>
43398
43399         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
43400         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
43401         of using the (limited) gnulib implementation on Windows XP.
43402
43403         * m4/inet_pton.m4: New file.
43404
43405 2006-06-21  Simon Josefsson  <jas@extundo.com>
43406
43407         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
43408         variable.
43409
43410         * lib/socket_.h: Don't define WINVER.
43411
43412         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
43413         slightly modified to work in gnulib.
43414
43415 2006-06-21  Simon Josefsson  <jas@extundo.com>
43416
43417         * doc/gnulib.texi (Windows sockets): Add.
43418
43419 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
43420
43421         * lib/read-file.c (fread_file): Start with buffer allocation of
43422         0 bytes rather than 1 byte; this simplifies the code.
43423         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
43424         code to free buffer and save/restore errno.
43425         (internal_read_file): Remove unused local.
43426
43427 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
43428
43429         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
43430         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
43431         Problem reported by Denis Excoffier in
43432         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
43433
43434 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43435
43436         * modules/sys_socket, modules/socklen: Include sys/types since
43437         FreeBSD 4.x's sys/socket.h needs it.
43438
43439 2006-06-19  Simon Josefsson  <jas@extundo.com>
43440
43441         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
43442
43443 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
43444
43445         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
43446
43447 2006-06-19  Bruno Haible  <bruno@clisp.org>
43448
43449         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
43450         and FULL_PATH_INTTYPES_H in angle brackets.
43451         Reported by Mark D. Baushke <mdb@gnu.org>.
43452
43453 2006-06-17  Eric Blake  <ebb9@byu.net>
43454
43455         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
43456         errno.
43457
43458 2006-06-17  Bruno Haible  <bruno@clisp.org>
43459
43460         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
43461         <sys/inttypes.h>.
43462
43463 2006-06-17  Bruno Haible  <bruno@clisp.org>
43464
43465         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
43466         whether errno is declared. Assume <errno.h> declares errno.
43467
43468 2006-06-17  Bruno Haible  <bruno@clisp.org>
43469
43470         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
43471
43472 2006-06-17  Bruno Haible  <bruno@clisp.org>
43473
43474         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
43475         problem on Solaris 2.5.1.
43476
43477 2006-06-16  Eric Blake  <ebb9@byu.net>
43478
43479         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
43480         * lib/unicodeio.c [!defined errno]: Likewise.
43481         * lib/strtol.c [!defined errno]: Likewise.
43482         * lib/strtod.c [!defined errno]: Likewise.
43483
43484 2006-06-15  Eric Blake  <ebb9@byu.net>
43485
43486         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
43487
43488 2006-06-15  Eric Blake  <ebb9@byu.net>
43489
43490         * config/srclist.txt (ssize_t.m4): Lose sync.
43491
43492 2006-06-15  Bruno Haible  <bruno@clisp.org>
43493
43494         * modules/stdint (Files): Include m4/full-header-path.m4,
43495         m4/size_max.m4, m4/wchar_t.m4.
43496         (Makefile.am): Many more substitutions.
43497         * modules/stdint-tests: New file.
43498         * tests/test-stdint.c: New file.
43499
43500 2006-06-15  Bruno Haible  <bruno@clisp.org>
43501
43502         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
43503         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
43504         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
43505         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
43506         gl_CHECK_TYPE_SAME): New macros.
43507
43508 2006-06-15  Bruno Haible  <bruno@clisp.org>
43509
43510         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
43511
43512 2006-06-15  Bruno Haible  <bruno@clisp.org>
43513
43514         * lib/stdint_.h: Rewritten to be fully auto-configured.
43515         Fixes bug on HP-UX/IA64.
43516
43517 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
43518
43519         * lib/getdate.y (__attribute__): Don't define if already defined.
43520         Problem reported by Larry Jones.
43521         * lib/utimens.c (__attribute__): Likewise.
43522
43523 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
43524
43525         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
43526         reported by Andreas Schwab.
43527
43528 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43529             Bruno Haible  <bruno@clisp.org>
43530
43531         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
43532         check for the declaration of strnlen and a run test that exposes the
43533         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
43534         rpl_strndup.
43535
43536 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43537             Bruno Haible  <bruno@clisp.org>
43538
43539         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
43540
43541 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43542
43543         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
43544         compile test, for Tru64 4.0D.
43545
43546 2006-05-28  Karl Berry  <karl@gnu.org>
43547
43548         * config/srclist.txt (printf-args.c): lose sync.
43549
43550 2006-05-26  Martin Lambers  <marlam@marlam.de>
43551
43552         * lib/getpass.c: Updates the test for the native W32 API, and adds
43553         missing includes, thus fixing compilation warnings.
43554
43555 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43556
43557         * lib/exclude.c (exclude_fnmatch): New function.
43558         (excluded_file_name): Call exclude_fnmatch.
43559         * lib/exclude.h (excluded_file_name): New prototype
43560
43561 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
43562
43563         * lib/tempname.c (small_open, large_open): New macros.
43564         (__open, __open64) [!_LIBC]: Remove.
43565         (__gen_tempname): Use small_open and large_open instead of __open
43566         and __open64.  This fixes a portability bug on HP-UX 11.11i
43567         reported by Simon Wing-Tang in
43568         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
43569
43570 2006-05-24  Bruno Haible  <bruno@clisp.org>
43571
43572         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
43573         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
43574         Reported by Thorsten Maerz <torte@netztorte.de> via
43575         Aaron Stone <aaron@serendipity.cx>.
43576
43577 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
43578
43579         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
43580         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
43581         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
43582         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
43583         not really conditional on the cache.
43584         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
43585
43586 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
43587
43588         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
43589         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
43590         (my_usleep): Don't mishandle maximum value.
43591
43592 2006-05-19  Jim Meyering  <jim@meyering.net>
43593
43594         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
43595
43596 2006-05-17  Bruno Haible  <bruno@clisp.org>
43597
43598         Cygwin portability.
43599         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
43600
43601 2006-05-17  Bruno Haible  <bruno@clisp.org>
43602
43603         * lib/stdint_.h: Fix recognition of Cygwin.
43604
43605 2006-05-15  Bruno Haible  <bruno@clisp.org>
43606
43607         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
43608         on libtool patch by Ralf Wildenhues.
43609
43610 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
43611
43612         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
43613         test for C99 conformance; (bool) 0.5 is an integer constant
43614         expression, but (bool) -0.5 is not.  Problem reported by Fedor
43615         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
43616
43617 2006-05-11  Simon Josefsson  <jas@extundo.com>
43618
43619         * m4/xvasprintf.m4: Fix obvious typo.
43620
43621 2006-05-11  Jim Meyering  <jim@meyering.net>
43622
43623         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
43624         James Lemley.
43625
43626 2006-05-10  Simon Josefsson  <jas@extundo.com>
43627
43628         * lib/md4.c: Typo fix, update copyright years.
43629         (K1, K2): Don't use L because it turn computations into 64-bit on
43630         64-bit platforms.
43631
43632 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
43633
43634         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
43635         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
43636         unwanted sign propagation, e.g., on hosts with 64-bit int.
43637         There still are some problems with reeelly weird theoretical hosts
43638         (e.g., 33-bit int) but it's not worth worrying about now.
43639         * lib/sha1.c (rol): Likewise.
43640         (K1, K2, K3, K4): Remove unnecessary L suffix.
43641
43642 2006-05-10  Bruno Haible  <bruno@clisp.org>
43643
43644         * lib/des.c: Cast to avoid warnings.
43645
43646 2006-05-09  Bruno Haible  <bruno@clisp.org>
43647
43648         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
43649         (Depends-on): Depend also on xsize, stdarg.
43650         (configure.ac): Add gl_XVASPRINTF.
43651
43652 2006-05-09  Bruno Haible  <bruno@clisp.org>
43653
43654         * m4/xvasprintf.m4: New file.
43655
43656 2006-05-09  Bruno Haible  <bruno@clisp.org>
43657
43658         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
43659         (EOVERFLOW): Define fallback value.
43660         (xstrcat): New function.
43661         (xvasprintf): Recognize the special case of a string concatenation.
43662
43663 2006-05-08  Eric Blake  <ebb9@byu.net>
43664
43665         * gnulib-tool (func_version): Base copyright year on CVS date.
43666         (func_emit_copyright_notice): New function.
43667         (func_emit_lib_Makefile_am): Use it.
43668         (func_emit_tests_Makefile_am): Likewise.
43669         (func_import): Likewise.
43670
43671 2006-05-08  Bruno Haible  <bruno@clisp.org>
43672
43673         * modules/stdarg: New file.
43674         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
43675
43676 2006-05-08  Bruno Haible  <bruno@clisp.org>
43677
43678         * m4/stdarg.m4: New file, from GNU gettext.
43679
43680 2006-05-08  Bruno Haible  <bruno@clisp.org>
43681
43682         * config/srclist.txt (build-aux/config.rpath): different from latest
43683         release.
43684
43685 2006-05-08  Bruno Haible  <bruno@clisp.org>
43686
43687         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
43688
43689 2006-05-05  Jim Meyering  <jim@meyering.net>
43690
43691         * m4/warning.m4: New file, derived from bison's file by the same name.
43692
43693 2006-05-03  Bruno Haible  <bruno@clisp.org>
43694
43695         * lib/stdint_.h: Shorter URL.
43696         * lib/inttypes.h: Likewise.
43697
43698 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
43699
43700         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
43701
43702 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
43703
43704         * lib/verify.h: Document the internals better.  Most of this change
43705         was written by Bruno Haible.
43706
43707 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
43708
43709         * doc/verify.texi: New file, partly based on a proposal by
43710         Bruno Haible.
43711
43712 2006-05-02  Bruno Haible  <bruno@clisp.org>
43713
43714         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
43715         test from here...
43716         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
43717
43718 2006-04-29  Bruno Haible  <bruno@clisp.org>
43719
43720         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
43721         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
43722
43723 2006-04-29  Bruno Haible  <bruno@clisp.org>
43724
43725         * gnulib-tool: Make --update option actually work.
43726
43727 2006-04-29  Bruno Haible  <bruno@clisp.org>
43728
43729         * doc/gcd.texi: New file.
43730         * doc/gnulib.texi: Include it.
43731
43732 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
43733
43734         * lib/getdate.y (get_date): When adding relative date, start with the
43735         initial time, not with the result of the first mktime call.
43736
43737 2006-04-25  Bruno Haible  <bruno@clisp.org>
43738
43739         * gnulib-tool (func_import): Output the include directives in three
43740         blocks, sorted separately.
43741         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43742
43743 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
43744
43745         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
43746         to define main with arguments, for C++.  Reported by Eric Blake.
43747         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
43748         Prefer 'int main ()' to 'int main (void)', for C++.
43749         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
43750         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
43751         for 'main', for C99 and C++.
43752
43753 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
43754
43755         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
43756         Don't assume that exit status -1 is valid.
43757         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43758         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
43759         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
43760         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
43761         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
43762         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
43763         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
43764         functions can be used without declaring them, or that you can
43765         exit with status -1.
43766         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
43767
43768 2006-04-24  Karl Berry  <karl@gnu.org>
43769
43770         * config/srclist.txt (longdouble.m4): sync lost.
43771
43772 2006-04-24  Eric Blake  <ebb9@byu.net>
43773
43774         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
43775
43776 2006-04-24  Bruno Haible  <bruno@clisp.org>
43777
43778         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
43779         poll() implementation in AIX.
43780         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43781
43782 2006-04-24  Bruno Haible  <bruno@clisp.org>
43783
43784         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
43785         assigned exactly once.
43786
43787 2006-04-23  Claudio Fontana  <claudio@gnu.org>
43788             Bruno Haible  <bruno@clisp.org>
43789
43790         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
43791         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
43792         for AM_CPPFLAGS.
43793
43794 2006-04-23  Bruno Haible  <bruno@clisp.org>
43795
43796         * modules/copy-file: Depend on unistd.
43797         * modules/execute: Likewise.
43798         * modules/fatal-signal: Likewise.
43799         * modules/findprog: Likewise.
43800         * modules/mkdtemp : Likewise.
43801         * modules/pipe: Likewise.
43802         * modules/wait-process: Likewise.
43803
43804 2006-04-23  Bruno Haible  <bruno@clisp.org>
43805
43806         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
43807         condition was already detected.
43808         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43809
43810 2006-04-23  Bruno Haible  <bruno@clisp.org>
43811
43812         * lib/copy-file.c: Include <unistd.h> unconditionally.
43813         * lib/execute.c: Likewise.
43814         * lib/fatal-signal.c: Likewise.
43815         * lib/findprog.c: Likewise.
43816         * lib/mkdtemp.c: Likewise.
43817         * lib/pipe.h: Likewise.
43818         * lib/pipe.c: Likewise.
43819         * lib/wait-process.h: Likewise.
43820
43821 2006-04-23  Bruno Haible  <bruno@clisp.org>
43822
43823         * gnulib-tool (func_usage): Fix --import description. Document
43824         --update.
43825         (func_import): Create temporary file in a temporary directory, if
43826         --dry-run is specified. Silence errors from 'grep' when there are no
43827         m4 files in $m4dir.
43828         (func_create_testdir): Silence errors from 'grep' when there are no
43829         m4 files in $m4dir.
43830         Reported by Karl Berry <karl@freefriends.org>.
43831
43832 2006-04-20  Bruno Haible  <bruno@clisp.org>
43833
43834         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
43835         one argument, so that the code will be portable to Autoconf 2.60.
43836         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
43837         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
43838         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
43839
43840 2006-04-19  Derek Price  <derek@ximbiot.com>
43841             Eric Blake  <ebb9@byu.net>
43842
43843         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
43844         rather than "/full/path.h".  Update comment to match.  Shorten &
43845         generalize m4_translit call via AS_TR_CPP.
43846
43847 2006-04-19  Derek Price  <derek@ximbiot.com>
43848             Eric Blake  <ebb9@byu.net>
43849
43850         * lib/inttypes.h: Correct grammar in comment.
43851
43852 2006-04-18  Derek Price  <derek@ximbiot.com>
43853             Paul Eggert  <eggert@cs.ucla.edu>
43854
43855         * modules/inttypes: New file.
43856         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
43857
43858 2006-04-18  Derek Price  <derek@ximbiot.com>
43859             Paul Eggert  <eggert@cs.ucla.edu>
43860
43861         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
43862         New files.
43863
43864 2006-04-18  Derek Price  <derek@ximbiot.com>
43865             Paul Eggert  <eggert@cs.ucla.edu>
43866
43867         * lib/inttypes.h: New file.
43868         * lib/strtoimax.c: Assume <inttypes.h>.
43869
43870 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
43871
43872         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
43873         isn't mounted.  Problem reported by Kir Kolyshkin.
43874
43875 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
43876
43877         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
43878         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
43879         Derek R. Price.
43880         * lib/regex.h (RE_DUP_MAX): Update comment to match current
43881         implementation.
43882
43883 2006-04-12  Eric Blake  <ebb9@byu.net>
43884
43885         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
43886         is now done automatically by the corresponding Autoconf macro.
43887
43888 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
43889
43890         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
43891         time_r.h.
43892
43893 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
43894
43895         Merge regex changes from libc, removing some of our
43896         POSIX-conformance changes that were rejected and redoing them in a
43897         less-intrusive way.
43898
43899         * lib/regcomp.c (re_compile_internal, init_dfa):
43900         Length arg is now size_t, not Idx.  All uses changed.
43901         (peek_token): Forward decl now says internal_function.
43902         (__re_error_msgid, __re_error_msgid_idx):
43903         Now static rather than extern with attribute_hidden.
43904         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
43905         For some reason libc prefers K&R style defns for external functions.
43906         (regerror) [!defined _LIBC]: Likewise.
43907         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
43908         (seek_collating_symbol_entry, lookup_collation_sequence_value):
43909         (build_range_exp, build_collating_symbol):
43910         Use K&R-style defn.
43911         (re_compile_fastmap): Use '\0' to memset, not 0.
43912         (utf8_sb_map): Make the calculations more obvious.
43913         (init_dfa, parse_bracket_exp, build_charclass_op):
43914         Call calloc and cast result, as glibc does.
43915         (init_word_char, fetch_token, peek_token, peek_token_bracket):
43916         (build_range_exp, build_collating_symbol):
43917         Now internal functions.
43918
43919         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
43920
43921         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
43922         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
43923         Don't depend on VMS; depend on __VMS instead, for POSIX
43924         namespace cleanness.
43925         (regoff_t): Define to ssize_t, not long int.
43926
43927         Remove the REG_ macros named below.  Instead, make the old names
43928         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
43929         __USE_GNU_REGEX.
43930         (REG_BACKSLASH_ESCAPE_IN_LISTS):
43931         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
43932         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
43933         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
43934         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
43935         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
43936         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
43937         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
43938         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
43939         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
43940         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
43941         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
43942         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
43943         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
43944         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
43945         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
43946         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
43947         (REG_NREGS):
43948         Remove.  All uses replaced by the old RE_* names.
43949         (RE_BACKSLASH_ESCAPE_IN_LISTS):
43950         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
43951         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
43952         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
43953         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
43954         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
43955         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
43956         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
43957         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
43958         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
43959         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
43960         Don't bother having these macros be independent of each others'
43961         values, since they no longer exist in the POSIX name space.
43962
43963         Rename the following member names back to their old names,
43964         unless !__USE_GNU_REGEX.  All uses changed back.
43965         (buffer): Renamed from re_buffer.
43966         (allocated): Renamed from re_allocated.
43967         (used): Renamed from re_used.
43968         (syntax): Renamed from re_syntax.
43969         (fastmap): Renamed from re_fastmap.
43970         (translate): Renamed from re_translate.
43971         (can_be_null): Renamed from re_can_be_null.
43972         (regs_allocated): Renamed from re_regs_allocated.
43973         (fastmap_accurate): Renamed from re_fastmap_accurate.
43974         (no_sub): Renamed from re_no_sub.
43975         (not_bol): Renamed from re_not_bol.
43976         (not_eol): Renamed from re_not_eol.
43977         (newline_anchor): Renamed from re_newline_anchor.
43978         (num_regs): Renamed from rm_num_regs.
43979         (start): Renamed from rm_start.
43980         (end): Renamed from rm_end.
43981
43982         (free_state): Move up a bit.
43983
43984         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
43985         #define to be empty.
43986         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
43987         when that is what is intended.
43988         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
43989         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
43990         (MAX): New macro.
43991         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
43992         All uses changed back to re_malloc, etc.  It's now the caller's
43993         responsibility to check for overflow; all callers changed.
43994         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
43995         (re_x2nrealloc): Remove.
43996         (free_state): Remove decl.
43997
43998         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
43999         (re_set_registers, re_exec):
44000         Use K&R-style defn.
44001
44002         2006-01-31  Roland McGrath  <roland@redhat.com>
44003
44004         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
44005         Reported by Mike Frysinger <vapier@gentoo.org>.
44006
44007         2006-01-15  Andreas Jaeger  <aj@suse.de>
44008
44009         [BZ #1950]
44010         * lib/regex_internal.c (re_string_reconstruct): Adjust for
44011         build_wcs_upper_buffer change.
44012         (build_wcs_upper_buffer): Change return type.
44013
44014         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
44015
44016         * lib/regex_internal.h: Include <stdint.h> if available.
44017
44018         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
44019
44020         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
44021
44022         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
44023
44024         * lib/regcomp.c: Adjust for changed secondary hash function.
44025
44026         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
44027
44028         * lib/regex.h: Pretty printing.
44029         Clean up namespace a bit.
44030
44031         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
44032
44033         * lib/regexec.c (update_cur_sifted_state, check_arrival,
44034         check_arrival_add_next_nodes): Avoid using uninitialized variable.
44035
44036         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
44037                     Ulrich Drepper  <drepper@redhat.com>
44038
44039         [BZ #1302]
44040         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
44041         changed.
44042         (bitset_word_t): Renamed from bitset_word.  All uses changed.
44043
44044         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
44045
44046         [BZ #281]
44047         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
44048         * lib/regcomp.c: Remove unnecessary uses of
44049         unsigned RE_TRANSLATE_TYPE.
44050         * lib/regex_internal.h: Likewise.
44051         * lib/regex_internal.c: Likewise.
44052         * lib/regexec.c: Likewise.
44053         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
44054
44055         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
44056
44057         * lib/regexec.c (find_recover_state): Remove unnecessary
44058         initialization.
44059         (transit_state_bkref): Make DFA a const pointer.
44060         (get_subexp): Likewise.
44061         (check_arrival): Likewise.
44062         (update_cur_sifted_state): Likewise.
44063         (re_search_internal): Likewise.
44064         (prune_impossible_nodes): Likewise.
44065         (acquire_init_state_context): Likewise.
44066         (proceed_next_node): Likewise.
44067         (set_regs): Likewise.
44068         (free_fail_stack_return): Likewise.
44069         (check_arrival_expand_ecl): Mark DFA parameter as const.
44070         (check_arrival_expand_ecl_sub): Likewise.
44071         (check_subexp_limits): Likewise.
44072         (sub_epsilon_src_nodes):  Likewise.
44073         (add_epsilon_src_nodes):  Likewise.
44074         (merge_state_array): Likewise.
44075         (update_regs): Likewise.
44076         (build_trtable): Likewise.
44077         (sift_states_backward): Mark MCTX parameter as const.
44078         (build_sifted_states): Likewise.
44079         (update_cur_sifted_state): Likewise.
44080         (sift_states_mkref): Likewise.
44081         (check_arrival_expand_ecl): Mark eclosure as const.
44082         (check_dst_limits_calc_pos_1): Likewise.
44083         * lib/regex_internal.h (re_match_context_t): Make dfa a const
44084         pointer.
44085
44086         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
44087
44088         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
44089         (transit_state_sb): Likewise.
44090         (transit_state_mb): Likewise.
44091         (sift_states_iter_mb): Likewise.
44092         (check_arrival_add_next_nodes): Likewise.
44093         (check_node_accept_bytes): Change first parameter to pointer-to-const.
44094         [_LIBC] (re_search_2_stub): Use mempcpy.
44095
44096         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
44097         mbrtowc for very simple UTF-8 case.
44098
44099         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
44100         a pointer-to-const.
44101         (re_acquire_state_context): Likewise.
44102         * lib/regex_internal.h: Adjust prototypes.
44103
44104         * lib/regex.c: Prevent using C++ compilers.
44105
44106         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
44107         (re_acquire_state_context): Likewise.
44108
44109 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
44110
44111         * modules/regex (Depends-on): Add ssize_t.
44112
44113 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
44114
44115         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
44116         translation table.
44117
44118 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
44119
44120         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
44121
44122 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
44123             Bruno Haible  <bruno@clisp.org>
44124
44125         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
44126         <sys/types.h> and <inttypes.h>.
44127
44128 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44129
44130         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
44131         `__error_t_defined', so argp.h will not typedef the former.
44132
44133 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
44134
44135         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
44136         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
44137         glibc names.  Even if glibc is changed to conform to POSIX, the
44138         traditional names will be available anyway, since regex depends on
44139         the extensions module.  Also, fix a longstanding typo in the
44140         implementation of Spencer ERE test #75 from grep 2.3.  Problems
44141         reported by Emanuele Giaquinta.  Also, change sense of cached
44142         variable, so that the message makes sense.
44143
44144 2006-03-24  Simon Josefsson  <jas@extundo.com>
44145
44146         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
44147         including some doc fixes.
44148         (base64_encode_alloc): Fix +1 bug on allocation failures.
44149
44150 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44151
44152         * lib/base64.c (base64_encode): Do not read past end of array with
44153         unsanitized input on systems with CHAR_BIT > 8.
44154
44155 2006-03-24  Eric Blake  <ebb9@byu.net>
44156
44157         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
44158
44159 2006-03-22  Karl Berry  <karl@gnu.org>
44160
44161         * config/srclist.txt (*setenv.[ch]): get from coreutils.
44162         * config/srclistvars.sh (COREUTILS): new var.
44163
44164 2006-03-17  Jim Meyering  <jim@meyering.net>
44165
44166         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
44167         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
44168
44169 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
44170
44171         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
44172         no longer needs it.  Instead, check that regoff_t is as least
44173         as wide as ptrdiff_t.
44174
44175         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
44176         so that our regex.h stays compatible with the installed regex.
44177         This is helpful for installers who configure --without-included-regex.
44178         Problem reported by Emanuele Giaquinta.
44179
44180 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
44181
44182         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
44183         Typedef to long int, not to off_, as POSIX will likely change
44184         in that direction.
44185
44186 2006-03-15  Eric Blake  <ebb9@byu.net>
44187
44188         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
44189
44190 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
44191
44192         * lib/argp-help.c (validate_uparams): Fix typo
44193         * lib/argp-parse.c (argp_default_options): Consistently begin help
44194         messages with a lowercase letter.
44195
44196 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
44197
44198         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
44199         overrun buffers and shouldn't be used (much as gets shouldn't be
44200         used).
44201         * lib/time_r.c (asctime_r, ctime_r): Likewise.
44202
44203 2006-03-08  Simon Josefsson  <jas@extundo.com>
44204
44205         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
44206         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44207
44208 2006-03-08  Simon Josefsson  <jas@extundo.com>
44209
44210         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
44211         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44212
44213 2006-03-08  Simon Josefsson  <jas@extundo.com>
44214
44215         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
44216         signal that configure disabled the device.
44217
44218 2006-03-08  Simon Josefsson  <jas@extundo.com>
44219
44220         * build-aux/maint.mk: Fix refresh-po, to handle no translated
44221         languages.
44222
44223 2006-03-07  Simon Josefsson  <jas@extundo.com>
44224
44225         * modules/getopt (Depends-on): Add unistd.
44226
44227         * modules/unistd: New file.
44228
44229 2006-03-07  Simon Josefsson  <jas@extundo.com>
44230
44231         * modules/gc-random: New file.
44232
44233 2006-03-07  Simon Josefsson  <jas@extundo.com>
44234
44235         * m4/unistd_h.m4: New file.
44236
44237 2006-03-07  Simon Josefsson  <jas@extundo.com>
44238
44239         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
44240         test to be side-effect free by storing the result in the cache
44241         variable gl_cv_lib_readline, and moving the assignment of
44242         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
44243         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44244
44245 2006-03-07  Simon Josefsson  <jas@extundo.com>
44246
44247         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
44248         error on missing devices (the functions will return an error).
44249
44250         * m4/gc.m4: Move random stuff to gc-random.m4
44251
44252 2006-03-07  Simon Josefsson  <jas@extundo.com>
44253
44254         * lib/unistd_.h: New file.
44255
44256 2006-03-07  Simon Josefsson  <jas@extundo.com>
44257
44258         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
44259
44260 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
44261
44262         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
44263         Problem reported by Juan Manuel Guerrero.
44264
44265 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
44266
44267         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
44268         the unistd module.
44269         * lib/getlogin_r.c: Likewise.
44270         * lib/getlogin_r.h: Likewise.
44271         * lib/glob.c: Likewise.
44272         * lib/pagealign_alloc.c: Likewise.
44273         * lib/unistd_.h: Remove; no longer needed.
44274
44275 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
44276
44277         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44278         Add unistd.
44279         * modules/c-stack (Depends-on): Add unistd.
44280         * modules/getlogin_r: Likewise.
44281         * modules/glob: Likewise.
44282         * modules/pagealign_alloc: Likewise.
44283         * modules/unistd (Files): Remove lib/unistd_.h.
44284         (EXTRA_DIST): Remove.
44285         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
44286         need unistd_.h.
44287         (MOSTLYCLEANFILES): Remove unistd.h-t.
44288
44289 2006-03-03  Simon Josefsson  <jas@extundo.com>
44290
44291         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
44292
44293 2006-03-03  Simon Josefsson  <jas@extundo.com>
44294
44295         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
44296         libidn and bison.
44297
44298 2006-03-03  Simon Josefsson  <jas@extundo.com>
44299
44300         * build-aux/maint.mk: Add indent target.
44301
44302 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
44303
44304         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
44305         our replacement poll.h in any case, to avoid a differing
44306         declaration from a system header.  Seen on AIX.
44307
44308 2006-03-01  Simon Josefsson  <jas@extundo.com>
44309
44310         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
44311         <kasal@ucw.cz>.
44312
44313 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
44314
44315         * modules/gettime (Depends-on): Add extensions module.
44316         * modules/nanosleep (Depends-on): Likewise.
44317         * modules/settime (Depends-on): Likewise.
44318
44319 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
44320
44321         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
44322         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
44323         pedantically.
44324         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44325         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
44326
44327         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
44328         not "==".  Reported by Ralf Wildenhues.
44329
44330 2006-03-01  Karl Berry  <karl@gnu.org>
44331
44332         * doc/Copyright/request-*: new files, synced from gnuorg.
44333
44334 2006-03-01  Karl Berry  <karl@gnu.org>
44335
44336         * config/srclist.txt (Copyright/*): new entries.
44337
44338 2006-02-28  Simon Josefsson  <jas@extundo.com>
44339
44340         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
44341
44342 2006-02-27  Simon Josefsson  <jas@extundo.com>
44343
44344         * lib/base64.h: Indent #define's.  From Jim Meyering
44345         <jim@meyering.net>.
44346
44347 2006-02-27  Jim Meyering  <jim@meyering.net>
44348
44349         Revert the change of 2006-02-24, so these files can continue
44350         to be sync'd from gettext.
44351         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
44352         of `config.h'.
44353
44354 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
44355
44356         * modules/intprops: New file.
44357         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
44358         Add intprops.
44359         * modules/getloadavg (Files): Remove lib/intprops.h.
44360         (Depends-on): Add intprops.
44361         * modules/human: Likewise.
44362         * modules/inttostr: Likewise.
44363         * modules/openat: Likewise.
44364         * modules/sig2str: Likewise.
44365         * modules/userspec: Likewise.
44366         * modules/utimecmp: Likewise.
44367         * modules/xnanosleep: Likewise.
44368         * modules/xstrtol: Likewise.
44369
44370 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
44371
44372         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
44373         * modules/lock-tests (TESTS): Use $(EXEEXT).
44374         * modules/tls-tests: Likewise.
44375         * modules/argp-tests: Likewise.
44376         (check_PROGRAMS): New var, replacing...
44377         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
44378
44379 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44380
44381         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
44382         `config.h'.
44383
44384 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
44385
44386         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
44387
44388 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44389
44390         Sync from coreutils.
44391         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
44392         gl_CHDIR_SAFER.
44393
44394 2006-02-22  Jim Meyering  <jim@meyering.net>
44395
44396         Sync from coreutils.
44397         * m4/chdir-safer.m4: New file.
44398
44399 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
44400
44401         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
44402         AT_FDCWD exceeds INT_MAX.
44403         * lib/openat.h (AT_FDCWD): Likewise.
44404
44405 2006-02-17  Eric Blake  <address@hidden>
44406
44407         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
44408
44409 2006-02-16  Simon Josefsson  <jas@extundo.com>
44410
44411         * modules/getaddrinfo (Depends-on): Add sys_socket.
44412
44413 2006-02-15  Simon Josefsson  <jas@extundo.com>
44414
44415         * build-aux/maint.mk: Add dsyntax-check rule.
44416
44417 2006-02-15  Eric Blake  <ebb9@byu.net>
44418
44419         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
44420         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
44421         'present but cannot compile' warnings on cygwin.
44422         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
44423         use ws2tcpip.h if sys/socket.h works.
44424         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
44425         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
44426
44427 2006-02-14  Simon Josefsson  <jas@extundo.com>
44428
44429         * modules/maintainer-makefile (Files): Rename.
44430
44431         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
44432         and (the local) Makefile.cfg to maint-cfg.mk.
44433
44434         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
44435         to the latter.
44436
44437         * modules/maintainer-makefile: New module.
44438
44439         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
44440         severaly stripped to make it possible to build it up from scratch
44441         with reliable tests.
44442
44443         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
44444         fixes to permit overriding the default actions when configure and
44445         makefile are not available.
44446
44447 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
44448
44449         Sync from coreutils.
44450         * modules/lstat (Depends-on): Don't depend on xalloc.
44451         (License): Change from GPL to LGPL, since this is now simply a
44452         replacement for a libc function.
44453
44454 2006-02-14  Jim Meyering  <jim@meyering.net>
44455
44456         Sync from coreutils.
44457
44458         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
44459         failure on deficient systems, and simplify gnulib lgpl dependencies.
44460         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
44461         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
44462
44463         * lib/xalloc-die.c: Remove unused definition of N_.
44464
44465 2006-02-14  Jim Meyering  <jim@meyering.net>
44466
44467         Sync from coreutils.
44468         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
44469         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
44470         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
44471         double-quote uses of that variable, to accommodate the rare case in
44472         which getmntent is available in none of the libraries checked.  This
44473         happens at least on FreeBSD 5.0.
44474
44475 2006-02-13  Simon Josefsson  <jas@extundo.com>
44476
44477         * gnulib-tool (Usage): Fix --import, from
44478         karl@freefriends.org (Karl Berry).
44479
44480 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
44481
44482         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
44483
44484 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
44485
44486         * lib/argp-namefrob.h: Restore changes accidentally lost during the
44487         "autoupdate" on 2005-12-12.
44488
44489 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
44490
44491         * modules/closeout (Depends-on): Remove atexit.
44492
44493 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
44494
44495         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
44496         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
44497
44498 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
44499
44500         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
44501         __EXTENSIONS__ if this causes compilation to fail.  Problem
44502         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
44503         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
44504
44505 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
44506
44507         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
44508         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
44509         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
44510         All uses changed.
44511
44512 2006-01-26  Simon Josefsson  <jas@extundo.com>
44513
44514         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
44515         prototype is visible on mingw32.
44516
44517         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
44518         for mingw32.
44519
44520         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
44521         mingw32).
44522
44523 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
44524
44525         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
44526         attempt to open for write; this always fails, at least on POSIX
44527         hosts.  This reinstates the 2006-01-09 change, which was
44528         inadvertently removed.
44529
44530 2006-01-26  Bruno Haible  <bruno@clisp.org>
44531
44532         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
44533         Reported by Paul Eggert.
44534
44535 2006-01-26  Bruno Haible  <bruno@clisp.org>
44536             Paul Eggert  <eggert@cs.ucla.edu>
44537
44538         * lib/stdbool_.h (_Bool)
44539         [(! (defined __cplusplus || defined __BEOS__)
44540           && !defined __GNUC__
44541           && !(defined __HP_cc || defined __xlc__
44542                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
44543                || defined __sgi))]:
44544         #define to signed char in these cases too; this simplifies
44545         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
44546         etc., separately) and makes it more conservative.
44547
44548 2006-01-25  Simon Josefsson  <jas@extundo.com>
44549
44550         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
44551         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
44552         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
44553
44554 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44555
44556         * lib/argp-namefrob.h: Bugfix. Remove stray #
44557
44558 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
44559
44560         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
44561         so that we test the test.
44562         Check for yet another HP-UX cc bug involving *bool |= bool.
44563
44564 2006-01-25  Karl Berry  <karl@gnu.org>
44565
44566         * config/srclist.txt (vasnprintf.c): sync lost.
44567
44568 2006-01-25  Jim Meyering  <jim@meyering.net>
44569
44570         Sync from the stable (b5) branch of coreutils:
44571
44572         * lib/fts.c (fts_children): Don't let close() clobber errno from
44573         failed fchdir().
44574
44575         * lib/fts.c (fts_stat): When following a symlink-to-directory,
44576         don't necessarily interpret stat-fails+lstat-succeeds as indicating
44577         a dangling symlink.  That can also happen at least for ELOOP.
44578         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
44579         FYI, this bug predates the inclusion of fts.c in coreutils.
44580
44581         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
44582         in their own block, so pre-c99 compilers don't object.
44583
44584         Avoid the double-free (first in fts_read, second in fts_close) that
44585         would occur when an `active' directory is made inaccessible (e.g.,
44586         via chmod a-x) during a traversal.
44587         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
44588         before returning.  Reproduce this failure by
44589         mkdir -p a/b; cd a; chmod a-x . b
44590         Reported by Stavros Passas.
44591
44592 2006-01-25  Jim Meyering  <jim@meyering.net>
44593
44594         * lib/fileblocks.c: Remove more useless parentheses.
44595         * lib/readutmp.h: Likewise.
44596
44597 2006-01-25  Bruno Haible  <bruno@clisp.org>
44598
44599         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
44600         warnings.
44601         Reported by Paul Eggert.
44602
44603 2006-01-25  Bruno Haible  <bruno@clisp.org>
44604
44605         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
44606         rid of a trap command. For Solaris sh.
44607         Reported by Mark D. Baushke <mdb@gnu.org>.
44608
44609 2006-01-24  Simon Josefsson  <jas@extundo.com>
44610
44611         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
44612         Bruno.
44613
44614 2006-01-24  Karl Berry  <karl@gnu.org>
44615
44616         * config/srclist.txt (argp-namefrob.h): sync lost.
44617
44618 2006-01-24  Jim Meyering  <jim@meyering.net>
44619
44620         * modules/openat (Files): Add lib/intprops.h.
44621         From Mark D. Baushke.
44622
44623 2006-01-24  Jim Meyering  <jim@meyering.net>
44624
44625         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
44626         Reported by Mark D. Baushke.
44627
44628 2006-01-24  Jim Meyering  <jim@meyering.net>
44629
44630         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
44631
44632 2006-01-24  Bruno Haible  <bruno@clisp.org>
44633
44634         * modules/strnlen (Maintainer): Change from glibc to all.
44635
44636 2006-01-24  Bruno Haible  <bruno@clisp.org>
44637
44638         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
44639         Patch by Paul Eggert.
44640
44641 2006-01-24  Bruno Haible  <bruno@clisp.org>
44642
44643         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
44644         already has it.
44645         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
44646         2005-11-26.
44647
44648         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
44649         'signed char' to avoid problems with the built-in _Bool type.
44650         Reported by Paul Eggert on 2005-11-26.
44651
44652 2006-01-24  Bruno Haible  <bruno@clisp.org>
44653
44654         * gnulib-tool (func_import): Avoid constructing complicated sed
44655         expressions inside backquote.
44656         Report and solution by Mark D. Baushke <mdb@gnu.org>.
44657
44658 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
44659
44660         These changes imported from libc.
44661         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
44662         test and two separate function calls.
44663         * lib/strndup.c (__strndup): Add libc_hidden_def.
44664
44665 2006-01-23  Simon Josefsson  <jas@extundo.com>
44666
44667         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
44668         Remove the test_*_SOURCES variable: automake infers it by default.
44669         * modules/tls-tests: Likewise.
44670
44671 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44672
44673         Work around porting bugs reported by Dieter in
44674         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
44675         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
44676         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
44677         Include "getopt.h" first, to check interface.
44678         (getenv): Declare only if defined HAVE_DECL_GETENV &&
44679         !HAVE_DECL_GETENV.
44680         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
44681         (__strndup): Revert to K&R-style function dfns, the glibc style.
44682         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
44683         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
44684         Include strnlen.h first, to get prototype properly.
44685         (strnlen): Renamed from __strnlen.
44686         Remove weak alias.
44687
44688 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44689
44690         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
44691
44692 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44693
44694         * config/srclist.txt: Adjust to reflect glibc reorganization.
44695         This affects only comments.
44696
44697 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
44698
44699          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
44700          Reported by Bruce Korb <bkorb@gnu.org>.
44701
44702 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
44703
44704         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
44705         to pacify gcc -Wswitch-default.
44706
44707 2006-01-22  Bruno Haible  <bruno@clisp.org>
44708
44709         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
44710         temporary buffer for sprintf, take into account the precision also
44711         for 'd', 'i', 'u', 'o', 'x', 'X'.
44712
44713 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
44714
44715         * modules/argp-tests: New module
44716         * tests/test-argp.c: New file
44717         * tests/test-argp-2.sh: New file
44718
44719 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
44720
44721         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
44722         (__argp_base_name): Removed
44723         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
44724         typo.
44725         (__argp_base_name): Provide macro definition or extern declaration
44726         depending on the configuration
44727
44728 2006-01-20  Simon Josefsson  <jas@extundo.com>
44729
44730         * modules/inet_ntop (Depends-on): Depend on sys_socket.
44731
44732 2006-01-20  Simon Josefsson  <jas@extundo.com>
44733
44734         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
44735
44736 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
44737
44738         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
44739         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
44740         Suggested by Bruno Haible.
44741
44742 2006-01-20  Karl Berry  <karl@gnu.org>
44743
44744         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
44745         until changes propagate, I guess.
44746
44747 2006-01-19  Simon Josefsson  <jas@extundo.com>
44748
44749         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
44750
44751 2006-01-19  Simon Josefsson  <jas@extundo.com>
44752
44753         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
44754
44755 2006-01-19  Simon Josefsson  <jas@extundo.com>
44756
44757         * gnulib-tool: Set check_PROGRAMS.
44758
44759         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
44760         modules/des-tests, modules/gc-arcfour-tests,
44761         modules/gc-arctwo-tests, modules/gc-des-tests,
44762         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
44763         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
44764         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
44765         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
44766         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
44767         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
44768         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
44769         test_*_SOURCES.
44770
44771 2006-01-18  Simon Josefsson  <jas@extundo.com>
44772
44773         * modules/socklen (Depends-on): Depend on sys_socket.
44774
44775 2006-01-18  Simon Josefsson  <jas@extundo.com>
44776
44777         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
44778         modules/des-tests, modules/gc-arcfour-tests,
44779         modules/gc-arctwo-tests, modules/gc-des-tests,
44780         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
44781         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
44782         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
44783         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
44784         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
44785         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
44786         $(EXEEXT) to automake TESTS variable, for mingw32.
44787
44788 2006-01-17  Simon Josefsson  <jas@extundo.com>
44789
44790         * modules/socklen (Include): Need sys/socket.h.
44791
44792 2006-01-17  Bruno Haible  <bruno@clisp.org>
44793
44794         * modules/ssize_t (Include): Add <sys/types.h>.
44795
44796 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
44797
44798         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
44799         it's not portable and it doesn't work with cross-compiles.
44800         Problem reported by Bruno Haible.  Fix missing-$ typo in
44801         'test "gl_cv_ignore_unused_libraries" ...' that prevented
44802         -zignore from being used with Sun's C compiler.
44803
44804 2006-01-12  Simon Josefsson  <jas@extundo.com>
44805
44806         * lib/base64.c: Fix warning, reported by Bruno Haible
44807         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
44808
44809 2006-01-12  Bruno Haible  <bruno@clisp.org>
44810
44811         * modules/ldd: New file.
44812         * build-aux/ldd.sh.in: New file.
44813         * MODULES.html.sh (Support for building libraries and executables): Add
44814         ldd.
44815
44816 2006-01-12  Bruno Haible  <bruno@clisp.org>
44817
44818         * m4/ldd.m4: New file.
44819
44820 2006-01-12  Bruno Haible  <bruno@clisp.org>
44821
44822         * gnulib-tool (func_import, func_create_testdir): Don't go into an
44823         endless loop while replacing $auxdir with build-aux.
44824
44825 2006-01-11  Simon Josefsson  <jas@extundo.com>
44826
44827         * lib/stdint_.h (SIZE_MAX): Add missing (.
44828
44829 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
44830
44831         Sync from coreutils.
44832         * lib/md5.c: Fix commentary typos.
44833         (alignof, UNALIGNED_P): No need for a GCC-specific version.
44834         * lib/md5.h (__attribute__): Remove; unused.
44835         * lib/sha1.c: Fix commentary to match md5 better.
44836         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
44837         so that we don't need to worry about alignment.  All uses changed.
44838         This merges the 2005-10-28 md5 change into sha1.
44839
44840 2006-01-11  Jim Meyering  <jim@meyering.net>
44841
44842         Sync from coreutils.
44843         * lib/md5.c (OP): Fix spacing.
44844
44845 2006-01-11  Bruno Haible  <bruno@clisp.org>
44846
44847         Ensure automatic ordering between gl_LOCK and gl_ARGP.
44848         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
44849         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
44850
44851 2006-01-11  Bruno Haible  <bruno@clisp.org>
44852
44853         Ensure automatic ordering between gl_LOCK and gl_ARGP.
44854         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
44855         the "early" section as well.
44856
44857 2006-01-11  Bruno Haible  <bruno@clisp.org>
44858
44859         Avoid "ar: no archive members specified" error on MacOS X.
44860         * gnulib-tool (func_modules_add_dummy): New function.
44861         (func_import, func_create_testdir): Invoke it.
44862
44863 2006-01-11  Bruno Haible  <bruno@clisp.org>
44864
44865         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
44866         with $auxdir in AC_CONFIG_FILES statements.
44867
44868 2006-01-11  Bruno Haible  <bruno@clisp.org>
44869
44870         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44871         Initialize also noinst_HEADERS to empty.
44872
44873 2006-01-11  Bruno Haible  <bruno@clisp.org>
44874
44875         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
44876         variables.
44877         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
44878         autoreconf.
44879
44880 2006-01-11  Bruno Haible  <bruno@clisp.org>
44881
44882         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
44883         overridable by the user.
44884         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44885
44886 2006-01-10  Simon Josefsson  <jas@extundo.com>
44887
44888         * modules/sys_socket: New file.
44889
44890 2006-01-10  Simon Josefsson  <jas@extundo.com>
44891
44892         * m4/sys_socket_h.m4: New file.
44893
44894 2006-01-10  Simon Josefsson  <jas@extundo.com>
44895
44896         * lib/socket_.h: New file.
44897
44898 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
44899
44900         * modules/readutmp (Maintainer): Add myself.
44901
44902 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
44903
44904         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
44905         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
44906         People who are still concerned with buggy memcmp implementations
44907         can invoke gl_FUNC_MEMCMP themselves.
44908
44909 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
44910
44911         * lib/regex_internal.h (BITSET_WORD_BITS):
44912         Work around a bug in 64-bit PGC (before version 6.1-2), where the
44913         preprocessor mishandles large unsigned values as if they were signed.
44914         Problem reported by Claudio Fontana in
44915         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
44916
44917 2006-01-10  Jim Meyering  <jim@meyering.net>
44918
44919         Avoid the double-free (first in fts_read, second in fts_close) that
44920         would occur when an `active' directory is made inaccessible (e.g.,
44921         via chmod a-x) during a traversal.
44922         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
44923         before returning.  Reproduce this failure by
44924         mkdir -p a/b; cd a; chmod a-x . b
44925         Reported by Stavros Passas.
44926
44927         Sync from coreutils.
44928         * lib/sha1.c: Tweak grammar in a comment.
44929
44930 2006-01-10  Jim Meyering  <jim@meyering.net>
44931
44932         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
44933         Patch by Joerg Sonnenberger.
44934
44935 2006-01-10  Bruno Haible  <bruno@clisp.org>
44936
44937         * modules/readutmp: Depend on module free.
44938         * modules/strtok_r: Depend on module restrict.
44939
44940 2006-01-10  Bruno Haible  <bruno@clisp.org>
44941
44942         * modules/gettext (configure.ac): Add an invocation of
44943         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
44944
44945 2006-01-10  Bruno Haible  <bruno@clisp.org>
44946
44947         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
44948         Reported by Werner Lemberg <wl@gnu.org>.
44949
44950 2006-01-10  Bruno Haible  <bruno@clisp.org>
44951
44952         * lib/localcharset.c: Update from GNU gettext.
44953
44954 2006-01-10  Bruno Haible  <bruno@clisp.org>
44955
44956         * lib/argp.h (__const): Remove macro. Use const instead.
44957         * lib/argp-fmtstream.h (__const): Likewise.
44958         * lib/glob_.h (__const): Remove macro.
44959         * lib/glob-libc.h: Use const instead of __const.
44960
44961 2006-01-10  Bruno Haible  <bruno@clisp.org>
44962
44963         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
44964         variable.
44965         Needed to avoid an automake error regarding the 'gettext' module.
44966
44967 2006-01-09  Simon Josefsson  <jas@extundo.com>
44968
44969         * modules/inet_ntop (Depends-on): Add restrict.
44970
44971 2006-01-09  Simon Josefsson  <jas@extundo.com>
44972
44973         * modules/gc-rijndael-tests (License): Put under LGPL.
44974
44975         * modules/gc-des-tests (License): Likewise.
44976
44977         * modules/gc-arcfour-tests (License): Likewise.
44978
44979         * modules/gc-arctwo-tests (License): Likewise.
44980
44981         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
44982
44983         * modules/gc-hmac-sha1-tests (Files): Likewise.
44984
44985         * modules/gc-hmac-md5-tests (License): Likewise.
44986
44987         * modules/gc-sha1-tests (License): Likewise.
44988
44989         * modules/gc-md5-tests (License): Likewise.
44990
44991         * modules/gc-md4-tests (License): Likewise.
44992
44993         * modules/gc-md2-tests (License): Likewise.
44994
44995         * modules/gc-tests (License): Likewise.
44996
44997         * modules/des-tests (License): Likewise.
44998
44999         * modules/md4-tests (License): Likewise.
45000
45001         * modules/md2-tests (License): Likewise.
45002
45003 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
45004
45005         Sync from coreutils:
45006
45007         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
45008         * modules/lib-ignore: New file.
45009         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
45010         chdir-safer.m4, lchmod.m4.
45011         * modules/openat: Add mkdirat.c, openat-priv.h.
45012
45013 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
45014
45015         Sync from coreutils.
45016         * m4/lib-ignore.m4: New file.
45017         * m4/lchmod.m4: New file.
45018
45019 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
45020
45021         Sync from coreutils.
45022         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
45023         for write access: POSIX says that must fail.
45024         * lib/fts.c (diropen): Likewise.
45025         * lib/save-cwd.c (save_cwd): Likewise.
45026         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
45027         well, for minor improvements on hosts that lack O_DIRECTORY.
45028         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
45029         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
45030         Fall back on chown if open failed with EACCES.
45031
45032         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
45033         Report an error at compile-time if only a 1-second nominal clock
45034         resolution is found.
45035
45036         * lib/lchmod.h: New file.
45037         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
45038         (make_dir_parents): Use lchown rather than chown, and
45039         lchmod rather than chmod.
45040
45041         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
45042         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
45043         "proc" reported by n0dalus.
45044
45045         * lib/mountlist.c: Include <limits.h>.
45046         (dev_from_mount_options)
45047         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
45048         New function.  It no longer assumes "dev=" has the System V meaning
45049         on Linux (since it doesn't).  It also parses "dev=" more carefully.
45050         (read_file_system_list)
45051         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
45052         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
45053         dev= in that case.
45054
45055         * lib/posixtm.h (PDS_PRE_2000): New macro.
45056         * lib/posixtm.c (year): Arg is now syntax_bits rather than
45057         allow_century.  All usages changed.  Reject dates outside the range
45058         1969-1999 if PDS_PRE_2000 is used.
45059
45060 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
45061
45062         Sync from coreutils.
45063         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
45064         (Time of day items): Mention the possibility of leap seconds.
45065         Problem reported by Dr. David Alan Gilbert.
45066
45067 2006-01-09  Jim Meyering  <jim@meyering.net>
45068
45069         Sync from coreutils.
45070
45071         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
45072
45073         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
45074
45075         * lib/modechange.c (mode_compile): Reject an invalid mode string
45076         that starts with an octal digit.  From Andreas Gruenbacher.
45077
45078         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
45079         and dup to open_safer and dup_safer, respectively.
45080         (openat_permissive): Fix typo in comment.
45081
45082         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
45083         "gettext.h"; either no longer needed or are guaranteed by openat.h.
45084         (_): Remove; no longer needed.
45085         (openat): Renamed from rpl_openat; no need for rpl_openat
45086         since openat.h renames openat for us.
45087         Replace most of the body with a call to openat_permissive,
45088         to avoid duplicate code.
45089         Port to (probably hypothetical) environments were mode_t is
45090         wider than int.
45091         (openat_permissive): Require mode arg, so that we can check
45092         types better.  Put it just after flags.  Change cwd failure
45093         indicator from pointer-to-bool to pointer-to-errno-value.
45094         All callers changed.
45095         Invoke openat_save_fail and/or openat_restore_fail if
45096         cwd_errno is null, so that openat can call us.
45097         (openat_permissive, fdopendir, fstatat, unlinkat):
45098         Simplify errno handling to avoid some duplicate code,
45099         as it's OK to set errno on success.
45100         * lib/openat.h: Revamp code so that function macros depend on
45101         __OPENAT_PREFIX only, not also on AT_FDCWD.
45102         (openat_ro): Remove.  Caller changed to use openat_permissive.
45103         (openat_permissive): Now a macro, if not a function.
45104         (openat_restore_fail, openat_save_fail): Now always functions,
45105         since mkdirat needs them even if __OPENAT_PREFIX is defined.
45106
45107         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
45108         and openat.c.
45109         * lib/mkdirat.c: Include openat-priv.h.
45110         Remove definitions of macros defined therein.
45111         * lib/openat.c: Likewise.
45112
45113         * lib/mkdirat.c (mkdirat): New file and function.
45114         * lib/openat.h (mkdirat): Declare.
45115
45116         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
45117
45118         * lib/openat.h (openat_permissive): Declare.
45119         (openat_ro): Define.
45120
45121         * lib/openat.c (EXPECTED_ERRNO): New macro.
45122         (openat_permissive): New function -- used in remove.c rewrite.
45123         (all functions): Set errno just before returning, only if there
45124         was an actual failure.
45125         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
45126
45127         Emulate openat-family functions using Linux's procfs, if possible.
45128         Idea and some code based on Ulrich Drepper's glibc changes.
45129
45130         * lib/openat.c: (BUILD_PROC_NAME): New macro.
45131         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
45132         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
45133         before falling back on save_cwd and restore_cwd.
45134         (fdopendir, fstatat, unlinkat): Likewise.
45135
45136         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
45137         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
45138
45139         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
45140         as second argument to va_arg.  Otherwise, some versions of gcc
45141         warn that `if this code is reached, the program will abort'.
45142
45143 2006-01-09  Jim Meyering  <jim@meyering.net>
45144
45145         Sync from coreutils.
45146         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
45147         Require openat-priv.h.
45148
45149 2006-01-09  Bruno Haible  <bruno@clisp.org>
45150
45151         * modules/strnlen (Include): Use strnlen.h.
45152
45153 2006-01-09  Bruno Haible  <bruno@clisp.org>
45154
45155         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
45156
45157 2006-01-09  Bruno Haible  <bruno@clisp.org>
45158
45159         * lib/sysexit_.h (EX_OK): New macro.
45160         Suggested by Martin Lambers <marlam@marlam.de>.
45161
45162 2006-01-09  Bruno Haible  <bruno@clisp.org>
45163
45164         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
45165         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
45166
45167 2006-01-09  Bruno Haible  <bruno@clisp.org>
45168
45169         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
45170         numbers.
45171
45172 2006-01-09  Bruno Haible  <bruno@clisp.org>
45173
45174         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
45175         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
45176         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
45177         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
45178
45179 2006-01-09  Bruno Haible  <bruno@clisp.org>
45180
45181         * build-aux/javacomp.sh.in: New file, moved from lib/.
45182         * modules/javacomp-script (Files): Update.
45183         (configure.ac): Add AC_CONFIG_FILES invocation.
45184         (EXTRA_DIST): Remove variable.
45185
45186         * build-aux/javaexec.sh.in: New file, moved from lib/.
45187         * modules/javaexec (Files): Update.
45188         (configure.ac): Add AC_CONFIG_FILES invocation.
45189         (EXTRA_DIST): Remove javaexec.sh.in.
45190
45191         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
45192         * modules/csharpcomp-script (Files): Update.
45193         (configure.ac): Add AC_CONFIG_FILES invocation.
45194         (EXTRA_DIST): Remove variable.
45195
45196         * build-aux/csharpexec.sh.in: New file, moved from lib/.
45197         * modules/csharpexec (Files): Update.
45198         (configure.ac): Add AC_CONFIG_FILES invocation.
45199         (EXTRA_DIST): Remove csharpexec.sh.in.
45200
45201 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
45202
45203         Sync from coreutils.
45204
45205         Add POSIX ACL support
45206         * lib/acl.h (copy_acl, set_acl): Add declarations.
45207         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
45208         systems other than Linux.
45209         (chmod_or_fchmod): New function: use fchmod when possible,
45210         and chmod otherwise.
45211         (file_has_acl): Add a POSIX ACL implementation, with a
45212         Linux-specific subcase.
45213         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
45214         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
45215         acls are unsupported.
45216         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
45217         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
45218         are unsupported.
45219
45220 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
45221
45222         Sync from coreutils.
45223         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
45224
45225 2006-01-07  Bruno Haible  <bruno@clisp.org>
45226
45227         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
45228         gl_EARLY.
45229
45230 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
45231
45232         * lib/strftime.c (tzname): Don't declare if it is already #defined.
45233         Problem reported for Mingw by Mark Junker.
45234
45235 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
45236
45237         * README: Gnulib normally doesn't generate a tarball.
45238
45239 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
45240
45241         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
45242         long int, not int, for nanosecond counts, so that people who are
45243         used to POSIX struct timespec won't be surprised.  Reported by Jim
45244         Meyering.
45245
45246 2005-12-28  Bruno Haible  <bruno@clisp.org>
45247
45248         * build-aux/config.rpath: Update from GNU gettext.
45249
45250 2005-12-16  Jim Meyering  <jim@meyering.net>
45251
45252         * modules/fprintftime: New module.
45253         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
45254
45255 2005-12-16  Jim Meyering  <jim@meyering.net>
45256
45257         * m4/fprintftime.m4: New file.
45258
45259 2005-12-16  Jim Meyering  <jim@meyering.net>
45260
45261         * lib/fprintftime.c, lib/fprintftime.h: New files.
45262
45263 2005-12-15  Simon Josefsson  <jas@extundo.com>
45264
45265         * modules/socklen (configure.ac): Fix M4 macro name, to align with
45266         new m4/socklen.m4.
45267
45268 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
45269
45270         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
45271         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
45272
45273 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
45274
45275         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
45276         * lib/argp-help.c (fill_in_uparams): Check if the constructed
45277         struct uparams is valid. Fall back to the default values if it is
45278         not.
45279
45280 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
45281
45282         * modules/argp (Files): Add argp-pin.c
45283         (Depends-on): dirname
45284         (lib_SOURCES): Add argp-pin.c
45285
45286 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
45287
45288         * m4/argp.m4:  Check if program_invocation_name and
45289         program_invocation_short_name are declared and define appropriate
45290         macros if they are not.
45291
45292 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
45293
45294         * lib/argp-help.c (__argp_base_name): New function
45295         (__argp_short_program_name): Rewrite using __argp_base_name
45296         * lib/argp-namefrob.h: Define program_invocation_name and
45297         program_invocation_short_name if requested
45298         (__argp_base_name): Add prototype
45299         * lib/argp-parse.c (argp_def): Use gettext wrappers
45300         (argp_default_parser): Use __argp_base_name
45301         * lib/argp-pin.c: New file. Defines program_invocation_name and
45302         program_invocation_short_name on systems that lack them.
45303
45304 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
45305
45306         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
45307         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
45308         porting problem reported by Georg Schwarz in
45309         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
45310
45311 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
45312
45313         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
45314         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
45315         porting problem reported by Georg Schwarz in
45316         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
45317
45318 2005-12-05  Bruno Haible  <bruno@clisp.org>
45319
45320         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
45321         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
45322         Reported by Mark Junker <mjscod@gmx.de>.
45323
45324 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
45325
45326         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
45327         Use implementation from Albert Chin, with some
45328         comments/corrections by Stepan Kasal and myself.
45329
45330 2005-12-02  Bruno Haible  <bruno@clisp.org>
45331
45332         * gnulib-tool (func_import): Accept GPLed build tool modules when
45333         --lgpl is given.
45334         * modules/csharpcomp-script: New file.
45335         * modules/csharpcomp: Depend on it.
45336         * modules/javacomp-script: New file.
45337         * modules/javacomp: Depend on it.
45338         Suggested by Simon Josefsson.
45339
45340 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
45341
45342         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
45343         statement, to work around an HP-UX 10.20 compiler bug reported by
45344         Peter O'Gorman.
45345
45346 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
45347
45348         * modules/savedir (Depends-on): Add openat.
45349
45350 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
45351
45352         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
45353         (uintmax_t) [defined uintmax_t]: Do not declare.
45354         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
45355         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
45356         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
45357         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
45358         sake of portability to weird hosts that C allows (though we don't
45359         know of any practical examples).
45360
45361         * lib/savedir.h (fdsavedir): New decl.
45362         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
45363         contains most of the former guts of savedir.
45364         (savedir): Use savedirstream.
45365         Include "openat.h".
45366
45367 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
45368
45369         * modules/obstack (Files): Add m4/ulonglong.m4.
45370         Problem reported by Davide Angelocola.
45371
45372 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
45373
45374         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
45375         coreutils no longer futzes with rounding modes.
45376
45377 2005-11-14  Jim Meyering  <jim@meyering.net>
45378
45379         * lib/mkstemp-safer.c: Include <config.h>, required for possible
45380         replacement of mkstemp.
45381
45382 2005-11-10  Simon Josefsson  <jas@extundo.com>
45383
45384         * lib/readline.c: Remove EOL.
45385
45386 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
45387
45388         * modules/gethrxtime (Depends-on): Add gettime.
45389
45390 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
45391
45392         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
45393         or gettimeofday; no longer needed.
45394
45395 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
45396
45397         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
45398         time business.
45399         (gethrxtime) [! (HAVE_NANOUPTIME
45400         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
45401         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
45402         our own approximation.
45403
45404 2005-11-08  Eric Blake  <ebb9@byu.net>
45405
45406         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
45407
45408 2005-11-08  Eric Blake  <ebb9@byu.net>
45409
45410         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
45411
45412 2005-11-04  Bruno Haible  <bruno@clisp.org>
45413
45414         * gnulib-tool: Implement --update mode.
45415
45416 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
45417
45418         Fix porting problem reported by Theodoros V. Kalamatianos.
45419         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
45420         Don't assume that futimes failing means we must fail.
45421
45422 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
45423
45424         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
45425         variables to suggest the intended function of the PATH_MAX check.
45426
45427 2005-10-30  Kean Johnston  <jkj@sco.com>
45428
45429         Trivial changes to support SCO systems.
45430         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
45431         as PATH_MAX.
45432         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
45433         where __ptr is null when no I/O is pending.
45434
45435 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
45436
45437         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
45438         leave errno alone.  Problem reported by Dmitry V. Levin.
45439
45440 2005-10-28  Simon Josefsson  <jas@extundo.com>
45441
45442         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
45443         Test more.
45444
45445         * tests/test-gc-md2.c, tests/test-md2.c: New files.
45446
45447         * modules/md2, modules/md2-tests: New files.
45448
45449 2005-10-28  Simon Josefsson  <jas@extundo.com>
45450
45451         * m4/inet_ntop.m4: More tests.
45452
45453         * m4/gc-md2.m4, md2.m4: New file.
45454
45455 2005-10-28  Simon Josefsson  <jas@extundo.com>
45456
45457         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
45458         "restrict" keywords, as per POSIX.  Protect the function
45459         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
45460         Don't use K&R prototypes.  Check the sprintf return values.
45461         Re-define EAFNOSUPPORT if not present.  Indent.
45462
45463         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
45464         suggested by Bruno Haible <bruno@clisp.org>.
45465
45466         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
45467
45468         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
45469
45470         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
45471         libgcrypt).
45472
45473         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
45474
45475         * lib/md2.h, lib/md2.c: New files.
45476
45477 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
45478
45479         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
45480         errno alone.  Problem reported by Frederic Jolliton.
45481
45482 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
45483
45484         * modules/verify (License): Change from GPL to LGPL.  This is a
45485         tiny module and there are apparently near-equivalents that are
45486         under the BSD license.
45487
45488 2005-10-24  Simon Josefsson  <jas@extundo.com>
45489
45490         * modules/sha1: Relicense to LGPL.
45491
45492 2005-10-24  Simon Josefsson  <jas@extundo.com>
45493
45494         * lib/md4.h: Shrink buffer size, now that we changed the type.
45495
45496 2005-10-23  Simon Josefsson  <jas@extundo.com>
45497
45498         * gnulib-tool (func_import): Fix --tests-base.
45499
45500 2005-10-22  Simon Josefsson  <jas@extundo.com>
45501
45502         * modules/arcfour (Depends-on): Need stdint.
45503
45504 2005-10-22  Simon Josefsson  <jas@extundo.com>
45505
45506         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
45507         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
45508
45509 2005-10-22  Simon Josefsson  <jas@extundo.com>
45510
45511         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
45512         suggested by Bruno Haible <bruno@clisp.org>.
45513
45514 2005-10-22  Simon Josefsson  <jas@extundo.com>
45515
45516         * lib/crc.h: Include stddef.h, for size_t.
45517
45518 2005-10-22  Simon Josefsson  <jas@extundo.com>
45519
45520         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
45521         arcfour_context struct (simplify test vector testing in GNU
45522         Shishi).
45523
45524 2005-10-21  Simon Josefsson  <jas@extundo.com>
45525
45526         * modules/des, modules/des-tests: New files.
45527
45528         * modules/gc-des, modules/gc-des-tests: New files.
45529
45530         * tests/test-des.c, tests/test-gc-des.c: New file.
45531
45532 2005-10-21  Simon Josefsson  <jas@extundo.com>
45533
45534         * modules/arctwo, modules/arctwo-tests: New files.
45535
45536         * tests/test-arctwo.c: New file.
45537
45538         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
45539
45540         * tests/test-gc-arctwo.c: New file.
45541
45542 2005-10-21  Simon Josefsson  <jas@extundo.com>
45543
45544         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
45545         Bruno Haible <bruno@clisp.org>.
45546
45547         * m4/gc-des.m4: New file.
45548
45549 2005-10-21  Simon Josefsson  <jas@extundo.com>
45550
45551         * m4/arctwo.m4: New file.
45552
45553         * m4/gc-arctwo.m4: New file.
45554
45555 2005-10-21  Simon Josefsson  <jas@extundo.com>
45556
45557         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
45558         block.
45559
45560 2005-10-21  Simon Josefsson  <jas@extundo.com>
45561
45562         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
45563         <bruno@clisp.org>.
45564
45565         * lib/hmac-sha1.c (hmac_sha1): Likewise.
45566
45567         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
45568         Bruno Haible <bruno@clisp.org>.
45569
45570         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
45571         <bruno@clisp.org>.
45572
45573 2005-10-21  Simon Josefsson  <jas@extundo.com>
45574
45575         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
45576
45577 2005-10-21  Simon Josefsson  <jas@extundo.com>
45578
45579         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
45580
45581 2005-10-21  Simon Josefsson  <jas@extundo.com>
45582
45583         * lib/des.h, lib/des.c: New files.
45584
45585         * lib/gc-gnulib.c: Support DES.c
45586
45587 2005-10-21  Simon Josefsson  <jas@extundo.com>
45588
45589         * lib/arctwo.h, lib/arctwo.c: New files.
45590
45591         * lib/gc-gnulib.c: Support ARCTWO.
45592
45593 2005-10-21  Simon Josefsson  <jas@extundo.com>
45594
45595         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
45596         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45597
45598 2005-10-21  Simon Josefsson  <jas@extundo.com>
45599
45600         * gnulib-tool (func_import, func_create_testdir): Define automake
45601         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
45602         Makefile.am snippet),
45603         suggested by Bruno Haible <bruno@clisp.org>.
45604
45605         * modules/gc (Makefile.am): Use it.
45606
45607 2005-10-21  Bruno Haible  <bruno@clisp.org>
45608
45609         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
45610         patch.
45611
45612 2005-10-19  Simon Josefsson  <jas@extundo.com>
45613
45614         * tests/test-gc-rijndael.c: New file.
45615
45616         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
45617
45618 2005-10-19  Simon Josefsson  <jas@extundo.com>
45619
45620         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
45621         interface too.
45622
45623 2005-10-19  Simon Josefsson  <jas@extundo.com>
45624
45625         * tests/test-gc-arcfour.c: New file.
45626
45627         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
45628
45629 2005-10-19  Simon Josefsson  <jas@extundo.com>
45630
45631         * modules/gc-md4, modules/gc-md4-tests: New file.
45632
45633         * tests/test-gc-md4.c: New file.
45634
45635 2005-10-19  Simon Josefsson  <jas@extundo.com>
45636
45637         * m4/gc-md4.m4: New file.
45638
45639 2005-10-19  Simon Josefsson  <jas@extundo.com>
45640
45641         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
45642         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
45643         <kasal@ucw.cz>.
45644
45645 2005-10-19  Simon Josefsson  <jas@extundo.com>
45646
45647         * m4/gc-arcfour.m4: New file.
45648
45649         * m4/gc-rijndael.m4: New file.
45650
45651 2005-10-19  Simon Josefsson  <jas@extundo.com>
45652
45653         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
45654
45655 2005-10-19  Simon Josefsson  <jas@extundo.com>
45656
45657         * lib/gc-gnulib.c: Support ARCFOUR.
45658
45659 2005-10-19  Simon Josefsson  <jas@extundo.com>
45660
45661         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
45662         support.
45663
45664         * lib/gc.h: Add ECB enum type.
45665
45666         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
45667
45668 2005-10-18  Simon Josefsson  <jas@extundo.com>
45669
45670         * tests/test-md5.c: New file.
45671
45672         * modules/md5-tests: New file.
45673
45674 2005-10-18  Simon Josefsson  <jas@extundo.com>
45675
45676         * tests/test-md4.c: New file.
45677
45678         * modules/md4, modules/md4-tests: New files.
45679
45680 2005-10-18  Simon Josefsson  <jas@extundo.com>
45681
45682         * m4/md4.m4: New file.
45683
45684 2005-10-18  Simon Josefsson  <jas@extundo.com>
45685
45686         * lib/md4.h, lib/md4.c: New files, based on md5.?.
45687
45688 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
45689
45690         * gnulib-tool (func_create_testdir): Omit the second check whether
45691         BUILT_SOURCES in nonempty.
45692
45693 2005-10-17  Simon Josefsson  <jas@extundo.com>
45694
45695         * tests/test-rijndael.c: New file.
45696
45697 2005-10-17  Simon Josefsson  <jas@extundo.com>
45698
45699         * modules/sha1: Depend on stdint instead of md5.
45700
45701         * modules/md5: Depend on stdint, remove uint32_t.
45702
45703 2005-10-17  Simon Josefsson  <jas@extundo.com>
45704
45705         * modules/gc-sha1-tests: New file.
45706
45707         * tests/test-gc-sha1.c: New file.
45708
45709 2005-10-17  Simon Josefsson  <jas@extundo.com>
45710
45711         * m4/md5.m4: Remove call to uint32_t.m4.
45712
45713 2005-10-17  Simon Josefsson  <jas@extundo.com>
45714
45715         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
45716
45717         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
45718         md5.h.
45719
45720         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
45721
45722         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
45723
45724 2005-10-17  Simon Josefsson  <jas@extundo.com>
45725
45726         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
45727
45728 2005-10-17  Simon Josefsson  <jas@extundo.com>
45729
45730         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
45731
45732 2005-10-17  Simon Josefsson  <jas@extundo.com>
45733
45734         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
45735
45736         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
45737
45738 2005-10-17  Bruno Haible  <bruno@clisp.org>
45739
45740         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
45741         that it can also be used in a test.
45742
45743 2005-10-16  Bruno Haible  <bruno@clisp.org>
45744
45745         * gnulib-tool (func_emit_tests_Makefile_am): Also define
45746         TESTS_ENVIRONMENT, so that individual tests can augment it.
45747
45748         * gnulib-tool (func_create_testdir): Use an intermediate target for
45749         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
45750         macros, like $(ALLOCA_H), which cannot be passed through the command
45751         line.
45752
45753 2005-10-15  Simon Josefsson  <jas@extundo.com>
45754
45755         * modules/rijndael-tests: New file.
45756
45757         * modules/rijndael: New file.
45758
45759 2005-10-15  Simon Josefsson  <jas@extundo.com>
45760
45761         * m4/rijndael.m4: New file.
45762
45763 2005-10-15  Simon Josefsson  <jas@extundo.com>
45764
45765         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
45766
45767         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
45768
45769 2005-10-14  Simon Josefsson  <jas@extundo.com>
45770
45771         * tests/test-arcfour.c: New file.
45772
45773         * modules/arcfour, modules/arcfour-tests: New files.
45774
45775 2005-10-14  Simon Josefsson  <jas@extundo.com>
45776
45777         * m4/arcfour.m4: New file.
45778
45779 2005-10-14  Simon Josefsson  <jas@extundo.com>
45780
45781         * lib/arcfour.h, lib/arcfour.c: New files.
45782
45783 2005-10-14  Roland McGrath  <roland@redhat.com>
45784
45785         Import from libc.  [BZ #1331]
45786         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
45787         macro argument.
45788         Reported by Matej Vela <vela@debian.org>.
45789
45790 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
45791
45792         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
45793         include <wchar.h>; no longer needed.
45794
45795 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
45796
45797         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
45798
45799 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
45800         and  Ulrich Drepper  <drepper@redhat.com>
45801
45802         Import from libc.
45803         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
45804         instead of inline stream orientation test and two separate
45805         function calls.  Pay no attention to USE_IN_LIBIO.
45806
45807 2005-10-13  Simon Josefsson  <jas@extundo.com>
45808
45809         * modules/gc-hmac-md5-tests: New file.
45810
45811         * tests/test-gc-hmac-sha1.c: New file.
45812
45813         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
45814
45815         * modules/gc-hmac-md5-tests: New file.
45816
45817         * tests/test-gc-md5.c: New file.
45818
45819         * modules/gc-md5-tests: New file.
45820
45821 2005-10-13  Simon Josefsson  <jas@extundo.com>
45822
45823         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
45824         Move memory allocation outside of loop.
45825
45826 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
45827
45828         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
45829         intermediate directory is in a read-only file system.  Problem
45830         reported by Eric Blake.
45831
45832 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
45833
45834         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
45835
45836 2005-10-12  Simon Josefsson  <jas@extundo.com>
45837
45838         * tests/test-hmac-sha1.c: New file.
45839
45840         * modules/hmac-sha1-tests: New file.
45841
45842         * modules/hmac-sha1: New file.
45843
45844 2005-10-12  Simon Josefsson  <jas@extundo.com>
45845
45846         * modules/gc-sha1: New file.
45847
45848 2005-10-12  Simon Josefsson  <jas@extundo.com>
45849
45850         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
45851
45852         * tests/test-gc-pbkdf2-sha1.c: New file.
45853
45854 2005-10-12  Simon Josefsson  <jas@extundo.com>
45855
45856         * modules/gc-md5, modules/gc-hmac-md5: New files.
45857
45858         * modules/gc (Files): Remove md5, memxor and hmac files.
45859
45860 2005-10-12  Simon Josefsson  <jas@extundo.com>
45861
45862         * m4/gc-pbkdf2-sha1.m4: New file.
45863
45864         * m4/gc-hmac-sha1.m4: New file.
45865
45866         * m4/gc-sha1: New file.
45867
45868         * m4/hmac-sha1.m4: New file.
45869
45870 2005-10-12  Simon Josefsson  <jas@extundo.com>
45871
45872         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
45873
45874         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
45875
45876 2005-10-12  Simon Josefsson  <jas@extundo.com>
45877
45878         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
45879         suggested by Bruno Haible <bruno@clisp.org>.
45880
45881 2005-10-12  Simon Josefsson  <jas@extundo.com>
45882
45883         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
45884
45885 2005-10-12  Simon Josefsson  <jas@extundo.com>
45886
45887         * lib/gc-pbkdf2-sha1.c: New file.
45888
45889         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
45890
45891 2005-10-12  Simon Josefsson  <jas@extundo.com>
45892
45893         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
45894
45895         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
45896
45897 2005-10-12  Simon Josefsson  <jas@extundo.com>
45898
45899         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
45900         GC_USE_HMAC_MD5, respectively.
45901
45902         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
45903         (gc_md5): Fix typo.
45904
45905         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
45906
45907         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
45908
45909         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
45910
45911 2005-10-12  Bruno Haible  <bruno@clisp.org>
45912
45913         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
45914         Reported by Stepan Kasal <kasal@ucw.cz>.
45915
45916 2005-10-11  Simon Josefsson  <jas@extundo.com>
45917
45918         * tests/test-crc.c: New file.
45919
45920         * modules/crc, modules/crc-tests: New files.
45921
45922 2005-10-11  Simon Josefsson  <jas@extundo.com>
45923
45924         * m4/crc.m4: New file.
45925
45926 2005-10-11  Simon Josefsson  <jas@extundo.com>
45927
45928         * lib/gc.h: Add gc_hash and gc_hash_buffer.
45929
45930         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
45931
45932         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
45933
45934 2005-10-11  Simon Josefsson  <jas@extundo.com>
45935
45936         * lib/crc.h, lib/crc.c: New files.
45937
45938         * lib/gc.h (gc_hash_buffer): Add doc.
45939
45940 2005-10-11  Bruno Haible  <bruno@clisp.org>
45941
45942         * modules/c-strcasestr: New file.
45943         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
45944
45945 2005-10-11  Bruno Haible  <bruno@clisp.org>
45946
45947         * modules/c-strcase: New file.
45948         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
45949
45950 2005-10-11  Bruno Haible  <bruno@clisp.org>
45951
45952         * lib/strcasecmp.c: Include limits.h.
45953         (strcasecmp): Avoid integer overflow on exotic platforms.
45954         * lib/strncasecmp.c: Include limits.h.
45955         (strncasecmp): Avoid integer overflow on exotic platforms.
45956         Reported by Paul Eggert.
45957
45958 2005-10-11  Bruno Haible  <bruno@clisp.org>
45959
45960         * lib/c-strcasestr.h: New file, from GNU gettext.
45961         * lib/c-strcasestr.c: New file, from GNU gettext.
45962
45963 2005-10-11  Bruno Haible  <bruno@clisp.org>
45964
45965         * lib/c-strcase.h: New file, from GNU gettext.
45966         * lib/c-strcasecmp.c: New file, from GNU gettext.
45967         * lib/c-strncasecmp.c: New file, from GNU gettext.
45968
45969 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
45970
45971         * modules/mempcpy (License): GPL -> LGPL.
45972         * modules/strchrnul (License): Likewise.
45973         * modules/sysexits (License): Likewise.
45974
45975 2005-10-08  Simon Josefsson  <jas@extundo.com>
45976
45977         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
45978
45979 2005-10-07  Simon Josefsson  <jas@extundo.com>
45980
45981         * m4/memxor.m4: Remove gl_C_RESTRICT call.
45982
45983 2005-10-06  Simon Josefsson  <jas@extundo.com>
45984
45985         * tests/test-hmac-md5.c: New file.
45986
45987         * modules/hmac-md5-tests: New file.
45988
45989         * modules/hmac-md5: New file.
45990
45991 2005-10-06  Simon Josefsson  <jas@extundo.com>
45992
45993         * m4/hmac-md5.m4: New file.
45994
45995         * m4/memxor.m4: Require gl_C_RESTRICT.
45996
45997 2005-10-06  Simon Josefsson  <jas@extundo.com>
45998
45999         * lib/memxor.c (memxor): Avoid casts and warnings.
46000
46001 2005-10-06  Simon Josefsson  <jas@extundo.com>
46002
46003         * lib/hmac-md5.c: New file.
46004
46005         * lib/hmac.h: New file.
46006
46007 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
46008
46009         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
46010         promotes to int, not unsigned int, to catch the AIX 5.3
46011         compiler bug.
46012
46013 2005-10-05  Simon Josefsson  <jas@extundo.com>
46014
46015         * modules/memxor: New file.
46016
46017         * modules/iconv (Files): Move config.rpath to havelib, it is used
46018         there.
46019
46020         * modules/havelib (Files): Add config.rpath.
46021
46022 2005-10-05  Simon Josefsson  <jas@extundo.com>
46023
46024         * m4/memxor.m4: New file.
46025
46026 2005-10-05  Simon Josefsson  <jas@extundo.com>
46027
46028         * lib/memxor.c (memxor): Fix compiler error.
46029
46030         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
46031         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
46032
46033         * lib/memxor.h, lib/memxor.c: New files.
46034
46035         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
46036         we assume all systems have it, suggested by Jim Meyering
46037         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
46038         any systems lack sys/socket.h; mingw32 is known to lack it, but we
46039         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
46040         same reasons.
46041
46042 2005-10-05  Simon Josefsson  <jas@extundo.com>
46043
46044         * config/srclist.txt: Add glibc bug 1423 for md5.h.
46045
46046 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
46047
46048         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
46049         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
46050         needed, since the source code now assumes these .h files.
46051
46052 2005-10-05  Derek Price  <derek@ximbiot.com>
46053
46054         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
46055
46056 2005-10-05  Bruno Haible  <bruno@clisp.org>
46057
46058         * modules/stdint (License): Change to LGPL.
46059
46060 2005-10-04  Simon Josefsson  <jas@extundo.com>
46061
46062         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
46063         D. Baushke" <mdb@gnu.org>.
46064
46065 2005-10-04  Bruno Haible  <bruno@clisp.org>
46066
46067         * lib/verify.h (verify_true): Provide alternative definition for C++.
46068
46069 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
46070
46071         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
46072         (SSIZE_MAX): New macro, if not already defined.
46073         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
46074         than 2 GiB.
46075
46076 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
46077
46078         Sync from coreutils.
46079         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
46080         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
46081         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
46082         ULLONG_MAX doesn't work with 2.7.2.1.
46083
46084 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
46085
46086         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
46087         From Ben Pfaff.
46088
46089         * modules/exclude (Depends-on): Depend on verify.
46090         * modules/strtoimax (Depends-on): Likewise.
46091         * modules/utimecmp (Depends-on): Likewise.
46092
46093 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
46094
46095         * lib/exclude.c: Include verify.h.
46096         (verify): Remove.  All callers changed to use verify.h's version.
46097         * lib/strtoimax.c: Likewise.
46098         * lib/utimecmp.c: Likewis.e
46099
46100         Sync from coreutils.
46101         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
46102         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
46103         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
46104         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
46105         bother returning ENOSYS if settimeofday or stime fails; just let
46106         them return whatever errno they want to return.
46107         * lib/utimens.c: Include unistd.h, for dup2.
46108         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
46109         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
46110
46111 2005-10-02  Jim Meyering  <jim@meyering.net>
46112
46113         Sync from coreutils.
46114         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
46115         from glibc-2.2.5 that fails for read-only files.
46116
46117 2005-10-02  Jim Meyering  <jim@meyering.net>
46118
46119         Sync from coreutils.
46120         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
46121         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
46122         `#if HAVE_CONFIG_H'.
46123         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
46124         Remove AT_FDCWD test.
46125         Do not consume the fd unless successful.
46126         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
46127         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
46128         block, so that we don't even try to compile it if settimeofday is
46129         available.  This works around a compilation failure on OSF1 V5.1,
46130         due to stime requiring a `long int*' while tv_sec is `int'.
46131
46132 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
46133
46134         Sync from coreutils.
46135         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
46136         against `yes', rather than just testing for nonempty.
46137
46138 2005-10-01  Simon Josefsson  <jas@extundo.com>
46139
46140         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
46141         and Darwin.
46142
46143         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
46144         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
46145         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
46146         freeaddrinfo and gai_strerror are declared by the POSIX headers.
46147         Check if struct addrinfo is declared.
46148
46149 2005-10-01  Simon Josefsson  <jas@extundo.com>
46150
46151         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
46152         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
46153         AI_* and EAI_* definitions.  Protect function declarations.
46154
46155 2005-10-01  Jim Meyering  <jim@meyering.net>
46156
46157         Sync from coreutils.
46158
46159         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
46160         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
46161         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
46162         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
46163         in the inet and nsl libraries.  Required on Solaris 5.7.
46164
46165 2005-10-01  Jim Meyering  <jim@meyering.net>
46166
46167         Sync from coreutils.
46168         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
46169         in the inet and nsl libraries.  Required on Solaris 5.7.
46170
46171 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
46172
46173         * lib/getdelim.c (getdelim): Remove unused variables.
46174
46175 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
46176
46177         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
46178         so that the code works even with ancient cpp.  Portability problem
46179         with GCC 2.7.2.1 reported by Thomas M.Ott.
46180
46181 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
46182
46183         * modules/regex (Depends-on): Add strcase.
46184
46185         * modules/gethostname (Licence): Change from GPL to LGPL, since
46186         gethostname.c is a trivial implementation of a standard library
46187         function.
46188         * modules/poll (License): Change from GPL to LGPL, since it's
46189         derived from LGPL code.
46190
46191 2005-09-27  Jim Meyering  <jim@meyering.net>
46192
46193         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
46194         HAVE_CONFIG_H.
46195
46196         * lib/intprops.h (signed_type_or_expr__): Define.
46197         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
46198         for unsigned types.
46199
46200 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
46201
46202         * lib/verify.h (verify_expr): Remove, replacing with:
46203         (verify_true): New macro that returns true instead of void.
46204         (verify_type__): Remove.
46205         (verify): Use verify_true rather than verify_type__.
46206
46207 2005-09-26  Bruno Haible  <bruno@clisp.org>
46208
46209         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
46210         is necessary.
46211         (lib_SOURCES): Remove mbchar.c.
46212         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
46213         (Files): Add m4/mbrtowc.m4.
46214         * modules/mbiter: Likewise.
46215         * modules/mbuiter: Likewise.
46216
46217 2005-09-26  Bruno Haible  <bruno@clisp.org>
46218
46219         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
46220         compile mbchar.c if they are not both present.
46221         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
46222         * m4/mbiter.m4 (gl_MBITER): Likewise.
46223         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
46224         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
46225         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
46226
46227 2005-09-25  Jim Meyering  <jim@meyering.net>
46228
46229         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
46230         also uses socklen_t.
46231
46232 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
46233
46234         * lib/utimens.c (ENOSYS): Define if not already defined.
46235         (futimens): Support having a null PATH if the file descriptor
46236         is nonnegative.
46237
46238         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
46239         Remove.
46240         (__attribute): Define to empty unless GCC 3.1 or later.
46241         This works around a core dump on OpenBSD 3.4, which has GCC
46242         2.95.3, which dumps core when given __attribute__(()).  It also
46243         simplifies other tests, since we really don't want to bother with
46244         worrying about which ancient version of GCC supported what.
46245         Original problem reported by Yoann Vandoorselaere, with part of
46246         the fix suggested by Derek Price.
46247
46248 2005-09-24  Jim Meyering  <jim@meyering.net>
46249
46250         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
46251         so we can once again use a positive bitfield width of 1 -- now we
46252         don't have to explain why we were using a bitfield width of 2.
46253
46254 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
46255
46256         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
46257         and similarly for the other external symbols.  Problem reported
46258         by James Gallager.
46259
46260         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
46261         bug reported by Jim Meyering.
46262
46263         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
46264         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
46265         not needed, since socklen is a prerequisite module.
46266
46267 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
46268
46269         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
46270         Problem reported by Eric Blake.
46271         (getaddrinfo): Initialize se so that it's not garbage.
46272         Redo internal storage allocation so that it doesn't make unportable
46273         assumptions about alignment.
46274         Fix a memory leak.
46275
46276         * lib/utimens.c (futimens): Use futimesat if available.
46277         Prefer it to futimes since it doesn't have the futimes bug.
46278
46279         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
46280         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
46281         Instead, declare a function that returns a pointer to an array,
46282         and use verify_type__ to declare the size of the array.
46283         Problem and germ of a solution reported by Bruno Haible.
46284         (verify_type__): Use 2, not 1, for bitfield size, to avoid
46285         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
46286
46287 2005-09-23  Jim Meyering  <jim@meyering.net>
46288
46289         Sync from coreutils.
46290         Correct build failure (socklen_t not defined) on at least
46291         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
46292         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
46293
46294 2005-09-23  Jim Meyering  <jim@meyering.net>
46295
46296         * modules/getaddrinfo (Depends-on): Add socklen.
46297
46298 2005-09-23  Bruno Haible  <bruno@clisp.org>
46299
46300         * tests/test-verify.c: New file.
46301
46302 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
46303
46304         Sync from coreutils.
46305
46306         * modules/argmatch (Depends-on): Add verify.
46307         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
46308         unistd-safer.
46309         * modules/save-cwd (Depends-on): Likewise.
46310
46311         * modules/openat (Files): Add lib/openat-die.c.
46312         (Depends-on): Remove error, exitfail.
46313         Add dirname.
46314
46315         * modules/verify: New file.
46316         * MODULES.html.sh (Diagnostics <assert.h>): New section,
46317         with "verify" module.
46318
46319 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
46320
46321         Sync from coreutils.
46322
46323         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
46324         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
46325         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
46326         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
46327         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
46328         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
46329         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
46330         Don't bother checking for string.h, stdlib.h, unistd.h.
46331         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
46332         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
46333         module's job.
46334         * m4/jm-macros.m4 (gl_MACROS): Likewise.
46335         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
46336
46337         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
46338         (gl_GETDATE): Use it.
46339
46340         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
46341
46342 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
46343
46344         Sync from coreutils.
46345
46346         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
46347         stat-time.h.
46348         * lib/argmatch.h: Include verify.h
46349         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
46350         (ARGMATCH_ASSERT): Remove; unused.
46351         * lib/canonicalize.c: Assume STDC_HEADERS.
46352         * lib/exclude.c: Include "strcase.h".
46353         * lib/regex_internal.h [!defined _LIBC]: Likewise.
46354         * lib/getusershell.c: Include stdio--.h rather than stdio.h
46355         and stdio-safer.h.
46356         (getusershell): Call fopen, not fopen_safer.
46357         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
46358         Do not include unistd-safer.h.
46359         (save_cwd): Don't call fd_safer; no longer needed
46360         now that we include fcntl--.h.
46361
46362         * lib/getdate.y (relative_time): New type.
46363         (RELATIVE_TIME_0): New constant.
46364         (parser_control): Use relative_time instead of doing it ourselves.
46365         (%union): Add new relative_time rel member.
46366         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
46367         Now typeless.
46368         (relunit, relunit_snumber): Now of type rel.
46369         (zone, rel, relunit, get_date): Adjust to above changes.
46370
46371         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
46372         Do not include unistd-safer.h.
46373         (getloadavg): Don't call fd_safer; no longer needed
46374         now that we include fcntl--.h.
46375
46376         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
46377         (make_dir_parents): Treat ENOSYS like EEXIST.
46378
46379         Improve quality of diagnostics on restore_cwd failure.
46380         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
46381         (make_dir_parents): Last arg is now int * (for errno), not bool *.
46382         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
46383         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
46384         each time through the loop.  Do not diagnose restore_cwd failure;
46385         that is the caller's job (and perhaps the caller does not care).
46386
46387         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
46388         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
46389         If the file already exists but is not a directory, don't bother
46390         to try to make its parents.
46391         Close potential file descriptor leak if we can't chdir("/") (!).
46392         Don't always return true if chdir($PWD) fails; return true only
46393         if the requested action was done successfully (except for the
46394         chdir($PWD)).
46395         Don't log final directory unless we actually made it.
46396         Refactor to avoid duplicate code to fix up permissions.
46397         Don't attempt to fix up parent permissions if chdir($PWD) fails.
46398
46399         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
46400         to make it a bit faster and (I hope) clearer.
46401         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
46402         Fix bug in formats like %2N.
46403
46404         * lib/verify.h: New file.
46405
46406 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
46407
46408         Sync from coreutils.
46409         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
46410
46411 2005-09-22  Jim Meyering  <jim@meyering.net>
46412
46413         Sync from coreutils.
46414
46415         * m4/lstat.m4 (gl_FUNC_LSTAT):
46416         Use AC_LIBSOURCES to require lstat.c and lstat.h.
46417         Remove obsolete comment.
46418         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
46419         * m4/xstrtod.m4: Likewise.
46420
46421         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
46422
46423 2005-09-22  Jim Meyering  <jim@meyering.net>
46424
46425         Sync from coreutils.
46426
46427         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
46428
46429         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
46430         the .tm_year member, since otherwise gcc-4.0 would now warn about
46431         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
46432
46433         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
46434         order to avoid an unsuppressible warning from gcc on 64-bit systems.
46435
46436         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
46437         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
46438         when run in a time zone for which daylight savings time is in effect
46439         for the starting date.
46440
46441         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
46442         stop us from restricting permissions of just-created absolute-named
46443         directories.
46444         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
46445         to restore initial working directory.
46446         * lib/mkdir-p.c (make_dir_parents): New parameter:
46447         different_working_dir, to tell caller if/when we change the working
46448         directory and are unable to return to the initial one.
46449         * lib/mkdir-p.h (make_dir_parents): Update prototype.
46450         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
46451         `return false'.  This fixes a bug introduced on 2004-07-30.
46452
46453         * lib/openat.c (fdopendir): Be sure to close the supplied
46454         file descriptor before returning.  This makes our replacement
46455         implementation a little closer to Solaris's, where fdopendir
46456         ties the file descriptor to the returned DIR* pointer.
46457         * lib/openat.c (unlinkat): New function.
46458         * lib/openat.h (unlinkat): Add prototype.
46459         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
46460         (openat_restore_fail): Rename from openat_restore_die.
46461         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
46462
46463         Provide an alternative to exiting immediately upon save_cwd or
46464         restore_cwd failure.  Now, an application can arrange e.g.,
46465         to perform a longjump in that case.
46466         * lib/openat.c: Include dirname.h.
46467         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
46468         (rpl_openat, fdopendir, fstatat): Call openat_save_die
46469         and openat_restore_die rather than calling error directly.
46470         Don't include "error.h" or "exitfail.h"; they're no longer needed.
46471
46472         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
46473         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
46474         define.
46475
46476         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
46477         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
46478                             int utc, int nanoseconds);
46479         Background:
46480         date should not have to allocate a megabyte of virtual memory to
46481         handle a format argument like +%1048575T.  When implemented with
46482         strftime, it must allocate such a buffer, use strftime to fill it
46483         in, print it, then free it.
46484         With fprintftime, it simply prints everything and exits.
46485         With no need for memory allocation, that's one fewer way to fail.
46486         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
46487         optional field width, not before, so we accept %9:z, not %:9z.
46488         (my_strftime): Be sure to use L_('x') for literals.
46489
46490         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
46491         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
46492         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
46493         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
46494         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
46495         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
46496         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
46497         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
46498         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
46499         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
46500         * lib/xgethostname.c, lib/xreadlink.c:
46501         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
46502
46503         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
46504         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
46505         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
46506         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
46507         and don't include <sys/file.h>).
46508
46509 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
46510
46511         Sync from coreutils.
46512
46513         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
46514         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
46515         [!LDAV_DONE]: Avoid unused variable warning.
46516
46517 2005-09-21  Bruno Haible  <bruno@clisp.org>
46518
46519         * lib/unicodeio.h (unicode_to_mb): New declaration.
46520
46521 2005-09-20  Derek Price  <derek@ximbiot.com>
46522
46523         * lib/getaddrinfo.c: Don't include <netdb.h> included from
46524         getaddrinfo.h.
46525
46526 2005-09-20  Bruno Haible  <bruno@clisp.org>
46527
46528         * gnulib-tool: Remove trailing slashes from the values specified for
46529         --source-base, --m4-base, --tests-base, --aux-dir.
46530         Suggested by Simon Josefsson <jas@extundo.com>.
46531
46532 2005-09-20  Bruno Haible  <bruno@clisp.org>
46533
46534         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
46535         func_modules_to_filelist, func_import, func_create_testdir): Make all
46536         sorting results locale-independent, so that gnulib-cache.m4 doesn't
46537         change when gnulib-tool is invoked in a different locale.
46538
46539 2005-09-19  Simon Josefsson  <jas@extundo.com>
46540
46541         * m4/socklen.m4: Fix typo.
46542
46543 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46544
46545         Use a consistent style for including <config.h>.
46546         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
46547         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
46548         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
46549         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
46550         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
46551         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
46552         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
46553         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
46554         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
46555         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
46556         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
46557         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
46558         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
46559         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
46560         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
46561         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
46562         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
46563         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
46564         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
46565         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
46566         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
46567         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
46568         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
46569         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
46570         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
46571         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
46572         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
46573         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
46574         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
46575         lib/xstrtoumax.c, lib/yesno.c:
46576         Standardize inclusion of config.h.
46577         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
46578         lib/inttostr.h:  Removed inclusion of config.h from header files.
46579         * lib/inttostr.c:  Adjusted in-tree users.
46580         * lib/timespec.h: Remove superfluous warning to include config.h.
46581         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
46582         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
46583         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
46584         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
46585         config.h with HAVE_CONFIG_H.
46586
46587 2005-09-19  Jim Meyering  <jim@meyering.net>
46588
46589         * modules/pathmax (License): Change to LGPL.
46590
46591 2005-09-19  Derek Price  <derek@ximbiot.com>
46592
46593         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
46594
46595 2005-09-19  Bruno Haible  <bruno@clisp.org>
46596
46597         * gnulib-tool (import): Provide default for --tests-base.
46598
46599 2005-09-19  Bruno Haible  <bruno@clisp.org>
46600
46601         * doc/quote.texi: New file, extracted from gnulib.texi.
46602         * doc/ctime.texi: New file, extracted from gnulib.texi.
46603         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
46604         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
46605         * doc/gnulib.texi: Include them.
46606
46607 2005-09-18  Bruno Haible  <bruno@clisp.org>
46608
46609         Portability fix.
46610         * gnulib-tool (func_readlink): New function.
46611         (func_ln_if_changed): Use it.
46612
46613 2005-09-18  Bruno Haible  <bruno@clisp.org>
46614
46615         * gnulib-tool: Support --with-tests also with --import.
46616         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
46617         (func_import): Use variables $testsbase and $inctests. Emit a
46618         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
46619         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
46620         SUBDIRS += $testsdir.
46621         (func_create_testdir): Update.
46622
46623 2005-09-18  Bruno Haible  <bruno@clisp.org>
46624
46625         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
46626         instead of $dry_run.
46627         (func_cp_if_changed, func_mv_if_changed): Remove functions.
46628         (func_ln_if_changed): Don't handle dry-run here.
46629         (func_import): In dry-run mode, detect more precisely which actions
46630         would be performed, and don't use "...ing" verbs.
46631
46632 2005-09-18  Bruno Haible  <bruno@clisp.org>
46633
46634         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
46635         (func_import): Use join on two temporary files instead of three nested
46636         loops, in order to determine which files are new or old.
46637
46638 2005-09-18  Bruno Haible  <bruno@clisp.org>
46639
46640         * gnulib-tool (func_import): Comment out code that spits out the
46641         new files with --dry-run.
46642
46643 2005-09-18  Bruno Haible  <bruno@clisp.org>
46644
46645         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
46646
46647 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
46648
46649         * lib/stat-time.h: New file.
46650         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
46651         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
46652         in a different way.
46653         (timespec_cmp): New function.
46654         * lib/utimecmp.c: Include stat-time.h.
46655         (SYSCALL_RESOLUTION): Depend on whether various struct stat
46656         members exist, not on the obsolescent ST_MTIM_NSEC.
46657         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
46658
46659 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
46660
46661         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
46662
46663 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
46664
46665         * MODULES.html.sh (File system functions): Add stat-time.
46666         * modules/stat-time: New file.
46667         * modules/timespec (Files): Remove m4/st_mtim.m4; this
46668         is now done in a different way, by the stat-time module.
46669         * modules/utimecmp (Depends-on): Add stat-time.
46670
46671 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46672
46673         * m4/st_mtim.m4: Remove.  Superseded by...
46674         * m4/stat-time.m4: New file.
46675         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
46676         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
46677
46678 2005-09-15  Derek Price  <derek@ximbiot.com>
46679
46680         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
46681
46682 2005-09-15  Derek Price  <derek@ximbiot.com>
46683
46684         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
46685         * lib/regex_internal.c: Ditto, using this...
46686         (__GNUC_PREREQ): ...new macro.
46687         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
46688         using...
46689         (__GNUC_PREREQ): ...this new macro.
46690
46691         * lib/strstr.h: Include string.h. Define strstr as a macro here.
46692
46693 2005-09-15  Derek Price  <derek@ximbiot.com>
46694             Paul Eggert  <eggert@cs.ucla.edu>
46695
46696         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
46697         changes, consolidating in...
46698         * lib/regex_internal.h: ...this file.
46699
46700 2005-09-13  Jim Meyering  <jim@meyering.net>
46701
46702         * lib/canon-host.c: Filter through gnu indent and reword comments
46703         slightly.
46704         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
46705
46706 2005-09-13  Derek Price  <derek@ximbiot.com>
46707
46708         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
46709         failure.
46710         Reported by Jim Meyering  <jim@meyering.net>.
46711
46712 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
46713
46714         * lib/base64.c: Typo.
46715         (base64_encode): Put b64str in initialized data section.
46716
46717 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
46718
46719         Merge glibc and coreutils changes into gnulib, plus a few
46720         extra fixes.
46721         * lib/md5.c: Use #error rather than a string.
46722         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
46723         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
46724         (__attribute__): Define to empty for non recent-GCC.
46725         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
46726         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
46727         Renamed from their non-__ counterparts, with new macros replacing
46728         them if not _LIBC.  Add __THROW attribute.
46729         (rol): Remove.
46730         (struct md5_ctx): Align buffer if using GCC.
46731         * lib/sha1.h (struct sha1_ctx): Likewise.
46732         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
46733         The old name was backwards.
46734         (NOTSWAP): Remove; not used.
46735         (rol): New macro, moved here from md5.h.
46736         (sha1_process_block): Remove a FIXME that doesn't make sense.
46737
46738 2005-09-12  Derek Price  <derek@ximbiot.com>
46739
46740         Return usable errors from canon-host.
46741         * lib/canon-host.h: New file.
46742         * lib/canon-host.c (canon_host): Wrap...
46743         (canon_host_r): ...this new function, which now relies exclusively on
46744         getaddrinfo.
46745         (ch_strerror): New function.
46746         (last_cherror): New global.
46747         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
46748         interface.
46749         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
46750         void *.
46751         (freeaddrinfo): Free ai->ai_canonname when set.
46752
46753 2005-09-12  Derek Price  <derek@ximbiot.com>
46754
46755         Make canon-host require getaddrinfo.
46756         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
46757         AC_LIBSOURCE canon-host.h.  Call...
46758         (gl_PREREQ_CANON_HOST): ...this new function, which requires
46759         gl_GETADDRINFO.
46760         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
46761
46762 2005-09-12  Derek Price  <derek@ximbiot.com>
46763
46764         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
46765         LGPL.
46766         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
46767
46768 2005-09-12  Derek Price  <derek@ximbiot.com>
46769
46770         * lib/gai_strerror.c: Include config.h when available.  Include
46771         getaddrinfo.h before other headers to test interface.
46772         Reported by Larry Jones <lawrence.jones@ugs.com>.
46773
46774 2005-09-12  Derek Price  <derek@ximbiot.com>
46775             Paul Eggert  <eggert@cs.ucla.edu>
46776
46777         * modules/glob (Files): Add glob-libc.h.
46778
46779 2005-09-12  Derek Price  <derek@ximbiot.com>
46780             Paul Eggert  <eggert@cs.ucla.edu>
46781
46782         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
46783         glob_.h, glob-libc.h.
46784         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
46785
46786 2005-09-12  Derek Price  <derek@ximbiot.com>
46787             Paul Eggert  <eggert@cs.ucla.edu>
46788
46789         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
46790         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
46791         protecting things that should be done only in gnulib contexts.
46792         * lib/glob_.h: New file, containing only the glob things needed for
46793         gnulib.
46794         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
46795         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
46796         (glob, globfree, glob_pattern_p): Now defined simply in terms of
46797         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
46798         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
46799         and to respect the namespace rules better.
46800
46801 2005-09-08  Simon Josefsson  <jas@extundo.com>
46802
46803         * modules/socklen: New file.
46804
46805 2005-09-08  Simon Josefsson  <jas@extundo.com>
46806
46807         * m4/socklen.m4: New file.
46808
46809 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46810
46811         * modules/utimens (Files): Add m4/utimbuf.m4, since
46812         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
46813         Reported by Sergey Poznyakoff.
46814
46815 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46816
46817         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
46818         definitions, since that's the preferred style in glibc.
46819         Fix a minor spacing issue, and update copyright notice to match
46820         glibc's.
46821
46822 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46823
46824         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
46825
46826 2005-09-06  Simon Josefsson  <jas@extundo.com>
46827
46828         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
46829         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
46830
46831 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46832
46833         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
46834         warning.
46835
46836 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46837
46838         * config/srclist.txt: Add glibc bug 1302.
46839
46840 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
46841
46842         Change bitset word type from unsigned int to unsigned long int,
46843         as this has better performance on typical 64-bit hosts.
46844         Port bitset code to hosts with unusual word sizes.
46845         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
46846         (build_collating_symbol):
46847         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
46848         argument is a bitset.  This is merely a style issue, but it makes
46849         it clearer that an entire array is expected.
46850         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
46851         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
46852         Port to the case where bitset_word is not the same as unsigned int.
46853         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
46854         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
46855         Likewise.
46856         * lib/regexec.c (check_dst_limits_calc_pos_1,
46857         check_subexp_matching_top):
46858         (build_trtable, group_nodes_into_DFAstates):
46859         Likewise.
46860         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
46861         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
46862         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
46863         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
46864         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
46865         * lib/regcomp.c (optimize_subexps, lower_subexp):
46866         Work even if bitset_word has holes in its bitwise representation.
46867         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
46868         * lib/regexec.c (check_dst_limits_calc_pos_1,
46869         check_subexp_matching_top):
46870         Likewise.
46871         * lib/regex_internal.c (re_string_reconstruct):
46872         Don't assume UCHAR_MAX == 255.
46873         * lib/regex_internal.h (bitset_set_all): Likewise.
46874         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
46875         All uses changed.
46876         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
46877         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
46878         All uses changed.
46879         (BITSET_WORD_MAX): New macro.
46880         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
46881         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
46882         (bitset_empty, bitset_copy):
46883         Prefer sizeof (bitset) to multiplying it out ourselves.
46884         (bitset_not_merge): Remove; unused.
46885         (bitset_contain): Return bool, not unsigned int with one bit on.
46886         All callers changed.
46887         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
46888         alignment than re_node_set; do this by defining a new internal
46889         type struct dests_alloc and using it to allocate memory.
46890
46891 2005-09-05  Bruno Haible  <bruno@clisp.org>
46892
46893         * gnulib-tool (func_import): Fix comparison in handling of symbolic
46894         links.
46895
46896 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
46897
46898         * modules/size_max (Makefile.am): Add size_max.h
46899
46900 2005-09-04  Derek Price  <derek@ximbiot.com>
46901
46902         * gnulib-tool (func_import): Fix reversed $symbolic logic.
46903
46904 2005-09-03  Simon Josefsson  <jas@extundo.com>
46905
46906         * gnulib-tool: Fix typo.
46907
46908 2005-09-03  Simon Josefsson  <jas@extundo.com>
46909
46910         * config/srclist.txt: Add glibc bug 1293.
46911
46912 2005-09-03  Derek Price  <derek@ximbiot.com>
46913
46914         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
46915         From Larry Jones <lawrence.jones@ugs.com>.
46916
46917 2005-09-02  Simon Josefsson  <jas@extundo.com>
46918
46919         * modules/socklen: New file.
46920
46921 2005-09-02  Simon Josefsson  <jas@extundo.com>
46922
46923         * modules/havelib: New module.
46924
46925         * modules/gettext, modules/iconv, modules/lock, modules/readline:
46926         Use havelib.
46927
46928 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
46929
46930         Check for arithmetic overflow when calculating sizes, to prevent
46931         some buffer-overflow issues.  These patches are conservative, in the
46932         sense that when I couldn't determine whether an overflow was possible,
46933         I inserted a run-time check.
46934         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
46935         macros.
46936         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
46937         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
46938         (re_xnrealloc, re_x2nrealloc): New inline functions.
46939         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
46940         parse_bracket_exp):
46941         (build_equiv_class, build_charclass): Check for arithmetic overflow
46942         in size expression calculations.
46943         * lib/regex_internal.c (re_string_realloc_buffers):
46944         (build_wcs_upper_buffer, re_node_set_add_intersect):
46945         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
46946         (re_dfa_add_node, register_state): Likewise.
46947         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
46948         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
46949         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
46950         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
46951
46952 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
46953
46954         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
46955         m4/ulonglong.m4.  Problem reported by Martin Lambers.
46956
46957 2005-09-02  Bruno Haible  <bruno@clisp.org>
46958
46959         Support for lib vs. lib64 distinction on biarch platforms.
46960         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
46961         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
46962         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
46963
46964 2005-09-02  Bruno Haible  <bruno@clisp.org>
46965
46966         * gnulib-tool (import): In the other first-use case, provide defaults
46967         as well.
46968
46969 2005-09-02  Bruno Haible  <bruno@clisp.org>
46970
46971         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
46972         patches not yet found in the latest gettext release.
46973
46974 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46975
46976         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
46977         to avoid a collision with bits/local_lim.h in glibc.
46978         All uses changed.  Problem reported by Dmitry V. Levin in
46979         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
46980
46981         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
46982         bugs in int versus size_t comparisons.
46983         (re_string_context_at): Fix bug where the code assumed that
46984         Idx is signed.
46985
46986         Use bool where appropriate.
46987         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
46988         All callers changed.
46989         (calc_eclosure_iter): Likewise, for ROOT arg.
46990         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
46991         (build_charclass_op): Likewise, for NON_MATCH arg.
46992         * lib/regex_internal.c (re_string_allocate, re_string_construct):
46993         (re_string_construct_common): Likewise, for ICASE arg.
46994         * lib/regexec.c (re_search_2_stub, re_search_stub):
46995         Likewise, for RET_LEN arg.
46996         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
46997         (set_regs): Likewise, for FL_BACKTRACK arg.
46998         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
46999         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
47000         (calc_eclosure_iter, parse_bracket_exp):
47001         Use bool for internal variables that are booleans.
47002         * lib/regexec.c (re_search_internal, check_matching,
47003         proceed_next_node):
47004         (set_regs, build_sifted_states, sift_states_bkref):
47005         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
47006         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
47007         (find_collation_sequence_value):
47008         Likewise.
47009         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
47010         (re_node_set_compare):
47011         Return bool, not int. All callers changed.
47012         * lib/regexec.c (check_halt_node_context, check_dst_limits):
47013         (build_trtable, check_node_accept): Likewise.
47014         * lib/regex_internal.h: Include stdbool.h.
47015
47016         Fix bugs uncovered when converting to bool.
47017         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
47018         failure instead of charging ahead blindly.
47019         * lib/regex_internal.c (register_state): Likewise.
47020         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
47021         for freeing internal storage.
47022         (group_nodes_into_DFA_states): Use unsigned int, not int, for
47023         bitset pieces used as boolean, to avoid undefined behavior
47024         on hosts that do int overflow checking.
47025
47026 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47027
47028         * config/srclist.txt: Add glibc bugs 1285-1287.
47029
47030 2005-09-01  Jim Meyering  <jim@meyering.net>
47031
47032         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
47033         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
47034         Require gl_STAT_MACROS, too.
47035
47036 2005-09-01  Bruno Haible  <bruno@clisp.org>
47037
47038         * gnulib-tool (import): In the first-use case, provide defaults.
47039
47040 2005-09-01  Bruno Haible  <bruno@clisp.org>
47041
47042         * gnulib-tool (func_import): Remove the .tmp files.
47043
47044 2005-09-01  Bruno Haible  <bruno@clisp.org>
47045
47046         * gnulib-tool (func_import): Fix handling of symbolic links.
47047
47048 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47049
47050         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
47051         old glibc regex code mishandles strings longer than 2**31 bytes.
47052         This patch fixes this when the regex code is used in gnulib
47053         (i.e., outside glibc).
47054
47055         This patch should not affect the use of the regex code inside
47056         glibc.  No doubt this problem also needs to be handled for glibc
47057         as well, but the result will be an incompatible change to the
47058         glibc ABI, and the old ABI will have to be supported too.  That
47059         can be the the subject for another patch.
47060
47061         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
47062         governing whether the rest of this patch is active.  By default,
47063         the macro is disabled and the patch has no effect.
47064         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
47065         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
47066         (struct re_pattern_buffer, re_search, re_search_2, re_match):
47067         (re_match_2, re_set_registers): Use the new types.
47068         * lib/regex_internal.h (Idx, re_hashval_t): New types.
47069         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
47070         New macros.
47071         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
47072         (re_string_context_at, bin_tree_t, re_dfastate_t):
47073         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
47074         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
47075         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
47076         (re_string_char_size_at, re_string_wchar_at):
47077         (re_string_elem_size_at):
47078         Use the new types and macros to port to 64-bit hosts.
47079         Use unsigned types for internal values, so that the code
47080         mostly works even for arrays larger than SSIZE_MAX.
47081         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
47082         (search_duplicated_node, calc_eclosure_iter, fetch_number):
47083         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
47084         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
47085         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
47086         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
47087         (calc_inveclosure, parse_dup_op, build_range_exp):
47088         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
47089         (fetch_number, create_token_tree, mark_opt_subexp):
47090         Likewise.
47091         * lib/regex_internal.c (re_string_construct_common,
47092         create_ci_newstate):
47093         (create_cd_newstate, re_string_allocate, re_string_construct):
47094         (re_string_realloc_buffers, build_wcs_upper_buffer):
47095         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
47096         (re_string_reconstruct, re_string_peek_byte_case):
47097         (re_string_fetch_byte_case, re_string_context_at):
47098         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
47099         (re_node_set_init_copy, re_node_set_add_intersect):
47100         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
47101         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
47102         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
47103         (re_acquire_state, re_acquire_state_context, register_state):
47104         Likewise.
47105         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
47106         search_cur_bkref_entry):
47107         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
47108         (re_search_internal, re_search_2_stub, re_search_stub)
47109         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
47110         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
47111         (update_cur_sifted_state, check_dst_limits):
47112         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
47113         (check_subexp_limits, sift_states_bkref, merge_state_array):
47114         (check_subexp_matching_top, get_subexp, get_subexp_sub):
47115         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
47116         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
47117         (expand_bkref_cache, check_node_accept_bytes):
47118         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
47119         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
47120         (acquire_init_state_context, check_halt_node_context):
47121         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
47122         (sift_states_backward, clean_state_log_if_needed):
47123         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
47124         (find_recover_state, transit_state_sb, transit_state_mb):
47125         (transit_state_bkref, build_trtable, match_ctx_clean):
47126         Likewise.
47127         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
47128         to work around an assumption that REG_MISSING is negative.
47129
47130         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
47131         (seek_collating_symbol_entry) [defined _LIBC]:
47132         (lookup_collation_sequence_value) [defined _LIBC]:
47133         (build_range_exp, build_collating_symbol) [defined _LIBC]:
47134         Use prototypes rather than old-style function definitions.
47135         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
47136         (transit_state_sb) [0]:
47137         (find_collation_sequence_value) [defined _LIBC]: Likewise.
47138
47139         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
47140         rm_eo.
47141
47142         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
47143         (optimize_subexps, lower_subexp):
47144         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
47145         since the signed shift might overflow.  Use 1u<<31 instead.
47146         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
47147         Likewise.
47148         * lib/regexec.c (check_dst_limits_calc_pos_1,
47149         check_subexp_matching_top): Likewise.
47150
47151         * lib/regcomp.c (optimize_subexps, lower_subexp):
47152         Use CHAR_BIT rather than 8, for clarity.
47153         * lib/regexec.c (check_dst_limits_calc_pos_1):
47154         (check_subexp_matching_top): Likewise.
47155         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
47156         have to worry about portability issues when shifting it left.
47157         Remove no-longer-needed test for table_size > 0.
47158         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
47159         in a word, as the resulting behavior is undefined.
47160         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
47161         in one case, a <= should have been an <, and in another case the
47162         whole test was missing.
47163         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
47164         the standard name CHAR_BIT.
47165         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
47166         this is not true on one's complement and signed-magnitude hosts.
47167
47168         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
47169         next_last_offset.
47170         (struct re_dfa_t): Remove unused member states_alloc.
47171         * lib/regcomp.c (init_dfa): Don't initialize unused members.
47172
47173 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47174
47175         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
47176         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
47177         and large-file glibc and in 32-bit large-file Solaris.
47178
47179 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47180
47181         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
47182         lengths fit in regoff_t; this isn't true if regoff_t is the same
47183         width as size_t.
47184         * lib/regex.c (re_search_internal): 5th arg is LAST_START
47185         (= START + RANGE) instead of RANGE.  This avoids overflow
47186         problems when regoff_t is the same width as size_t.
47187         All callers changed.
47188         (re_search_2_stub): Check for overflow when adding the
47189         sizes of the two strings.
47190         (re_search_stub): Check for overflow when adding START
47191         to RANGE; if it occurs, substitute the extreme value.
47192
47193 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47194
47195         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
47196
47197 2005-08-31  Jim Meyering  <jim@meyering.net>
47198
47199         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
47200         a pointer-to-const.
47201         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
47202         (register_state): Likewise.
47203         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
47204         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
47205         (group_nodes_into_DFAstates): Likewise.
47206
47207 2005-08-31  Jim Meyering  <jim@meyering.net>
47208
47209         * check-module: Add a FIXME comment.
47210
47211 2005-08-31  Eric Blake  <ebb9@byu.net>
47212
47213         * modules/unistd-safer (Files): Add unistd--.h.
47214         * modules/stdio-safer (Files): Add stdio--.h.
47215
47216 2005-08-31  Derek Price  <derek@ximbiot.com>
47217
47218         * lib/getdelim.c (getdelim): Return EOF on EOF.
47219         Reported by Larry Jones <lawrence.jones@ugs.com>.
47220
47221 2005-08-31  Bruno Haible  <bruno@clisp.org>
47222
47223         Avoid unnecessary diffs in the generated lib/Makefile.am.
47224         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
47225         the generated files.
47226         (func_import): Don't set cmd.
47227
47228 2005-08-31  Bruno Haible  <bruno@clisp.org>
47229
47230         * lib/strstr.c: Include <stddef.h>, for NULL.
47231         * lib/strcasestr.c: Likewise.
47232         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47233
47234 2005-08-31  Bruno Haible  <bruno@clisp.org>
47235
47236         * gnulib-tool: New option --macro-prefix.
47237         (func_import): Use macro_prefix.
47238         (import): Handle option --macro-prefix.
47239
47240 2005-08-31  Bruno Haible  <bruno@clisp.org>
47241
47242         * gnulib-tool (import): Rename most ac_* variables to cached_*.
47243         Also use new variables cached_lgpl, cached_libtool.
47244
47245 2005-08-31  Bruno Haible  <bruno@clisp.org>
47246
47247         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
47248         always instantiating them.
47249
47250 2005-08-31  Bruno Haible  <bruno@clisp.org>
47251
47252         * gnulib-tool (func_import): Read the previous cached settings
47253         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
47254         earlier added by gnulib but are now dropped. Warn when a gnulib file
47255         overwrites a non-gnulib file.
47256
47257 2005-08-31  Bruno Haible  <bruno@clisp.org>
47258
47259         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
47260         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
47261         projects that don't keep autogenerated files in CVS. Put into
47262         actioncmd only the specified modules, not the transitive closure.
47263
47264 2005-08-31  Bruno Haible  <bruno@clisp.org>
47265
47266         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
47267         Create directories that shall be filled.
47268         (import): Don't look for gl_* macros in configure.ac. Recurse across
47269         all directories containing a gnulib-cache.m4 files, if meaningful.
47270
47271 2005-08-31  Bruno Haible  <bruno@clisp.org>
47272
47273         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
47274         (import): Set seen_libtool when we see gl_LIBTOOL.
47275
47276 2005-08-31  Bruno Haible  <bruno@clisp.org>
47277
47278         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
47279         declaration macro definitions from generated gnulib.m4.
47280
47281 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
47282
47283         * lib/iconvme.h: Add prototype for iconv_alloc.
47284
47285 2005-08-29  Simon Josefsson  <jas@extundo.com>
47286
47287         * lib/iconvme.c: Fix errno.
47288
47289 2005-08-29  Bruno Haible  <bruno@clisp.org>
47290
47291         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
47292         that it works when the directory contains spaces.
47293
47294 2005-08-29  Bruno Haible  <bruno@clisp.org>
47295
47296         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
47297
47298 2005-08-29  Bruno Haible  <bruno@clisp.org>
47299
47300         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
47301         Emit more advice.
47302
47303 2005-08-29  Bruno Haible  <bruno@clisp.org>
47304         and Stepan Kasal  <kasal@ucw.cz>
47305
47306         * check-module: If more parameters are given, check each of them
47307         separately; add more exceptions, as noted by Jim Meyering.
47308         (check_module): New procedure.
47309         (%exempt_header): Now contains all exceptions.
47310
47311 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
47312
47313         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
47314
47315 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
47316
47317         * lib/iconvme.c: Split iconv_string into iconv_alloc.
47318
47319 2005-08-28  Bruno Haible  <bruno@clisp.org>
47320
47321         * m4/gnulib-tool.m4: New file.
47322
47323 2005-08-27  Jim Meyering  <jim@meyering.net>
47324
47325         * modules/unistd-safer (Files): Add pipe-safer.c.
47326         * modules/fcntl-safer (Files): Add creat-safer.c.
47327
47328 2005-08-27  Jim Meyering  <jim@meyering.net>
47329
47330         * m4/stdlib-safer.m4: New file.  From coreutils.
47331         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
47332         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
47333         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
47334         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
47335         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
47336
47337 2005-08-27  Jim Meyering  <jim@meyering.net>
47338
47339         * lib/fopen-safer.c: Merge minor changes from coreutils.
47340         * lib/dup-safer.c: Likewise.
47341         * lib/fd-safer.c: Likewise.
47342
47343         Merge from coreutils.
47344         * lib/stdio--.h: New file.
47345         * lib/stdlib--.h: New file.
47346         * lib/mkstemp-safer.c: New file.
47347
47348         GNU tar needs these.
47349         * lib/pipe-safer.c: New file.
47350         * lib/creat-safer.c: New file.
47351         * lib/fcntl--.h (creat): Define to creat_safer.
47352         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
47353         * lib/unistd--.h (pipe): Define to pipe_safer.
47354         * lib/unistd-safer.h: Declare pipe_safer.
47355
47356 2005-08-26  Simon Josefsson  <jas@extundo.com>
47357
47358         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
47359         Haible <bruno@clisp.org>.
47360
47361 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
47362
47363         * lib/regex_internal.h: Remove all references to
47364         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
47365         or better.
47366         (bitset_not, bitset_merge, bitset_not_merge):
47367         (bitset_mask, re_string_allocate, re_string_construct):
47368         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
47369         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
47370         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
47371         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
47372         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
47373         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
47374         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
47375         (re_acquire_state_context):
47376         Remove unnecessary forward decls.
47377         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
47378         Put __attribute at function definition,
47379         now that the function decl has been removed.
47380         * lib/regex_internal.c (re_string_peek_byte_case):
47381         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
47382         Likewise.
47383
47384 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
47385
47386         * m4/regex.m4: Add AC_PREREQ(2.50).
47387         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
47388
47389 2005-08-25  Simon Josefsson  <jas@extundo.com>
47390
47391         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
47392         __fsetlocking.
47393
47394 2005-08-25  Simon Josefsson  <jas@extundo.com>
47395
47396         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
47397         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
47398         GLIBC specific code.
47399
47400 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47401
47402         Make regex safe for g++.  This fixes one real bug (an "err"
47403         that should have been "*err").  g++ problem reported by
47404         Sam Steingold.
47405         * lib/regex_internal.h (re_calloc): New macro, consistent with
47406         re_malloc etc.  All callers of calloc changed to use re_calloc.
47407         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
47408         not int.  All callers changed.
47409         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
47410         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
47411         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
47412         (find_recover_state): Change "err" to "*err"; this fixes what
47413         appears to be a real bug.
47414         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
47415         versus int.
47416
47417 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47418
47419         * modules/regex (Depends-on): Add malloc, since the code
47420         assumes that !malloc(0) means failure.
47421
47422 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47423
47424         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
47425
47426         alloca modernization/simplification for regex.
47427         * lib/regex.c: Remove portability cruft for alloca.  This no longer
47428         needs to be at the start of the file, and can be moved into
47429         regex_internal.h and simplified.
47430         * lib/regex_internal.h: Include <alloca.h>.
47431         (__libc_use_alloca) [!defined _LIBC]: New macro.
47432         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
47433         now works outside glibc.
47434
47435 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47436
47437         * config/srclist.txt: Add glibc bugs 1241, 1245.
47438
47439 2005-08-25  Jim Meyering  <jim@meyering.net>
47440
47441         * lib/open-safer.c: Include <config.h>.
47442         Otherwise, we'd lose LARGEFILE support in any file using
47443         e.g. "fcntl--.h"
47444
47445 2005-08-25  Bruno Haible  <bruno@clisp.org>
47446
47447         * m4/minmax.m4: Require autoconf 2.52.
47448         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
47449         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
47450         alternatives of translit over the alphabet.
47451         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
47452
47453 2005-08-24  Simon Josefsson  <jas@extundo.com>
47454
47455         * tests/test-getpass.c: New file.
47456
47457 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47458
47459         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
47460         for GNU regex features.
47461
47462 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47463
47464         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
47465         * lib/regex.h (regerror): Likewise.
47466
47467         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
47468         requires this.  (The code never needed it.)
47469
47470         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
47471         All uses of recently-renamed identifiers changed to use the new,
47472         POSIX-compliant names.  The code will build and run just fine
47473         without these changes, but it's better to eat our own dog food
47474         and use the standard-conforming names.
47475
47476         * lib/regex.h: Fix a multitude of POSIX name space violations.
47477         These changes have an effect only for programs that define
47478         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
47479         do not change anything for programs compiled in the normal way.
47480         Also, there is no effect on the ABI.
47481
47482         (_REGEX_SOURCE): New macro.
47483         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
47484         defined and _GNU_SOURCE is not; this fixes a name space violation.
47485
47486         Rename the following macros to obey POSIX requirements.
47487         The old names are still visible as macros if _REGEX_SOURCE is defined.
47488         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
47489         RE_BACKSLASH_ESCAPE_IN_LISTS.
47490         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
47491         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
47492         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
47493         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
47494         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
47495         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
47496         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
47497         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
47498         (REG_INTERVALS): renamed from RE_INTERVALS.
47499         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
47500         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
47501         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
47502         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
47503         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
47504         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
47505         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
47506         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
47507         RE_UNMATCHED_RIGHT_PAREN_ORD.
47508         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
47509         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
47510         (REG_DEBUG): renamed from RE_DEBUG.
47511         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
47512         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
47513         unusual, since we can't clash with the POSIX REG_ICASE.
47514         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
47515         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
47516         (REG_NO_SUB): renamed from RE_NO_SUB.
47517         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
47518         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
47519         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
47520         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
47521         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
47522         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
47523         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
47524         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
47525         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
47526         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
47527         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
47528         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
47529         RE_SYNTAX_POSIX_MINIMAL_BASIC.
47530         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
47531         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
47532         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
47533         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
47534         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
47535         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
47536         (REG_FIXED): Renamed from REGS_FIXED.
47537         (REG_NREGS): Renamed from RE_NREGS.
47538
47539         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
47540         of other REG_* macros, since POSIX says the user is allowed to
47541         #undef these macros selectively.
47542
47543         (reg_errcode_t): Update comment stating what other tables need
47544         to be consistent.
47545
47546         Rename the following enum values to obey POSIX requirements.
47547         The old names are still visible as macros.
47548         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
47549         is not defined, since GNU is supposed to be a superset of POSIX as
47550         much as possible, and since we want reg_errcode_t to be a signed
47551         type for implementation consistency.
47552         (_REG_NOERROR): Renamed from REG_NOERROR.
47553         (_REG_NOMATCH): Renamed from REG_NOMATCH.
47554         (_REG_BADPAT): Renamed from REG_BADPAT.
47555         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
47556         (_REG_ECTYPE): Renamed from REG_ECTYPE.
47557         (_REG_EESCAPE): Renamed from REG_EESCAPE.
47558         (_REG_ESUBREG): Renamed from REG_ESUBREG.
47559         (_REG_EBRACK): Renamed from REG_EBRACK.
47560         (_REG_EPAREN): Renamed from REG_EPAREN.
47561         (_REG_EBRACE): Renamed from REG_EBRACE.
47562         (_REG_BADBR): Renamed from REG_BADBR.
47563         (_REG_ERANGE): Renamed from REG_ERANGE.
47564         (_REG_ESPACE): Renamed from REG_ESPACE.
47565         (_REG_BADRPT): Renamed from REG_BADRPT.
47566         (_REG_EEND): Renamed from REG_EEND.
47567         (_REG_ESIZE): Renamed from REG_ESIZE.
47568         (_REG_ERPAREN): Renamed from REG_ERPAREN.
47569         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
47570         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
47571         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
47572         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
47573
47574         (_REG_RE_NAME, _REG_RM_NAME): New macros.
47575         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
47576         changed.  But support the old name if the new one is not defined
47577         and if _REGEX_SOURCE.
47578
47579         Change the following member names in struct re_pattern_buffer.
47580         The old names are still supported if !_REGEX_SOURCE.
47581         The new names are always supported, regardless of _REGEX_SOURCE.
47582         (re_buffer): Renamed from buffer.
47583         (re_allocated): Renamed from allocated.
47584         (re_used): Renamed from used.
47585         (re_syntax): Renamed from syntax.
47586         (re_fastmap): Renamed from fastmap.
47587         (re_translate): Renamed from translate.
47588         (re_can_be_null): Renamed from can_be_null.
47589         (re_regs_allocated): Renamed from regs_allocated.
47590         (re_fastmap_accurate): Renamed from fastmap_accurate.
47591         (re_no_sub): Renamed from no_sub.
47592         (re_not_bol): Renamed from not_bol.
47593         (re_not_eol): Renamed from not_eol.
47594         (re_newline_anchor): Renamed from newline_anchor.
47595
47596         Change the following member names in struct re_registers.
47597         The old names are still supported if !_REGEX_SOURCE.
47598         The new names are always supported, regardless of _REGEX_SOURCE.
47599         (rm_num_regs): Renamed from num_regs.
47600         (rm_start): Renamed from start.
47601         (rm_end): Renamed from end.
47602
47603         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
47604         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
47605         Prepend __ to parameter names.
47606
47607         Undo yesterday's changes.
47608
47609 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47610
47611         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
47612         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
47613         lib/regex.c.
47614
47615 2005-08-24  Jim Meyering  <jim@meyering.net>
47616
47617         Sync from coreutils.
47618         * m4/fcntl-safer.m4: New file.
47619
47620         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
47621         and object files for this module.
47622
47623 2005-08-24  Jim Meyering  <jim@meyering.net>
47624
47625         Sync from coreutils.
47626         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
47627
47628 2005-08-24  Jim Meyering  <jim@meyering.net>
47629
47630         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
47631         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
47632
47633 2005-08-24  Jim Meyering  <jim@meyering.net>
47634
47635         * modules/fcntl-safer: New module.
47636         * modules/fts (Depends-on): Add fcntl-safer.
47637         * MODULES.html.sh (File descriptor based Input/Output):
47638         Add fcntl-safer.
47639
47640 2005-08-24  Bruno Haible  <bruno@clisp.org>
47641
47642         Support for unit test modules.
47643         * modules/README: Mention tests modules.
47644         * modules/TEMPLATE-TESTS: New file.
47645         * gnulib-tool: New options --extract-tests-module, --with-tests and
47646         --tests-base (unused for the moment).
47647         (testsbase, inctests): New variables.
47648         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
47649         (func_verify_module): Exclude TEMPLATE-TESTS.
47650         (func_verify_nontests_module, func_verify_tests_module): New functions.
47651         (func_get_dependencies): Add implicit dependency for tests modules.
47652         (func_get_tests_module): New function.
47653         (func_modules_transitive_closure): When --with-tests was specified,
47654         include the unit tests as well, unless explicitly avoided.
47655         (func_emit_lib_Makefile_am): Ignore the tests modules here.
47656         (func_emit_tests_Makefile_am): New function.
47657         (func_create_testdir): When --with-tests was specified, emit a
47658         tests/ directory.
47659         * MODULES.html.sh (Future developments): Update.
47660
47661 2005-08-24  Bruno Haible  <bruno@clisp.org>
47662
47663         * modules/tls-tests: New file.
47664         * tests/test-tls.c: New file, from GNU gettext.
47665
47666 2005-08-24  Bruno Haible  <bruno@clisp.org>
47667
47668         * modules/lock-tests: New file.
47669         * tests/test-lock.c: New file, from GNU gettext.
47670
47671 2005-08-24  Bruno Haible  <bruno@clisp.org>
47672
47673         * lib/lock.h: Add multiple inclusion guard.
47674         * lib/tls.h: Add multiple inclusion guard.
47675
47676 2005-08-24  Bruno Haible  <bruno@clisp.org>
47677
47678         * gnulib-tool: Add support for the --aux-dir option to
47679         --create-testdir, --create-megatestdir, --test, --megatest.
47680         (func_create_testdir, func_create_megatestdir): Optionally emit a
47681         AC_CONFIG_AUX_DIR directive.
47682         (create-testdir, create-megatestdir, test, megatest): Provide a
47683         default value for $auxdir.
47684
47685 2005-08-24  Bruno Haible  <bruno@clisp.org>
47686
47687         * gnulib-tool (import): Use compound statement instead of subshell
47688         where possible.
47689
47690 2005-08-24  Bruno Haible  <bruno@clisp.org>
47691
47692         * gnulib-tool (import): Change --aux-dir default to "build-aux".
47693
47694 2005-08-24  Bruno Haible  <bruno@clisp.org>
47695
47696         * gnulib-tool (func_version): Update.
47697
47698 2005-08-24  Bruno Haible  <bruno@clisp.org>
47699
47700         * gnulib-tool (func_import, func_create_testdir,
47701         func_create_megatestdir): Quote all autoconf macro arguments.
47702
47703 2005-08-24  Bruno Haible  <bruno@clisp.org>
47704
47705         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
47706         option --force, because --force causes the aclocal.m4 of each
47707         subdirectory to be newer than the corresponding config.h.in.
47708
47709 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47710
47711         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
47712         All contents moved to gl_REGEX.
47713         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
47714         assume that it does.
47715
47716 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47717
47718         * lib/regex.h (REG_NOSYS)
47719         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
47720         Define, since POSIX requires it as of 2001.
47721         (_REG_ENOSYS)
47722         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
47723         New private symbol, used to keep the enum signed in all cases.
47724         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
47725         Youngman in
47726         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
47727
47728         * lib/regex_internal.c (re_string_skip_chars, register_state):
47729         (calc_state_hash):
47730         Remove forward decls; no longer needed now that we use prototypes.
47731         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
47732         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
47733         (clean_state_log_if_needed): Likewise.
47734
47735 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47736
47737         * config/srclist.txt: Add glibc bugs 1231-1233.
47738
47739 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47740
47741         Fix problems reported by Sam Steingold in
47742         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
47743         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
47744         assumed that reg_errcode_t is a signed type, which is not
47745         necessarily true if _XOPEN_SOURCE is not defined.
47746         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
47747         since some compilers warn about it otherwise.
47748
47749 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47750
47751         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
47752         (init_word_char, create_initial_state, duplicate_node_closure):
47753         (fetch_token, peek_token_bracket, build_range_exp):
47754         (build_collating_symbol): Remove forward decls; no longer needed
47755         now that we use prototypes.
47756
47757         * lib/regcomp.c:
47758         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
47759         (re_compile_fastmap_iter, regcomp, regerror, regfree):
47760         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
47761         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
47762         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
47763         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
47764         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
47765         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
47766         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
47767         (build_range_exp, build_collating_symbol, parse_bracket_exp):
47768         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
47769         (build_charclass, build_charclass_op, fetch_number, create_tree):
47770         (create_token_tree, mark_opt_subexp, duplicate_tree):
47771         Use prototypes rather than old-style definitions.
47772
47773         * lib/regex_internal.c:
47774         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
47775         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
47776         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
47777         (re_string_reconstruct, re_string_peek_byte_case):
47778         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
47779         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
47780         (re_node_set_init_copy, re_node_set_add_intersect):
47781         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
47782         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
47783         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
47784         (re_acquire_state, re_acquire_state_context, register_state):
47785         (create_ci_newstate, create_cd_newstate, free_state):
47786         Likewise.
47787         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
47788         re_search_2):
47789         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
47790         (re_search_internal, prune_impossible_nodes):
47791         (acquire_init_state_context, check_matching, static):
47792         (check_halt_node_context, check_halt_state_context, proceed_next_node):
47793         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
47794         (update_regs, sift_states_backward, build_sifted_states):
47795         (clean_state_log_if_needed, merge_state_array):
47796         (update_cur_sifted_state, add_epsilon_src_nodes):
47797         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
47798         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
47799         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
47800         (find_recover_state, check_subexp_matching_top, transit_state_mb):
47801         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
47802         (check_arrival, check_arrival_add_next_nodes):
47803         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
47804         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
47805         (check_node_accept_bytes, check_node_accept, extend_buffers):
47806         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
47807         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
47808         (sift_ctx_init):
47809         Likewise.
47810
47811         * lib/regex_internal.h:
47812         (re_string_allocate, re_string_construct, re_string_reconstruct):
47813         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
47814         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
47815         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
47816         (re_string_context_at, re_string_peek_byte_case):
47817         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
47818         is defined, since we now use prototypes always.
47819
47820         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
47821         C89 or better.  All uses removed.
47822
47823 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47824
47825         * config/srclist.txt: Add glibc bugs 1220-1227.
47826
47827 2005-08-20  Jim Meyering  <jim@meyering.net>
47828
47829         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
47830         of unused local, dfa.
47831
47832 2005-08-20  Bruno Haible  <bruno@clisp.org>
47833
47834         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
47835
47836 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
47837
47838         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
47839         (re_node_set_insert_last, re_dfa_add_node):
47840         Rename local variables to avoid GCC shadowing warnings.
47841
47842 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
47843
47844         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
47845         [defined lint]: Suppress bogus uninitialized-variable warnings.
47846
47847         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
47848         and let the caller return REG_ESPACE if out of space.  This
47849         removes an uninitialied-variable warning with GCC 4.0.1, and also
47850         avoids taking the address of a local variable.  All callers
47851         changed.
47852
47853 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
47854
47855         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
47856         $LIBCSRC/posix/regexec.c.
47857         Add glibc bug 1217 for regcomp.c.
47858
47859 2005-08-19  Jim Meyering  <jim@meyering.net>
47860
47861         * lib/regexec.c (proceed_next_node): Redo local variables to
47862         avoid GCC shadowing warnings.
47863
47864 2005-08-18  Bruno Haible  <bruno@clisp.org>
47865
47866         * lib/strstr.c (strstr): Fix return value in multibyte case.
47867         * lib/strcasestr.c (strcasestr): Likewise.
47868
47869 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
47870
47871         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
47872
47873 2005-08-17  Jim Meyering  <jim@meyering.net>
47874
47875         Make the %s format (seconds since the epoch) work for a negative
47876         number and when used with a zero-padded field width, e.g. %015s.
47877
47878         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
47879         label so that it precedes the code to set `digits'.  Otherwise,
47880         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
47881         print `00-22'.  Now, it prints `-0022', as it should.
47882
47883 2005-08-17  Bruno Haible  <bruno@clisp.org>
47884
47885         * modules/strstr (Files): Add m4/mbrtowc.m4.
47886         (Depends-on): Add mbuiter.
47887
47888 2005-08-17  Bruno Haible  <bruno@clisp.org>
47889
47890         * modules/strcasestr: New file.
47891         * MODULES.html.sh (String handling, based on ANSI C 89): Add
47892         strcasestr.
47893
47894 2005-08-17  Bruno Haible  <bruno@clisp.org>
47895
47896         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
47897
47898 2005-08-17  Bruno Haible  <bruno@clisp.org>
47899
47900         * modules/mbuiter: New file.
47901         * MODULES.html.sh (Extended multibyte and wide character utilities):
47902         Add mbuiter.
47903
47904 2005-08-17  Bruno Haible  <bruno@clisp.org>
47905
47906         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
47907         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
47908
47909 2005-08-17  Bruno Haible  <bruno@clisp.org>
47910
47911         * m4/strcasestr.m4: New file.
47912
47913 2005-08-17  Bruno Haible  <bruno@clisp.org>
47914
47915         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
47916         * lib/strstr.c: Completely rewritten, with multibyte locale support.
47917
47918 2005-08-17  Bruno Haible  <bruno@clisp.org>
47919
47920         * lib/strcasestr.h: New file.
47921         * lib/strcasestr.c: New file.
47922
47923 2005-08-17  Bruno Haible  <bruno@clisp.org>
47924
47925         * lib/strcasecmp.c: Use mbuiter.h.
47926
47927 2005-08-17  Bruno Haible  <bruno@clisp.org>
47928
47929         * lib/mbuiter.h: New file.
47930
47931 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
47932
47933         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
47934         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
47935         and gl_GETOPT are both invoked via different paths (as happens
47936         with GNU tar CVS because it uses both argp and getopt), the former
47937         wins.
47938
47939 2005-08-16  Bruno Haible  <bruno@clisp.org>
47940
47941         * modules/tls: New file.
47942         * MODULES.html.sh (Multithreading): Add tls.
47943
47944 2005-08-16  Bruno Haible  <bruno@clisp.org>
47945
47946         * modules/strnlen1: New file.
47947         * MODULES.html.sh (String handling): Add strnlen1.
47948
47949 2005-08-16  Bruno Haible  <bruno@clisp.org>
47950
47951         * modules/strcase (Files): Add m4/mbrtowc.m4.
47952         (Depends-on): Add strnlen1, mbchar.
47953
47954 2005-08-16  Bruno Haible  <bruno@clisp.org>
47955
47956         * modules/mbiter: New file.
47957         * MODULES.html.sh (Extended multibyte and wide character utilities):
47958         Add mbiter.
47959
47960 2005-08-16  Bruno Haible  <bruno@clisp.org>
47961
47962         * modules/mbfile: New file.
47963         * MODULES.html.sh (Extended multibyte and wide character utilities):
47964         Add mbfile.
47965
47966 2005-08-16  Bruno Haible  <bruno@clisp.org>
47967
47968         * modules/mbchar: New file.
47969         * MODULES.html.sh (Extended multibyte and wide character utilities):
47970         New section.
47971
47972 2005-08-16  Bruno Haible  <bruno@clisp.org>
47973
47974         * m4/tls.m4: New file, from GNU gettext.
47975
47976 2005-08-16  Bruno Haible  <bruno@clisp.org>
47977
47978         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
47979         always.
47980         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
47981
47982 2005-08-16  Bruno Haible  <bruno@clisp.org>
47983
47984         * m4/mbiter.m4: New file.
47985
47986 2005-08-16  Bruno Haible  <bruno@clisp.org>
47987
47988         * m4/mbfile.m4: New file.
47989
47990 2005-08-16  Bruno Haible  <bruno@clisp.org>
47991
47992         * m4/mbchar.m4: New file.
47993
47994 2005-08-16  Bruno Haible  <bruno@clisp.org>
47995
47996         * lib/tls.h: New file, from GNU gettext.
47997         * lib/tls.c: New file, from GNU gettext.
47998
47999 2005-08-16  Bruno Haible  <bruno@clisp.org>
48000
48001         * lib/strnlen1.h: New file.
48002         * lib/strnlen1.c: New file.
48003
48004 2005-08-16  Bruno Haible  <bruno@clisp.org>
48005
48006         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
48007         (mbi_init): Update.
48008         (mbi_avail, mbi_advance): Let the iteration end before the terminating
48009         NUL byte, not after it.
48010
48011 2005-08-16  Bruno Haible  <bruno@clisp.org>
48012
48013         * lib/strcase.h (strcasecmp): Add note in comments.
48014         * lib/strncasecmp.c: Use code from strcasecmp.c.
48015         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
48016         (strcasecmp): Work correctly in multibyte locales.
48017
48018 2005-08-16  Bruno Haible  <bruno@clisp.org>
48019
48020         * lib/mbiter.h: New file.
48021
48022 2005-08-16  Bruno Haible  <bruno@clisp.org>
48023
48024         * lib/mbfile.h: New file.
48025
48026 2005-08-16  Bruno Haible  <bruno@clisp.org>
48027
48028         * lib/mbchar.h: New file.
48029         * lib/mbchar.c: New file.
48030
48031 2005-08-16  Bruno Haible  <bruno@clisp.org>
48032
48033         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
48034         the valid ones. Makes the comparison operations transitive:
48035         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
48036         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
48037
48038 2005-08-15  Simon Josefsson  <jas@extundo.com>
48039
48040         * modules/ssize_t (License): Change to 'unlimited'.
48041
48042         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
48043
48044 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48045
48046         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
48047         Add comments for each pending glibc patch.
48048
48049 2005-08-15  Bruno Haible  <bruno@clisp.org>
48050
48051         * lib/regex.h (__restrict_arr): Don't define to __restrict if
48052         __cplusplus is defined.
48053
48054 2005-08-14  Jim Meyering  <jim@meyering.net>
48055
48056         Sync from coreutils.
48057
48058         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
48059         Use the hash-table-based cycle-detection code not just when
48060         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
48061         Reported by James Youngman in
48062         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
48063         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
48064         FTS_TIGHT_CYCLE_CHECK.
48065         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
48066         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
48067         once again.
48068         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
48069         * lib/fts.c (fd_safer): Remove decl.
48070         Include fcntl--.h rather than unistd-safer.h
48071         (fts_safe_changedir): Don't call fd_safer; no longer needed
48072         now that we include fcntl--.h.
48073
48074 2005-08-12  Simon Josefsson  <jas@extundo.com>
48075
48076         * modules/getndelim2: Use ssize_t module.
48077         * modules/getnline: Likewise.
48078         * modules/safe-read: Likewise.
48079         * modules/xreadlink: Likewise.
48080
48081         * modules/ssize_t: New file.
48082
48083 2005-08-12  Simon Josefsson  <jas@extundo.com>
48084
48085         * m4/readline.m4: Look for termcap, curses or ncurses if required.
48086
48087 2005-08-12  Simon Josefsson  <jas@extundo.com>
48088
48089         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48090         ssize_t.
48091
48092 2005-08-12  Simon Josefsson  <jas@extundo.com>
48093
48094         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
48095         readline, getdelim and check_version.
48096         (Support for systems lacking ISO C 99: Sizes of integer types):
48097         Add size_max.
48098
48099 2005-08-12  Bruno Haible  <bruno@clisp.org>
48100
48101         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
48102
48103 2005-08-11  Simon Josefsson  <jas@extundo.com>
48104
48105         * modules/readline: New file.
48106
48107         * modules/strnlen (Files): Add strnlen.h.
48108
48109 2005-08-11  Simon Josefsson  <jas@extundo.com>
48110
48111         * m4/readline.m4: New file.
48112
48113 2005-08-11  Simon Josefsson  <jas@extundo.com>
48114
48115         * lib/readline.h, readline.c: New file.
48116
48117 2005-08-11  Simon Josefsson  <jas@extundo.com>
48118
48119         * doc/gnulib.texi (Initial import, Finishing touches): Mention
48120         gl_AVOID.
48121
48122 2005-08-11  Bruno Haible  <bruno@clisp.org>
48123
48124         * lib/strnlen.h (strnlen): Change parameter name to match comment.
48125
48126 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
48127
48128         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
48129
48130 2005-08-10  Simon Josefsson  <jas@extundo.com>
48131
48132         * tests/test-iconvme.c: New file.
48133
48134 2005-08-10  Simon Josefsson  <jas@extundo.com>
48135
48136         * m4/strnlen.m4: New file.
48137
48138         * m4/strndup.m4: Don't check for strnlen declaration, done in
48139         strnlen.m4.
48140
48141 2005-08-10  Simon Josefsson  <jas@extundo.com>
48142
48143         * lib/strndup.c: Use strnlen.h.
48144
48145         * lib/strnlen.h: New file.
48146
48147 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
48148
48149         * README: Typos.
48150
48151 2005-08-02  Simon Josefsson  <jas@extundo.com>
48152
48153         * modules/readline: New file.
48154
48155 2005-08-02  Simon Josefsson  <jas@extundo.com>
48156
48157         * modules/getdelim: New file.
48158
48159         * modules/getline: Rewrite, don't use getndelim2.
48160
48161 2005-08-02  Simon Josefsson  <jas@extundo.com>
48162
48163         * m4/getline.m4: Separate out getdelim stuff into separate module.
48164
48165         * m4/getdelim.m4: New file.
48166
48167 2005-08-02  Simon Josefsson  <jas@extundo.com>
48168
48169         * lib/getline.h, getline.c: Rewrite.
48170
48171         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
48172
48173 2005-07-31  Bruno Haible  <bruno@clisp.org>
48174
48175         * lib/lock.h (gl_lock_initializer): New macro.
48176         (gl_lock_define_initialized): Use it.
48177         (gl_rwlock_initializer): New macro.
48178         (gl_rwlock_define_initialized): Use it.
48179         (gl_recursive_lock_initializer): New macro.
48180         (gl_recursive_lock_define_initialized): Use it.
48181
48182 2005-07-30  Karl Berry  <karl@gnu.org>
48183
48184         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
48185         Report from Ben Pfaff, regarding getopt.
48186
48187 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
48188
48189         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
48190         normal way.
48191         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
48192         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
48193         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
48194         (gl_GETOPT): Use the new macros.  Most of the implementation
48195         is moved to the new macros.  This is for programs like Emacs
48196         that don't want all the functionality of gl_GETOPT.
48197
48198 2005-07-26  Bruno Haible  <bruno@clisp.org>
48199
48200         * m4/lock.m4: Update from GNU gettext.
48201
48202 2005-07-26  Bruno Haible  <bruno@clisp.org>
48203
48204         * lib/lock.h: Update from GNU gettext.
48205         * lib/lock.c: Update from GNU gettext.
48206
48207 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
48208
48209         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
48210         obsolescent AC_TRY_RUN.  Include the default includes files, for
48211         'exit'.
48212
48213 2005-07-24  Bruno Haible  <bruno@clisp.org>
48214
48215         * modules/visibility: New file.
48216         * MODULES.html.sh (Misc): Add visibility.
48217
48218 2005-07-24  Bruno Haible  <bruno@clisp.org>
48219
48220         * m4/visibility.m4: New file.
48221
48222 2005-07-24  Bruno Haible  <bruno@clisp.org>
48223
48224         * doc/visibility.texi: New file.
48225
48226 2005-07-22  Bruno Haible  <bruno@clisp.org>
48227
48228         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
48229         $(ALLOCA_H), redundant through BUILT_SOURCES.
48230         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
48231         redundant through BUILT_SOURCES.
48232         * modules/byteswap (Makefile.am): Remove explicit dependency on
48233         $(BYTESWAP_H), redundant through BUILT_SOURCES.
48234         * modules/fnmatch (Makefile.am): Remove explicit dependency on
48235         $(FNMATCH_H), redundant through BUILT_SOURCES.
48236         * modules/getopt (Makefile.am): Remove explicit dependency on
48237         $(GETOPT_H), redundant through BUILT_SOURCES.
48238         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
48239         redundant through BUILT_SOURCES.
48240         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
48241         redundant through BUILT_SOURCES.
48242         * modules/stdbool (Makefile.am): Remove explicit dependency on
48243         $(STDBOOL_H), redundant through BUILT_SOURCES.
48244         * modules/stdint (Makefile.am): Remove explicit dependency on
48245         $(STDINT_H), redundant through BUILT_SOURCES.
48246         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
48247         Remove explicit dependency on $(SYSEXITS_H).
48248         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
48249
48250 2005-07-18  Simon Josefsson  <jas@extundo.com>
48251
48252         * lib/check-version.c (check_version): Accept identical versions too.
48253
48254 2005-07-18  Bruno Haible  <bruno@clisp.org>
48255
48256         * modules/lock: New file.
48257         * MODULES.html.sh (Multithreading): New section.
48258
48259 2005-07-18  Bruno Haible  <bruno@clisp.org>
48260
48261         * m4/lock.m4: New file, from GNU gettext.
48262
48263 2005-07-18  Bruno Haible  <bruno@clisp.org>
48264
48265         * lib/lock.h: New file, from GNU gettext.
48266         * lib/lock.c: New file, from GNU gettext.
48267
48268 2005-07-18  Bruno Haible  <bruno@clisp.org>
48269
48270         * lib/lock.h (gl_once_t): New type.
48271         (gl_once_define, gl_once): New macros.
48272         * lib/lock.c (fresh_once): New variable.
48273         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
48274         functions.
48275
48276 2005-07-16  Simon Josefsson  <jas@extundo.com>
48277
48278         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
48279         workaround, suggested by Bruno.
48280
48281 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
48282
48283         * modules/xalloc (Depends-on): Add xalloc-die.
48284         * modules/xvasprintf (Depends-on): Add xalloc-die.
48285
48286 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
48287
48288         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
48289         with a minor change.
48290
48291 2005-07-15  Bruno Haible  <bruno@clisp.org>
48292
48293         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
48294         When using lib/poll.c, define poll as rpl_poll.
48295
48296 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
48297
48298         * modules/argp (Depends-on): Remove unlocked-io.
48299
48300 2005-07-14  Derek Price  <derek@ximbiot.com>
48301
48302         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
48303         for glob symlink bug.
48304
48305 2005-07-14  Bruno Haible  <bruno@clisp.org>
48306
48307         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
48308         Instead, test for *_unlocked function declarations directly.
48309
48310 2005-07-11  Simon Josefsson  <jas@extundo.com>
48311
48312         * modules/size_max: New file.
48313
48314         * modules/xsize: Depend on size_max module for size_max.m4.
48315
48316 2005-07-11  Simon Josefsson  <jas@extundo.com>
48317
48318         * lib/size_max.h: New file.
48319
48320 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
48321
48322         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
48323         copyright symbol and the year.
48324         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
48325         (version_etc_va): Use parameterized copyright notice.
48326         Reword to conform to the current GNU coding standards.
48327
48328 2005-07-11  Karl Berry  <karl@gnu.org>
48329
48330         * doc/gnulib.texi (Quoting): new node.
48331         (Initial import): more info, from Patrice.
48332
48333 2005-07-11  Bruno Haible  <bruno@clisp.org>
48334
48335         * gnulib-tool (func_usage): Document option --avoid.
48336         (Command line options): Handle --avoid.
48337         (func_acceptable): New function.
48338         (func_modules_transitive_closure): Use it.
48339
48340 2005-07-11  Bruno Haible  <bruno@clisp.org>
48341
48342         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
48343         Reported by Jim Meyering.
48344
48345 2005-07-10  Bruno Haible  <bruno@clisp.org>
48346
48347         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
48348         Needed when size_t is smaller than 'unsigned int'.
48349         Reported by Paul Eggert.
48350
48351 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48352
48353         * modules/argp (Depends-on): Add unlocked-io
48354
48355 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48356
48357         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
48358         block of defines.
48359
48360 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
48361
48362         * config/srclist.txt: Comment out regcomp.c, since we have a porting
48363         fix now.
48364
48365 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
48366         and Paul Eggert  <eggert@cs.ucla.edu>
48367
48368         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
48369         in wint_t, not wchar_t.  Remove now-unnecessary cast.
48370
48371 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
48372
48373         * modules/regex (Files): Add lib/regex_internal.c,
48374         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
48375         (Depends-on): Add extensions.
48376         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
48377
48378 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
48379
48380         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
48381         pathconf.
48382         * m4/same.m4 (gl_SAME): Likewise.
48383         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
48384
48385         * m4/regex.m4: Adjust to new libc regex implementation.
48386         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
48387         all the .c and .h parts of (the new) regex.
48388         Quote the m4 stuff better.
48389         Check for RE_ICASE bug of old gnulib.
48390         Check for REG_STARTEND of recent libc.
48391         Rename local variables from jm_* to gl_*.
48392         Quote operand of "test -f".
48393         Say "recent enough" version of libc, not "version 2".
48394         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
48395         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
48396         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
48397         Remove check for btowc, isascii.
48398         Require AM_LANGINFO_CODESET.
48399
48400 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
48401
48402         * lib/regex.c, regex.h: Sync from libc.
48403         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
48404         * lib/regexec.c:
48405         New files, synced from libc, except that regex_internal.h
48406         currently has a small porting fix.
48407
48408 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
48409
48410         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
48411         regex_internal.c, regexec.c.
48412         Add regex_internal.h too, but as a comment, since the libc version
48413         is currently broken in gnulib mode.
48414
48415 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
48416
48417         Support programs like Emacs that use gnulib but not gettext.
48418         * MODULES.html.sh (Internationalization functions): Add gettext-h.
48419         * modules/gettext-h: New file.
48420         * modules/gettext (Files): Remove lib/gettext.h.
48421         (Depends-on): Add gettext-h.
48422         (Makefile.am): Remove lib_SOURCES.
48423         * modules/argmatch, modules/c-stack, modules/closeout:
48424         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
48425         * modules/execute, modules/file-type, modules/getaddrinfo:
48426         * modules/getopt, modules/human, modules/javacomp:
48427         * modules/javaexec, modules/mkdir-p, modules/obstack:
48428         * modules/openat, modules/pagealign_alloc, modules/pipe:
48429         * modules/quotearg, modules/regex, modules/rpmatch:
48430         * modules/unicodeio, modules/userspec, modules/version-etc:
48431         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
48432         * modules/xsetenv:
48433         Depend on gettext-h, not gettext.
48434
48435 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
48436
48437         * gnulib-tool (func_import): Add support for 'public domain' license.
48438         * modules/alloca, modules/atexit, modules/memmove:
48439         Now public domain, not GPL.
48440         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
48441         * modules/realloc, modules/strerror, modules/strtod:
48442         Now LGPL, not GPL.
48443
48444 2005-07-05  Bruno Haible  <bruno@clisp.org>
48445
48446         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
48447         autoconf CVS. Needed for mingw.
48448
48449 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
48450
48451         Remove the dependency of the strftime module on the tzset module.
48452         * modules/strftime (Depends-on): Remove dependency on tzset.
48453
48454 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
48455
48456         Remove the dependency of the strftime module on the tzset module.
48457         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
48458         gl_FUNC_TZSET_CLOBBER.
48459
48460 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
48461
48462         Remove the dependency of the strftime module on the tzset module.
48463         * lib/strftime.c (my_strftime)
48464         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
48465         Copy the input structure, to work around some of the bug with
48466         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
48467         Solaris releases, you should also use the tzset module, but we won't
48468         require it as a dependency any more since we don't want LGPLed code
48469         to depend on GPLed code.
48470
48471 2005-07-02  Jim Meyering  <jim@meyering.net>
48472
48473         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
48474         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
48475         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
48476         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
48477
48478 2005-07-02  Jim Meyering  <jim@meyering.net>
48479
48480         * lib/backupfile.c (backup_args): Change a `0' to NULL.
48481
48482 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
48483
48484         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
48485         declares only 'struct timespec;' (!).
48486
48487 2005-07-01  Jim Meyering  <jim@meyering.net>
48488
48489         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
48490         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
48491         * lib/save-cwd.c, tempname.c:
48492         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
48493         and don't include <sys/file.h>).
48494
48495 2005-06-29  Jim Meyering  <jim@meyering.net>
48496
48497         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
48498         type name.  Use the variable name instead.
48499         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
48500         Likewise.
48501
48502 2005-06-28  Simon Josefsson  <jas@extundo.com>
48503
48504         * modules/check-version (Files): Add check-version.m4.
48505
48506 2005-06-28  Simon Josefsson  <jas@extundo.com>
48507
48508         * m4/check-version.m4: New file, suggested by Jim Meyering
48509         <jim@meyering.net>.
48510
48511 2005-06-28  Simon Josefsson  <jas@extundo.com>
48512
48513         * lib/check-version.h, lib/check-version.c: New files.
48514
48515 2005-06-28  Simon Josefsson  <jas@extundo.com>
48516
48517         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
48518         collision with global variable.  Better indentation.  Don't
48519         increment buffer pointer beyond buffer end.  Based on comments
48520         from Paul Eggert <eggert@cs.ucla.edu>.
48521
48522         * lib/base64.h: Indent.
48523
48524 2005-06-28  Simon Josefsson  <jas@extundo.com>
48525
48526         * doc/gnulib.texi (Library version handling): New section.
48527
48528 2005-06-28  Jim Meyering  <jim@meyering.net>
48529
48530         * check-module (find_included_lib_files): Hard-code another
48531         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
48532         but modules/fts-lgpl (correctly) does not list those files.
48533
48534         * modules/canonicalize (Files): Add lib/pathmax.h.
48535
48536 2005-06-25  Simon Josefsson  <jas@extundo.com>
48537
48538         * modules/check-version: New file.
48539
48540 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
48541
48542         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
48543         initializer of struct addrinfo, as an indication that we don't
48544         care how many members the structure has.
48545
48546 2005-06-24  Derek Price  <derek@ximbiot.com>
48547         and Bruno Haible  <bruno@clisp.org>
48548
48549         Remove stat module & update lstat.
48550         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
48551         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
48552         * m4/stat.m4: Remove this file.
48553
48554 2005-06-24  Derek Price  <derek@ximbiot.com>
48555         and Bruno Haible  <bruno@clisp.org>
48556
48557         Remove stat module & update lstat.
48558         * lib/stat.c: Remove this file...
48559         (slash_aware_lstat): ...moving this content and its support...
48560         * lib/lstat.c (rpl_lstat): ...into here.
48561         * lib/lstat.h: New file.
48562
48563 2005-06-24  Derek Price  <derek@ximbiot.com>
48564         and Bruno Haible  <bruno@clisp.org>
48565
48566         Remove stat module & update lstat.
48567         * config/srclist.txt (libc sources): Remove stat.
48568
48569 2005-06-24  Derek Price  <derek@ximbiot.com>
48570         and Bruno Haible  <bruno@clisp.org>
48571
48572         Remove stat module & update lstat.
48573         * MODULES.html.sh (stat): Remove.
48574         * MODULES.html: Regenerated.
48575         * modules/lstat (Description): Correct function name.
48576         (Files): Add "lstat.h".
48577         (Depends-on): Remove stat, add xalloc, stat-macros.
48578         * modules/stat: Remove this file.
48579         (Include): Add "lstat.h", remove <sys/stat.h>.
48580
48581 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48582
48583         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
48584         (ranged_convert): Don't save conversion in a temporary struct.
48585         This causes a warning with GCC 4.0.0, and anyway in the typical
48586         case it's not worth the extra 100 bytes or so of code.
48587         (ranged_convert, __mktime_internal): When calling a function via a
48588         pointer P, use P () rather than (*P) (), as we now assume C89 or
48589         better.
48590
48591 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
48592
48593         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
48594         "who -r" failed to give output.  Problem reported by Tim Waugh.
48595
48596         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
48597         (xcalloc): Use it to avoid needless tests.
48598         Problem reported by Jim Meyering.
48599
48600 2005-06-20  Derek Price  <derek@ximbiot.com>
48601
48602         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
48603         unnecessary for Autoconfs > 2.59c.
48604
48605 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
48606
48607         * lib/argp.h (__option_is_short): Check upper limit of
48608         __key. Isprint() requires its argument to have the value
48609         of an unsigned char or EOF.
48610
48611 2005-06-16  Jim Meyering  <jim@meyering.net>
48612
48613         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
48614         when either N or S is zero.
48615
48616 2005-06-16  Derek Price  <derek@ximbiot.com>
48617
48618         * m4/bison.m4: Declare YACC & YFLAGS precious.
48619
48620 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
48621
48622         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
48623         multibyte string or pattern, fall back on unibyte matching.
48624         Problem reported by James Youngman.
48625
48626 2005-06-08  Bruno Haible  <bruno@clisp.org>
48627
48628         * modules/csharpcomp: New file.
48629         * MODULES.html.sh (C#): Add csharpcomp.
48630
48631 2005-06-08  Bruno Haible  <bruno@clisp.org>
48632
48633         * m4/csharpcomp.m4: New file, from GNU gettext.
48634
48635 2005-06-08  Bruno Haible  <bruno@clisp.org>
48636
48637         * lib/csharpcomp.h: New file, from GNU gettext.
48638         * lib/csharpcomp.c: New file, from GNU gettext.
48639         * lib/csharpcomp.sh.in: New file, from GNU gettext.
48640
48641 2005-06-08  Bruno Haible  <bruno@clisp.org>
48642
48643         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
48644         warning on mingw.
48645
48646 2005-06-07  Derek Price  <derek@ximbiot.com>
48647
48648         Sync from CVS.
48649         * lib/glob_.h: Indent nested #ifdef.
48650
48651 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
48652
48653         Sync from coreutils.
48654         Use "file name" when talking about file names, instead of "filename"
48655         or "path", as per the GNU coding standards.
48656         * lib/mkdir-p.c: Renamed from makepath.c.
48657         (make_dir_parents): Renamed from make_path.  All callers changed.
48658         * lib/mkdir-p.h: Likewise.  All includers changed.
48659         * lib/filenamecat.c: Renamed from path-concat.c.
48660         (file_name_concat): Renamed from path_concat.  All callers changed.
48661         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
48662         * lib/filenamecat.h: Likewise.  All includers changed.
48663         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
48664         in comments or local variable names.
48665         * lib/basename.c: Likewise.
48666         * lib/canonicalize.c, canonicalize.h: Likewise.
48667         * lib/dirname.c, dirname.h: Likewise.
48668         * lib/euidaccess.c: Likewise.
48669         * lib/exclude.c: Likewise
48670         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
48671         * lib/fsusage.c, fsuage.h: Likewise.
48672         * lib/fts.c, fts_.h: Likewise.
48673         * lib/getcwd.c: Likewise.
48674         * lib/getloadavg.c: Likewise.
48675         * lib/mkstemp.c: Likewise.
48676         * lib/mountlist.c, mountlist.h: Likewise.
48677         * lib/openat.c, openat.h: Likewise.
48678         * lib/readlink-stub.c: Likewise.
48679         * lib/readutmp.c, readutmp.h: Likewise.
48680         * lib/rename.c: Likewise.
48681         * lib/rmdir.c: Likewise.
48682         * lib/same.c: Likewise.
48683         * lib/savedir.c: Likewise.
48684         * lib/stripslash.c: Likewise.
48685         * lib/tempname.c: Likewise.
48686         * lib/xreadlink.c: Likewise.
48687         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
48688         All uses changed.
48689         * lib/exclude.h: Likewise.
48690
48691         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
48692         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
48693         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
48694         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
48695         * lib/pathmax.h: Include <limits.h> unconditionally, since other
48696         files have been getting away with it for years (MORE/BSD 4.3
48697         is extinct now).
48698         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
48699         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
48700
48701         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
48702         Define to 256, not 255, as per modern POSIX.
48703
48704 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
48705
48706         Sync from coreutils.
48707         Use "file name" when talking about file names, instead of "filename"
48708         or "path", as per the GNU coding standards.
48709         * MODULES.html.sh: mkdir-p renamed from makepath.
48710         filenamecat renamed from path-concat.
48711         * modules/filenamecat: Renamed from modules/path-concat.
48712         (Files): filenamecat.h and filenamecat.c renamed from
48713         path-concat.h and path-concat.c.
48714         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
48715         (Include): filenamecat.h, not path-concat.h.
48716         * modules/mkdir-p: Renamed from modules/makepath.
48717         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
48718         makepath.c.
48719         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
48720         (Include): mkdir-p.h, not makepath.h.
48721
48722 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
48723
48724         Sync from coreutils.
48725         * m4/mkdir-p.m4: Renamed from makepath.m4.
48726         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
48727         Rename files from makepath.c to mkdir-p.c, and from
48728         makepath.h to mkdir-p.h.
48729         * m4/filenamecat.m4: Renamed from path-concat.m4.
48730         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
48731         Rename files from path-concat.c to filenamecat.c,
48732         and from path-concat.h to filenamecat.h.
48733         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
48734         "file name" in local variables or comments.
48735         * m4/rename.m4: Likewise.
48736
48737 2005-06-01  Bruno Haible  <bruno@clisp.org>
48738
48739         * modules/csharpexec: New file.
48740         * MODULES.html.sh (C#): New section.
48741
48742 2005-06-01  Bruno Haible  <bruno@clisp.org>
48743
48744         * m4/csharp.m4: New file, from GNU gettext.
48745         * m4/csharpexec.m4: New file, from GNU gettext.
48746
48747 2005-06-01  Bruno Haible  <bruno@clisp.org>
48748
48749         * lib/csharpexec.h: New file, from GNU gettext.
48750         * lib/csharpexec.c: New file, from GNU gettext.
48751         * lib/csharpexec.sh.in: New file, from GNU gettext.
48752
48753 2005-05-31  Derek Price  <derek@ximbiot.com>
48754             Paul Eggert  <eggert@cs.ucla.edu>
48755
48756         Sync from cvs.
48757         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
48758
48759 2005-05-31  Derek Price  <derek@ximbiot.com>
48760             Paul Eggert  <eggert@cs.ucla.edu>
48761
48762         Sync from cvs.
48763         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
48764
48765 2005-05-29  Derek Price  <derek@ximbiot.com>
48766
48767         * config/srclist.txt (glob_.h, glob.c): Add these files.
48768
48769 2005-05-29  Derek Price  <derek@ximbiot.com>
48770
48771         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
48772         * modules/glob: New file.
48773         * modules/getlogin_r: Add link to POSIX spec in description.
48774
48775 2005-05-29  Derek Price  <derek@ximbiot.com>
48776             Paul Eggert  <eggert@cs.ucla.edu>
48777
48778         * m4/glob.m4: New file.
48779
48780 2005-05-29  Derek Price  <derek@ximbiot.com>
48781             Paul Eggert  <eggert@cs.ucla.edu>
48782
48783         * lib/glob_.h, lib/glob.c: New files.
48784
48785 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
48786
48787         * modules/fts (Files): Remove m4/inttypes-pri.m4.
48788         * modules/fts-lgpl (Depends-on): Remove gettext.
48789
48790 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
48791
48792         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
48793         and don't require gt_INTTYPES_PRI.
48794
48795 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
48796
48797         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
48798
48799         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
48800         the configuration hassle isn't worth it.
48801         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
48802         (LONGEST_MODIFIER, PRIuMAX): Remove.
48803
48804 2005-05-27  Bruno Haible  <bruno@clisp.org>
48805
48806         * lib/getlogin_r.h: Remove second include of <stddef.h>.
48807
48808 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
48809
48810         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
48811         _POSIX_PTHREAD_SEMANTICS for Solaris.
48812
48813 2005-05-25  Derek Price  <derek@ximbiot.com>
48814
48815         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
48816
48817 2005-05-25  Derek Price  <derek@ximbiot.com>
48818             Paul Eggert  <eggert@cs.ucla.edu>
48819
48820         * modules/getlogin_r, m4/getlogin_r.m4: New files.
48821         * lib/getlogin_r.c, getlogin_r.h: New files.
48822
48823 2005-05-25  Bruno Haible  <bruno@clisp.org>
48824             Derek Price  <derek@ximbiot.com>
48825
48826         * lib/getlogin_r.h: Simplify API documentation.
48827
48828 2005-05-23  Derek Price  <derek@ximbiot.com>
48829
48830         * modules/minmax (Files): Add m4/minmax.m4.
48831         (configure.ac): Add gl_MINMAX.
48832
48833 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
48834
48835         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
48836         so that unistd-safer.h (GPL'ed code) need not be included.
48837
48838 2005-05-22  Bruno Haible  <bruno@clisp.org>
48839
48840         * m4/minmax.m4: New file.
48841         Based on a patch by Derek Price <derek@ximbiot.com>.
48842
48843 2005-05-22  Bruno Haible  <bruno@clisp.org>
48844
48845         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
48846         (INT64_MIN): Fix definition.
48847         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
48848
48849         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
48850         NEED_SIGNED_INT_TYPES.
48851
48852         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
48853         HAVE_SYSTEM_INTTYPES.
48854
48855 2005-05-22  Bruno Haible  <bruno@clisp.org>
48856
48857         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
48858         Also include <sys/param.h> if it defines MIN, MAX.
48859         Based on a patch by Derek Price <derek@ximbiot.com>.
48860
48861 2005-05-21  Jim Meyering  <jim@meyering.net>
48862
48863         * modules/fts (Files): Add m4/inttypes-pri.m4.
48864         (Depends-on): Add lstat and remove gettext.  Alphabetize.
48865
48866 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
48867
48868         New fts module.
48869         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
48870         (setup_dir, free_dir): New functions.
48871         (enter_dir, leave_dir): Define trivial
48872         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
48873         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
48874         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
48875         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
48876         Move to fts-cycle.c.
48877         (fts_open): Use setup_dir.
48878         (fts_close): Use free_dir.
48879         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
48880         This adds a label and some gotos, but the alternatives were messier.
48881         Check for memory allocation failure when entering a dir.
48882         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
48883         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
48884         (FTS): New member fts_cycle, that is a union that contains the
48885         old active_dir_ht and cycle_state.  All uses changed to mention
48886         fts_cycle.ht and fts_cycle.state.
48887         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
48888         fts.c, with the following changes:
48889         (setup_dir, free_dir): New functions.
48890         (enter_dir): Now returns bool.  Return true if successful, false
48891         if memory exhausted.  All callers changed.
48892         Do not bother partly cleaning up on
48893         memory allocation failure; that is free_dir's job.
48894         However, free ad if hash_insert fails, to avoid memory leak.
48895         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
48896         fts->fts_options to see which union member to use.
48897
48898 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
48899
48900         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
48901         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
48902
48903 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
48904
48905         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
48906
48907 2005-05-20  Jim Meyering  <jim@meyering.net>
48908
48909         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
48910         Now a macro, to pacify GCC.
48911
48912 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
48913
48914         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
48915         of -1.
48916
48917 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
48918
48919         * lib/chown.c (rpl_chown): Return -1 on failure.
48920
48921 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
48922
48923         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
48924         Don't check for stddef.h.
48925         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
48926         don't use its results.
48927         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
48928         since we include them unconditionally.  Don't require
48929         AM_STDBOOL_H, since stdbool is a prerequisite.
48930         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
48931         since we assume C89 or better.
48932         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
48933         as we don't use their results.
48934         Don't check for fchdir, memmove, memset, strrchr, as we use
48935         them unconditionally.
48936         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
48937         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
48938
48939 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
48940
48941         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
48942         Include <stddef.h> unconditionally, since we assume C89 now.
48943         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
48944         * lib/fts.c: Include fts_.h first, to check interface.
48945         Do not include intprops.h; no longer needed.
48946         Include cycle-check.h and hash.h, since fts_.h no longer does.
48947         Remove unnecessary casts of closedir to void.
48948         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
48949         decide whether to decrement nlinks.
48950         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
48951         (FTS): Use struct hash_table * instead of Hash_table, so that
48952         we no longer need to include hash.h here.
48953
48954 2005-05-18  Jim Meyering  <jim@meyering.net>
48955
48956         * modules/dirfd (License): Change to LGPL.  Most of the code
48957         is already in the public domain.
48958
48959 2005-05-18  Jim Meyering  <jim@meyering.net>
48960
48961         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
48962         Reported by Yoann Vandoorselaere.
48963
48964 2005-05-17  Jim Meyering  <jim@meyering.net>
48965
48966         * m4/fts.m4: New file, from coreutils.
48967
48968 2005-05-17  Jim Meyering  <jim@meyering.net>
48969
48970         * lib/fts.c, lib/fts_.h: New files, from coreutils.
48971
48972 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
48973
48974         Sync from coreutils.
48975         * m4/unlinkdir.m4: New file.
48976
48977 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
48978
48979         Sync from coreutils.
48980         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
48981         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
48982         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
48983         White space changes only.
48984         * lib/makepath.c (make_path): Port to hosts where leading "//" is
48985         special.
48986         * lib/yesno.c: Include getline.h, not ctype.h.
48987         (yesno): Don't remove leading white space; POSIX doesn't allow it.
48988         Use getline to remove arbitrary restriction on response length.
48989
48990 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
48991
48992         * config/srclist-update: Spell out "Street" in FSF postal
48993         mail address; this is the style the FSF seems to prefer.
48994
48995         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
48996         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
48997         this updates FSF postal mail address.
48998
48999         Sync from coreutils.
49000         * modules/unlinkdir: New file.
49001         * modules/yesno (Depends-on): Add getline.
49002         * MODULES.html.sh (File system functions): Add unlinkdir.
49003
49004 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
49005
49006         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
49007         lib/strsep.h:
49008         Change the initial comment to refer to GPL, not LGPL.
49009         gnulib-tool will change it to LGPL as needed.
49010
49011         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
49012         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
49013         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
49014         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
49015         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
49016         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
49017         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
49018         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
49019         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
49020         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
49021         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
49022         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
49023         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
49024         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
49025         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
49026         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
49027         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
49028         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
49029         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
49030         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
49031         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
49032         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
49033         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
49034         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
49035         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
49036         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
49037         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
49038         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
49039         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
49040         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
49041         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
49042         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
49043         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
49044         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
49045         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
49046         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
49047         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
49048         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
49049         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
49050         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
49051         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
49052         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
49053         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
49054         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
49055         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
49056         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
49057         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
49058         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
49059         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
49060         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
49061         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
49062         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
49063         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
49064         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
49065         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
49066         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
49067         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
49068         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
49069         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
49070         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
49071         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
49072         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
49073         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
49074         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
49075         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
49076         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
49077         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
49078         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
49079         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
49080         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
49081         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
49082         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
49083         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
49084         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
49085         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
49086         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
49087         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
49088         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
49089         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
49090         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
49091         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
49092         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
49093         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
49094         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
49095         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
49096         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
49097         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
49098         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
49099         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
49100         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
49101         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
49102         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
49103         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
49104         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
49105         lib/yesno.c, lib/yesno.h:
49106         Update FSF postal mail address.
49107
49108 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
49109
49110         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
49111         tests/test-memmem.c, tests/test-stpncpy.c:
49112         Update FSF postal mail address.
49113
49114 2005-05-13  Bruno Haible  <bruno@clisp.org>
49115
49116         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
49117         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
49118         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
49119         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
49120         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
49121         Add support for 64-bit integers in the MSVC compiler.
49122
49123 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49124
49125         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
49126
49127 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
49128
49129         * gnulib-tool (func_import): Sort and uniquify recommended includes.
49130
49131 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
49132
49133         * doc/getdate.texi (General date syntax): Don't say that date
49134         date --iso-8601=ns generates acceptable dates; it doesn't yet.
49135         Problem reported by Nic Ferrier.
49136
49137 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49138
49139         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
49140         specified in ai_socktype. Fix invalid ai_protocol
49141         check. ai_protocol is usually set to 0 or depending on
49142         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
49143         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
49144         ai_socktype / ai_protocol in the returned addrinfo structure.
49145
49146 2005-05-10  Simon Josefsson  <jas@extundo.com>
49147
49148         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
49149         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49150
49151 2005-05-10  Karl Berry  <karl@gnu.org>
49152
49153         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
49154         (from http://www.gnu.org/licenses).
49155         * doc/COPYING.LIB: also rename to COPYING.LESSER.
49156         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
49157         fdl.texi suffices.
49158
49159 2005-05-10  Karl Berry  <karl@gnu.org>
49160
49161         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
49162         (COPYING.DOC): remove.
49163
49164         * config/srclist-update: new FSF address.
49165
49166 2005-05-10  Derek Price  <derek@ximbiot.com>
49167
49168         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
49169         possible.
49170
49171 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49172             Bruno Haible  <bruno@clisp.org>
49173
49174         * modules/inet_ntop: New file.
49175         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49176         inet_ntop.
49177
49178 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49179             Bruno Haible  <bruno@clisp.org>
49180
49181         * m4/inet_ntop.m4: New file.
49182
49183 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49184             Bruno Haible  <bruno@clisp.org>
49185
49186         * lib/inet_ntop.h: New file.
49187         * lib/inet_ntop.c: New file, from glibc with modifications.
49188
49189 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
49190
49191         * modules/time_r (License): Change to LGPL.
49192         * modules/extensions (License): Change to LGPL.  Actually,
49193         the license is more permissive than that, but currently gnulib-tool
49194         doesn't know how to handle more-permissive licenses.
49195
49196         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
49197         Problem reported by Dave Love.
49198
49199 2005-05-08  Jim Meyering  <jim@meyering.net>
49200
49201         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
49202         blank.
49203
49204 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
49205
49206         * modules/argmatch (Depends-on): Add stdbool.
49207         * modules/backupfile (Depends-on): Likewise.
49208         * modules/chdir-long (Depends-on): Likewise.
49209         * modules/closeout (Depends-on): Likewise.
49210         * modules/cycle-check (Depends-on): Likewise.
49211         * modules/dirname (Depends-on): Likewise.
49212         * modules/fnmatch (Depends-on): Likewise.
49213         * modules/fsusage (Depends-on): Likewise.
49214         * modules/fwriteerror (Depends-on): Likewise.
49215         * modules/getcwd (Depends-on): Likewise.
49216         * modules/getloadavg (Depends-on): Likewise.
49217         * modules/hard-locale (Depends-on): Likewise.
49218         * modules/makepath (Depends-on): Likewise.
49219         * modules/mountlist (Depends-on): Likewise.
49220         * modules/nanosleep (Depends-on): Likewise.
49221         * modules/posixtm (Depends-on): Likewise.
49222         * modules/quotearg (Depends-on): Likewise.
49223         * modules/readtokens (Depends-on): Likewise.
49224         * modules/readtokens0 (Depends-on): Likewise.
49225         * modules/readutmp (Depends-on): Likewise.
49226         * modules/save-cwd (Depends-on): Likewise.
49227         * modules/strftime (Depends-on): Likewise.
49228         * modules/userspec (Depends-on): Likewise.
49229         * modules/utimecmp (Depends-on): Likewise.
49230         * modules/xgetcwd (Depends-on): Likewise.
49231         * modules/xnanosleep (Depends-on): Likewise.
49232         * modules/xstrtod (Depends-on): Likewise.
49233         * modules/yesno (Depends-on): Likewise.
49234
49235 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
49236
49237         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
49238         needless checks.
49239
49240 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
49241
49242         Merge from coreutils.  Among other things,
49243         add bulletproofing for cases where stdin, stdout, or stderr are closed.
49244         * lib/fd-safer.c: New file.
49245         * lib/fcntl-safer.h, open-safer.c: Remove.
49246         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
49247         * lib/dup-safer.c: Include unistd-safer.h first.
49248         Don't include errno.h.
49249         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
49250         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
49251         * lib/file-type.c: Rely on file-type.h change.
49252         * lib/getloadavg.c: Include unistd-safer.h.
49253         (getloadavg): Use safer open.
49254         * lib/getusershell.c: Include "stdio-safer.h".
49255         (getusershell): Use safer fopen.
49256         * lib/long-options.c (long_options): Use NULL rather than 0.
49257         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
49258         'free'.
49259         * lib/modechange.c: Likewise.
49260         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
49261         (MODE_DONE): New constant.
49262         (struct mode_change): Remove 'next' member.
49263         (make_node_op_equals): New function; like the old one of the
49264         same name, except it allocates an array.
49265         (mode_compile, mode_create_from_ref): Use it.
49266         (mode_compile): Allocate result as an array, not a linked list.
49267         Parse octal string ourself, so that we catch mistakes like "+0".
49268         (mode_adjust): Arg is an array, not a linked list.
49269         * lib/modechange.c: Include stat-macros.h, xalloc.h.
49270         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
49271         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
49272         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
49273         Remove.  This is now stat-macros.h's job.
49274         (talloc): Remove.  All callers replaced by xalloc, so that
49275         our invokers don't have to worry about reporting memory failures.
49276         (make_node_op_equals): Remove.
49277         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
49278         New constants.
49279         (struct mode_change): Moved here from modechange.h.
49280         (mode_append_entry): Remove.
49281         (mode_compile): Remove MASKED_OPS arg, since it encouraged
49282         apps to have incorrect behavior.  Use simpler algorithm for head
49283         and tail.  Don't futz with umask; that's now the job of mode_adjust.
49284         Detect more invalid usages rather than having somewhat-random behavior.
49285         Don't insert an "a=" action, as that leads to incorrect behavior.
49286         (mode_compile, mode_create_from_ref): Return NULL on error instead
49287         of an enum, since now there's only one way to have an error.  All
49288         callers changed.
49289         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
49290         at the correct time.  Simplify calculation of "+u" and its ilk.
49291         Don't mishandle "+X".
49292         (mode_free): Remove "register" and localize decls.
49293         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
49294         (struct mode_change): Move to modechange.c; callers don't
49295         need to see this stuff.
49296         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
49297         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
49298         (mode_change, mode_adjust): Reflect the new signatures noted above.
49299         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
49300         that might redefine system include files.
49301         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
49302         (my_usleep): Use NULL rather than (void *) 0.
49303         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
49304         Use siginterrupt to specify that system calls should be interrupted.
49305         (rpl_nanosleep): Move initialization of suspended closer to call of
49306         my_usleep.
49307         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
49308         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
49309         (desirable_utmp_entry): New function.
49310         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
49311         using x2nrealloc, to simplify logic.
49312         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
49313         size calculation.  Do not assume utmp file is a regular file.
49314         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
49315         (READ_UTMP_CHECK_PIDS): New constant.
49316         * lib/save-cwd.c: Include unistd-safer.h.
49317         (save_cwd): Use fd_safer.
49318         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
49319         [!_LIBC] Include "stat-macros.h" instead.
49320         * lib/unistd-safer.h (fd_safer): New decl.
49321
49322 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
49323
49324         * modules/getloadavg (Depends-on): Add unistd-safer.
49325         * modules/getusershell (Depends-on): Add stdio-safer.
49326         * modules/lstat (Depends-on): Remove xalloc.
49327         * modules/mkstemp (Depends-on): Add stat-macros.
49328         * modules/modechange (Depends-on): Remove xstrtol.
49329         Add stat-macros, xalloc.
49330         * modules/save-cwd (Depends-on): Add unistd-safer.
49331         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
49332         * modules/unistd-safer (Files): Add lib/fd-safer.c
49333         (Makefile.am): Remove lib_SOURCES.
49334
49335         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
49336         Remove fcntl-safer; unistd-safer supersedes it.
49337
49338 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
49339
49340         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
49341         AC_HEADER_STAT.
49342         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
49343         (gl_PREREQ_CHOWN): Remove.
49344         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
49345         it.  Don't require AC_HEADER_STAT.
49346         (gl_PREREQ_LSTAT): Remove.
49347         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
49348         Don't require AC_HEADER_STAT.
49349         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
49350         (gl_PREREQ_RMDIR): Remove.
49351         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
49352         mention stat-macros.h or AC_HEADER_STAT, since we'll make
49353         the stat-macros module a prerequisite.
49354         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
49355         * m4/filemode.m4 (gl_FILEMODE): Likewise.
49356         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
49357         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
49358         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
49359         variable names.
49360         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
49361         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
49362         variable prefixes.
49363         * m4/fcntl-safer.m4: Remove.
49364         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
49365         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
49366         Invoke gl_PREREQ_FD_SAFER.
49367         (gl_PREREQ_FD_SAFER): New macro.
49368         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
49369         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
49370         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
49371         Remove duplicate call to AC_LIBOBJ(readutmp).
49372         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
49373
49374         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
49375         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
49376
49377 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
49378
49379         * MODULES.html.sh (Misc): Add byteswap.
49380
49381 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
49382
49383         * modules/getcwd (Depends-on): Add extensions.
49384         * modules/openat (Depends-on): Likewise.
49385
49386 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
49387
49388         * modules/byteswap: New file.
49389
49390 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
49391
49392         * m4/byteswap.m4: New file.
49393
49394 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
49395
49396         * lib/byteswap_.h: New file.
49397
49398 2005-04-25  Karl Berry  <karl@gnu.org>
49399
49400         * m4/gettext.m4: Update from GNU gettext 0.14.4.
49401
49402 2005-04-25  Albert Chin  <china@thewrittenword.com>
49403
49404         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
49405         Toolkit C bug.
49406
49407 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
49408
49409         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
49410         (func_ln_if_changed) Remove forcibly for no error message
49411         in case file does not exist.
49412
49413 2005-04-19  Simon Josefsson  <jas@extundo.com>
49414
49415         * gnulib-tool (Options): Make --symlink mean --symbolic.
49416
49417 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
49418
49419         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
49420
49421 2005-04-16  Simon Josefsson  <jas@extundo.com>
49422
49423         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
49424
49425 2005-04-15  Simon Josefsson  <jas@extundo.com>
49426
49427         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
49428
49429 2005-04-15  Simon Josefsson  <jas@extundo.com>
49430
49431         * gnulib-tool: Rename --symlink to --symbolic.
49432
49433 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
49434
49435         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
49436         symbolic links to files instead of copying/moving.  Add --aux-dir,
49437         specifying directory relative --dir where auxiliary build tools
49438         are placed.
49439
49440 2005-04-14  Bruno Haible  <bruno@clisp.org>
49441
49442         * modules/allocsa (License): Change to LGPL.
49443         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49444
49445 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
49446
49447         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
49448         that "UTC +1 second" continues to work.  Problem reported
49449         by Dmitry V. Levin.
49450         (relunit_snumber): New rule.
49451         (relunit): Use it.
49452
49453 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
49454
49455         * lib/getdate.y (universal_time_zone_table): New constant.
49456         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
49457         universal_time_zone_table.
49458         (lookup_zone): Prefer universal_time_zone_table to
49459         local_time_zone_table, so that "GMT" time stamps are allowed in
49460         London during the summer.  Problem reported by Ian Abbott.
49461
49462 2005-04-12  Jim Meyering  <jim@meyering.net>
49463
49464         * lib/human.c (humblock): Set *options even when returning due to
49465         xstrtoumax conversion failure.  Thanks to a used-uninitialized
49466         warning from gcc-4.
49467
49468 2005-04-09  Jim Meyering  <jim@meyering.net>
49469
49470         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
49471         -Wuninitialized: initialize tm0.tm_year.
49472
49473 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
49474
49475         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
49476         count, since there's no maximum.  All uses changed.
49477         Add member dsts_seen.
49478         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
49479         not being INT_MAX.
49480         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
49481         Use pc_rels_seen to decide whther a date is absolute.
49482
49483         * lib/getdate.y (number): Don't overwrite year.
49484         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
49485         check.
49486
49487 2005-04-02  Simon Josefsson  <jas@extundo.com>
49488
49489         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
49490         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
49491
49492 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
49493
49494         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
49495         where no absolute path name can be longer than PATH_MAX.
49496
49497 2005-03-27  Jim Meyering  <jim@meyering.net>
49498
49499         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
49500
49501 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
49502
49503         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
49504         "one's complement" -> "ones' complement" in comment, as per Knuth.
49505         "value of type" -> "type or expression" in comment.
49506         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
49507
49508 2005-03-26  Jim Meyering  <jim@meyering.net>
49509
49510         Comment nits.
49511         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
49512         Correct typos: s/or/of/.
49513
49514 2005-03-26  Jim Meyering  <jim@meyering.net>
49515
49516         * modules/check-include-files: Move to ../ and rename to...
49517         * check-module: ...this.
49518
49519 2005-03-25  Jim Meyering  <jim@meyering.net>
49520
49521         * modules/xvasprintf (Files): Add xalloc.h.
49522
49523 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
49524
49525         * modules/gettext (Files): config/config.rpath ->
49526         build-aux/config.rpath
49527         * modules/iconv (Files): Likewise.
49528         Problem reported by Oskar Liljeblad.
49529
49530 2005-03-23  Jim Meyering  <jim@meyering.net>
49531
49532         * modules/check-include-files: New script to check for
49533         missing dependencies, multiple includes, etc.
49534
49535         * modules/c-strtold (Depends-on): Add xalloc.
49536         * modules/c-strtod (Depends-on): Add xalloc.
49537         * modules/hash (Depends-on): Add xalloc.
49538         (Files): Remove lib/xalloc.h.
49539
49540         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
49541         * modules/userspec (Files): Add lib/inttostr.h.
49542
49543 2005-03-23  Jim Meyering  <jim@meyering.net>
49544
49545         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
49546
49547 2005-03-22  Jim Meyering  <jim@meyering.net>
49548
49549         * modules/stat-macros: New module.
49550         * modules/canonicalize, modules/euidaccess, modules/file-type,
49551         * modules/filemode, modules/lchown, modules/makepath,
49552         * modules/rmdir, modules/stat: Depend on new stat-macros module
49553         rather than listing lib/stat-macros.h manually.
49554         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
49555
49556 2005-03-22  Jim Meyering  <jim@meyering.net>
49557
49558         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
49559
49560 2005-03-22  Bruno Haible  <bruno@clisp.org>
49561
49562         * config/srclist.txt: Replace target directory 'config' with
49563         'build-aux'.
49564         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
49565         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
49566         ../build-aux/.
49567
49568 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
49569
49570         * modules/chdir-long (Depends-on): Add mempcpy.
49571
49572         * modules/acl, modules/backupfile, modules/c-strtod,
49573         modules/c-strtold, modules/canon-host, modules/canonicalize,
49574         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
49575         modules/exclude, modules/exitfail, modules/file-type,
49576         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
49577         modules/getdate, modules/getline, modules/getpagesize,
49578         modules/getpass, modules/getugroups, modules/group-member,
49579         modules/hard-locale, modules/hash, modules/human, modules/idcache,
49580         modules/inttostr, modules/long-options, modules/makepath,
49581         modules/md5, modules/memcasecmp, modules/memcoll,
49582         modules/modechange, modules/mountlist, modules/path-concat,
49583         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
49584         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
49585         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
49586         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
49587         modules/strftime, modules/strndup, modules/strverscmp,
49588         modules/timespec, modules/unlocked-io, modules/userspec,
49589         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
49590         modules/yesno:
49591         Remove lib_SOURCES line from Makefile.am section, as this is now
49592         done automatically by the corresponding Autoconf macro.
49593
49594 2005-03-21  Jim Meyering  <jim@meyering.net>
49595
49596         Changes imported from coreutils.
49597
49598         * lib/cycle-check.c: Don't include xalloc.h.
49599
49600         * lib/path-concat.c: Don't include assert.h.
49601         (path_concat): Remove assertion that would have triggered
49602         for ABASE starting with more than one slash.
49603         Reported by Andreas Schwab.
49604
49605         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
49606         properly when ABASE is an absolute file name.
49607         Correct the description of this function.
49608         Include <assert.h>.
49609         Add an assertion and a test driver.
49610         This fixes a bug introduced on 2004-07-02.
49611         Andreas Schwab reported the resulting failure of cp --parents:
49612         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
49613
49614 2005-03-21  Jim Meyering  <jim@meyering.net>
49615
49616         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
49617         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
49618
49619 2005-03-21  Jim Meyering  <jim@meyering.net>
49620         and  Paul Eggert  <eggert@cs.ucla.edu>
49621
49622         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
49623         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
49624         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
49625         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
49626         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
49627         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
49628         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
49629         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
49630         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
49631         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
49632         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
49633         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
49634         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
49635         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
49636         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
49637         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
49638         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
49639         for these modules.
49640
49641 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
49642
49643         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
49644         (which shouldn't happen), generate nothing instead of returning 0
49645         immediately, so that nstrftime (NULL, ...) doesn't return 0.
49646
49647 2005-03-16  Bruno Haible  <bruno@clisp.org>
49648
49649         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
49650         HAVE_LONGLONG_64BIT.
49651
49652 2005-03-16  Bruno Haible  <bruno@clisp.org>
49653
49654         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
49655         HAVE_LONGLONG_64BIT.
49656
49657 2005-03-16  Bruno Haible  <bruno@clisp.org>
49658
49659         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
49660         HAVE_LONGLONG_64BIT.
49661
49662 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
49663
49664         * lib/strftime.c (my_strftime): Prepend space to format so that we can
49665         reliably distinguish strftime failure from empty output on POSIX
49666         hosts.
49667
49668 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
49669
49670         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
49671         (iconv_string): Don't guess a size-zero buffer, as that might cause
49672         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
49673         result would be 'too large', where 'too large' is (heuristically)
49674         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
49675         overflow concerns.  This will prevent some unwanted malloc failures
49676         when the inputs are very large.
49677
49678 2005-03-15  Karl Berry  <karl@gnu.org>
49679
49680         * config/srclist.txt (config.rpath): from gettext.
49681         * config/config.rpath: update.
49682
49683 2005-03-15  Bruno Haible  <bruno@clisp.org>
49684
49685         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
49686         to 'negate'.
49687
49688         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
49689         variable.
49690
49691         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
49692         results.
49693
49694 2005-03-14  Simon Josefsson  <jas@extundo.com>
49695
49696         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
49697         <fx@gnu.org>.
49698
49699 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
49700
49701         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
49702         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
49703         intprops.h.
49704         * lib/strtol.c: Likewise.
49705
49706 2005-03-14  Jim Meyering  <jim@meyering.net>
49707
49708         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
49709         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
49710         to be nonzero so that we (and caller) can detect the difference
49711         between a valid zero-length expansion and an error return, even
49712         when the underlying strftime fails before writing anything into
49713         that location.
49714
49715 2005-03-14  Bruno Haible  <bruno@clisp.org>
49716
49717         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
49718         Update from GNU gettext 0.14.3.
49719
49720 2005-03-10  Jim Meyering  <jim@meyering.net>
49721
49722         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
49723
49724 2005-03-10  Jim Meyering  <jim@meyering.net>
49725
49726         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
49727         so that this module works on systems without fchdir.
49728
49729 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
49730
49731         Factor int-properties macros into a single file, except for
49732         glibc-related files.
49733         * lib/intprops.h: New file.
49734         * lib/getloadavg.c: Include it instead of limits.h.
49735         (INT_STRLEN_BOUND): Remove.
49736         * lib/human.c: Include intprops.h.
49737         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
49738         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
49739         302/1000.
49740         * lib/inttostr.h: Include intprops.h instead of limits.h.
49741         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
49742         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
49743         for consistency with intprops.h.
49744         (time_t_is_integer, twos_complement_arithmetic): Use them.
49745         * lib/sig2str.h: Include <signal.h>, intprops.h.
49746         (INT_STRLEN_BOUND): Remove.
49747         * lib/strftime.c (TYPE_SIGNED): Remove.
49748         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
49749         * lib/strtol.c: Adjust comments to match intprops.h.
49750         * lib/userspec.c: Include intprops.h.
49751         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
49752         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
49753         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
49754         instead of rolling our own expressions.
49755         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
49756
49757         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
49758         instead of int.
49759         (my_strftime): Do not mishandle years close to INT_MAX, by doing
49760         the right thing even if adding 1900 would overflow.  Similarly
49761         for tm_mon + 1 and tm_yday + 1.
49762         Make %Y always equivalent to %C%y, and similarly for %G and %g.
49763         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
49764         (DO_SIGNED_NUMBER): New macro.
49765         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
49766
49767 2005-03-07  Bruno Haible  <bruno@clisp.org>
49768
49769         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
49770
49771 2005-03-07  Bruno Haible  <bruno@clisp.org>
49772
49773         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
49774
49775 2005-03-04  Derek R. Price  <derek@ximbiot.com>
49776
49777         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
49778         (func_import): Only replace files via --import when they have actually
49779         changed.
49780
49781 2005-03-03  Derek R. Price  <derek@ximbiot.com>
49782
49783         * m4/mmap-anon.m4: New file.
49784         * m4/pagealign_alloc.m4: New file.
49785
49786 2005-03-03  Derek R. Price  <derek@ximbiot.com>
49787             Bruno Haible  <bruno@clisp.org>
49788
49789         * modules/pagealign_alloc: New file.
49790         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
49791
49792 2005-03-03  Derek R. Price  <derek@ximbiot.com>
49793             Bruno Haible  <bruno@clisp.org>
49794
49795         * lib/pagealign_alloc.h: New file.
49796         * lib/pagealign_alloc.c: New file.
49797
49798 2005-03-03  Bruno Haible  <bruno@clisp.org>
49799
49800         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
49801         Use an all-permissive copyright notice, recommended by RMS.
49802
49803 2005-03-02  Bruno Haible  <bruno@clisp.org>
49804
49805         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
49806         of AIX, the replacement has to be done only after <string.h> is
49807         included, therefore not in config.h. stpncpy.h does the replacement,
49808         and stpncpy.c uses it.
49809
49810 2005-03-02  Bruno Haible  <bruno@clisp.org>
49811
49812         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
49813         stpncpy.c uses it.
49814
49815 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
49816
49817         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
49818         The workaround isn't strictly needed for POSIX conformance, and
49819         it's too much of a pain to configure and maintain.  We'll ask
49820         people to fix their kernels instead.
49821         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
49822         (NANOSLEEP_BUG_WORKAROUND): Remove.
49823         (xnanosleep): Remove the workaround.
49824
49825 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
49826
49827         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
49828         Reported by Derek Price.
49829         (Include): Add "timespec.h".
49830
49831         * modules/xnanosleep (Depends-on): Remove gethrxtime.
49832
49833 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
49834
49835         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
49836         to detect nanosleep bug.
49837
49838 2005-03-01  Bruno Haible  <bruno@clisp.org>
49839
49840         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
49841
49842 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
49843
49844         * modules/gethrxtime: New file.
49845         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
49846         (Depends-on): Add gethrxtime.
49847         (configure.ac): Add gl_XNANOSLEEP.
49848         (Makefile.am): Remove lib_SOURCES line.
49849
49850 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
49851
49852         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
49853         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
49854
49855 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
49856
49857         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
49858         * lib/timespec.h (gettime): Return void, since it always
49859         succeeds now.  All uses changed.
49860         * lib/gettime.c (gettime) Likewise.
49861         [HAVE_NANOTIME]: Prefer nanotime.
49862         Assume gettimeofday succeeds, as POSIX requires.
49863         Assime time () succeeds, since other code already does.
49864         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
49865         (timespec_subtract): Remove.
49866         (NANOSLEEP_BUG_WORKAROUND): New constant.
49867         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
49868         things considerably.  Use it only on GNU/Linux hosts, since the
49869         workaround shouldn't be needed elsewhere.
49870
49871 2005-02-24  Bruno Haible  <bruno@clisp.org>
49872
49873         * modules/gettext (Files): Add m4/glibc2.m4.
49874
49875 2005-02-24  Bruno Haible  <bruno@clisp.org>
49876
49877         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
49878         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
49879         * m4/progtest.m4:
49880         Update from GNU gettext 0.14.2.
49881         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
49882
49883 2005-02-24  Bruno Haible  <bruno@clisp.org>
49884
49885         * lib/localcharset.c: Update from GNU gettext 0.14.2.
49886         * lib/config.charset: Update from GNU gettext 0.14.2.
49887
49888 2005-02-24  Bruno Haible  <bruno@clisp.org>
49889
49890         * lib/gettext.h: Update from GNU gettext 0.14.2.
49891
49892 2005-02-23  Simon Josefsson  <jas@extundo.com>
49893
49894         * m4/iconvme.m4: New file.
49895
49896 2005-02-23  Jim Meyering  <jim@meyering.net>
49897
49898         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
49899         change.
49900         Thanks to Bruno Haible for catching it.
49901
49902 2005-02-22  Simon Josefsson  <jas@extundo.com>
49903
49904         * modules/iconvme: New file.
49905
49906         * MODULES.html.sh: Add iconvme.
49907
49908 2005-02-22  Simon Josefsson  <jas@extundo.com>
49909
49910         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
49911
49912 2005-02-22  Simon Josefsson  <jas@extundo.com>
49913
49914         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
49915
49916 2005-02-22  Jim Meyering  <jim@meyering.net>
49917
49918         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
49919         s/ifndef/ifdef/.
49920
49921 2005-02-20  Neil Conway  <neilc@samurai.com>
49922
49923         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
49924         returned by OSX/Darwin if the specified buffer is not large
49925         enough for the hostname.
49926
49927 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49928
49929         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
49930         pass it to _help, otherwise the latter coredumps trying to
49931         dereference state.root_argp.
49932
49933 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
49934
49935         * modules/chdir-long (Depends-on): Add memrchr.
49936         * modules/memrchr (Files): Add lib/memrchr.h.
49937         (Include): "memrchr.h".
49938
49939 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
49940
49941         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
49942
49943 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
49944
49945         * lib/memrchr.h: New file.
49946         * lib/chdir-long.c: Include it.
49947         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
49948         Don't bother including stddef.h.
49949
49950 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
49951
49952         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
49953         inclusion.
49954         Include <sys/types.h>, for dev_t.
49955         (ME_DUMMY, ME_REMOTE): Move from here....
49956         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
49957         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
49958         Dmitry V. Levin.
49959         Include mountlist.h first, to test the interface.
49960
49961 2005-01-29  Bruno Haible  <bruno@clisp.org>
49962
49963         * lib/progname.c (program_name): Initialize.
49964         Needed when linking statically on MacOS X.
49965
49966 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
49967
49968         Sync from coreutils.
49969         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
49970         (Depends-on): Add c-strtod.
49971         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
49972
49973 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
49974
49975         Sync from coreutils.
49976         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
49977
49978         Remove files that are specific to coreutils.
49979         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
49980
49981 2005-01-28  Bruno Haible  <bruno@clisp.org>
49982
49983         * modules/javacomp: New file.
49984         * MODULES.html.sh (Java): Add javacomp.
49985
49986 2005-01-28  Bruno Haible  <bruno@clisp.org>
49987
49988         * m4/javacomp.m4: New file, from GNU gettext.
49989
49990 2005-01-28  Bruno Haible  <bruno@clisp.org>
49991
49992         * lib/javacomp.sh.in: New file, from GNU gettext.
49993         * lib/javacomp.h: New file, from GNU gettext.
49994         * lib/javacomp.c: New file, from GNU gettext.
49995
49996 2005-01-26  Simon Josefsson  <jas@extundo.com>
49997
49998         * lib/gai_strerror.c: Use GPL in header.
49999
50000 2005-01-26  Bruno Haible  <bruno@clisp.org>
50001
50002         * modules/javaexec: New file.
50003         * MODULES.html.sh (Java): Add javaexec.
50004
50005 2005-01-26  Bruno Haible  <bruno@clisp.org>
50006
50007         * m4/javaexec.m4: New file, from GNU gettext.
50008
50009 2005-01-26  Bruno Haible  <bruno@clisp.org>
50010
50011         * lib/javaexec.sh.in: New file, from GNU gettext.
50012         * lib/javaexec.h: New file, from GNU gettext.
50013         * lib/javaexec.c: New file, from GNU gettext.
50014
50015 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50016
50017         * modules/lchown (Depends-on): Remove lchown.h
50018
50019 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50020
50021         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
50022         must be defined if the header file was not found, in order
50023         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
50024
50025 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50026
50027         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
50028         initializers for struct pentry_state.
50029         (__argp_error): Check return value of __asprintf
50030         (__argp_failure): Translate error message
50031
50032         * lib/argp-parse.c: Removed braces around the expansion of N_()
50033
50034 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
50035
50036         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
50037         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
50038         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
50039         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
50040         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
50041         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
50042         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
50043         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
50044         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
50045         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
50046         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
50047         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
50048         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
50049         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
50050         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
50051         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
50052         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
50053         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
50054         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
50055         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
50056         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
50057         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
50058         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
50059         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
50060         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
50061         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
50062         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
50063         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
50064         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
50065         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
50066         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
50067         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
50068         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
50069         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
50070         xstrtol.m4, xstrtoumax.m4, yesno.m4:
50071         Use an all-permissive copyright notice, recommended by RMS.
50072
50073 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
50074
50075         * modules/chdir-long (Depends-on): Remove mempcpy.
50076
50077 2005-01-21  Jim Meyering  <jim@meyering.net>
50078
50079         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
50080         same value as for Solaris 9.
50081
50082         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
50083         component length.  This included changing the parameter to be
50084         of type `char *' rather than `char const *'.
50085         * lib/chdir-long.h (chdir_long): Update prototype.
50086
50087         * lib/openat.c (fdopendir, fstatat): New functions.
50088         * lib/openat.h: Include headers required for use of DIR and struct
50089         stat.
50090         [AT_SYMLINK_NOFOLLOW]: Define.
50091         (fdopendir, fstatat): Add prototypes.
50092
50093 2005-01-21  Bruno Haible  <bruno@clisp.org>
50094
50095         * modules/classpath: New file.
50096         * MODULES.html.sh (Java): Add classpath.
50097
50098 2005-01-21  Bruno Haible  <bruno@clisp.org>
50099
50100         * lib/classpath.h: New file, from GNU gettext.
50101         * lib/classpath.c: New file, from GNU gettext.
50102
50103 2005-01-20  Simon Josefsson  <jas@extundo.com>
50104
50105         * modules/version-etc-fsf: New file.
50106
50107 2005-01-20  Simon Josefsson  <jas@extundo.com>
50108
50109         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
50110         * lib/version-etc.c: Remove version_etc_copyright.
50111         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
50112         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
50113
50114 2005-01-20  Simon Josefsson  <jas@extundo.com>
50115
50116         * lib/base64.h (isbase64): Add.
50117
50118         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
50119         using a unsigned prototype, don't inline.
50120         (base64_decode): Use it.
50121
50122 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
50123
50124         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
50125         it.
50126
50127 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
50128
50129         * lib/save-cwd.c (save_cwd): Remove code to support the case
50130         where fchdir is missing or flaky.
50131
50132 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
50133
50134         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
50135
50136 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
50137
50138         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
50139         AC_LIBSOURCES now does this.
50140         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
50141         with new ullong_max module.
50142
50143 2005-01-19  Bruno Haible  <bruno@clisp.org>
50144
50145         * modules/sh-quote: New file.
50146         * MODULES.html.sh (Executing programs): Add sh-quote.
50147
50148 2005-01-19  Bruno Haible  <bruno@clisp.org>
50149
50150         * lib/sh-quote.h: New file, from GNU gettext.
50151         * lib/sh-quote.c: New file, from GNU gettext.
50152
50153 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
50154
50155         Merge from coreutils.
50156         * m4/ullong_max.m4: New file.
50157         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
50158         (gl_MACROS): Assume localeconv exists.
50159
50160 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
50161
50162         Merge changes from coreutils, as described below in several
50163         changelogs dated today.
50164
50165         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
50166         (O_DIRECTORY): Remove; not needed here, since "." must be
50167         a directory.  All uses removed.
50168         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
50169         universal on Suns, and we also need to test for IRIX.
50170         Revamp code to use 'if' rather than '#if'.
50171         Avoid unnecessary comparison of cwd->desc to 0.
50172
50173         * lib/utimens.c (futimens): Robustify the previous patch, by checking
50174         for known valid error numbers rather than observed invalid ones.
50175
50176 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
50177
50178         * modules/ullong_max: New file.
50179
50180         * modules/chdir-long, modules/openat: New files.
50181         * modules/save-cwd (Depends-on): Depend on chdir-long.
50182         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
50183
50184 2005-01-18  Jim Meyering  <jim@meyering.net>
50185
50186         Merge from coreutils.
50187         * m4/chdir-long.m4, m4/openat.m4: New files.
50188         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
50189         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
50190         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
50191         is sane and DOES follow symlinks.  Besides, testing 20 different
50192         systems found no broken chown implementations.
50193         Prompted by a change in rsync's copy of this macro.
50194         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
50195
50196         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
50197
50198         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
50199         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
50200         NULL-means-set-to-current-time semantics.
50201         Remove temporary file immediately, rather than waiting
50202         for configure's at-exit trap code to do it.
50203
50204 2005-01-18  Jim Meyering  <jim@meyering.net>
50205
50206         * lib/version-etc.c (version_etc_copyright): Update copyright date.
50207
50208         * lib/utimens.c (futimens): Account for the fact that futimes
50209         can also fail with errno == ENOSYS or errno == ENOENT.
50210         Patch from Dmitry V. Levin.
50211
50212         Change the name of the robust chdir function from chdir to chdir_long.
50213         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
50214         (restore_cwd): Use chdir_long, not chdir.
50215         * lib/chdir-long.c: Renamed from chdir.c.
50216         * lib/chdir-long.h: Renamed from chdir.h.
50217         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
50218         Hurd.
50219
50220 2005-01-18  Bruno Haible  <bruno@clisp.org>
50221
50222         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
50223         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
50224         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
50225         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
50226         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
50227         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
50228         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
50229         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
50230         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
50231         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
50232         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
50233         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
50234         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
50235         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
50236         Use an all-permissive copyright notice, recommended by RMS.
50237
50238 2005-01-18  Bob Proulx  <bob@proulx.com>
50239
50240         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
50241         simplify offsetof() macro construct to avoid compile failure with
50242         native HP-UX 11.0 ANSI C compiler.
50243
50244 2005-01-17  Bruno Haible  <bruno@clisp.org>
50245
50246         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
50247         redundant because stpncpy.m4 takes care of it.
50248
50249 2005-01-17  Bruno Haible  <bruno@clisp.org>
50250
50251         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
50252
50253 2005-01-17  Bruno Haible  <bruno@clisp.org>
50254
50255         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
50256         used.
50257
50258 2005-01-17  Bruno Haible  <bruno@clisp.org>
50259
50260         * lib/fwriteerror.h (fwriteerror): Change specification to include
50261         fclose.
50262         * lib/fwriteerror.c: Include <stdbool.h>.
50263         (fwriteerror): At the end, close the file stream. Record whether
50264         stdout was already closed.
50265
50266 2005-01-17  Bruno Haible  <bruno@clisp.org>
50267
50268         * lib/execute.c (environ): Declare if needed.
50269         * lib/pipe.c (environ): Likewise.
50270         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
50271
50272 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50273
50274         * modules/argp: Depend on vsnprintf
50275
50276 2005-01-10  Jim Meyering  <jim@meyering.net>
50277
50278         * modules/closeout (Depends-on): Add atexit.
50279
50280 2005-01-06  Bruno Haible  <bruno@clisp.org>
50281
50282         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
50283
50284 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
50285
50286         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
50287         definitions to be after all include files, to avoid collisions.
50288         Problem reported by Bob Proulx.
50289
50290 2005-01-04  Jim Meyering  <jim@meyering.net>
50291
50292         Changes imported from coreutils.
50293         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
50294         as the mkstemp template, use a temporary directory and an
50295         8.3-friendly template to avoid trouble on systems like DJGPP.
50296         Reported by Juan M. Guerrero via Stepan Kasal.
50297         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
50298         close. Remove the temporary directory right away, rather than waiting
50299         for configure's at-exit trap code to do it.
50300         Suggestion from Stepan Kasal.
50301
50302 2005-01-01  Simon Josefsson  <jas@extundo.com>
50303
50304         * gnulib-tool: Print #include directives when --import'ing.
50305
50306 2004-12-28  Simon Josefsson  <jas@extundo.com>
50307
50308         * tests/test-base64.c: Include required header files.  Remove
50309         unused variables.
50310
50311 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
50312
50313         * modules/error (Depends-on): Remove gettext.
50314
50315 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
50316
50317         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
50318         not needed.  This removes a dependency on the gettext module.
50319         [defined _LIBC]: Do not include <libintl.h>; not needed.
50320
50321 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
50322
50323         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
50324         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
50325
50326 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
50327
50328         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
50329         HAVE_DECL_STRTOLD.
50330
50331 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
50332
50333         * modules/getdate (Depends-on): Remove alloca-opt.
50334
50335 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
50336
50337         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
50338
50339 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
50340
50341         * lib/argp-parse.c: Include <stddef.h>.
50342         (alignof, alignto): New macros.
50343         (parser_init): Don't assume that void * is aligned sufficiently
50344         for struct option.
50345
50346         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
50347         need to extend the stack.
50348         (YYINITDEPTH): New macro, so that the initial stack isn't overly
50349         large.
50350
50351 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50352
50353         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
50354
50355 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
50356
50357         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
50358         (2004-10-24) change.  Apparently this was a false alarm.
50359
50360         * modules/getdate: Depend on alloca-opt, not alloca.
50361
50362 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
50363
50364         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
50365         Remove now-obsolete comment about AIX.
50366         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
50367         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
50368         (YYMAXDEPTH): New macro.
50369
50370 2004-12-18  Simon Josefsson  <jas@extundo.com>
50371
50372         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
50373
50374 2004-12-18  Bruno Haible  <bruno@clisp.org>
50375
50376         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
50377
50378 2004-12-18  Bruno Haible  <bruno@clisp.org>
50379
50380         * lib/fatal-signal.c (fatal_signals): Make non-const.
50381         (init_fatal_signals): New function.
50382         (uninstall_handlers, install_handlers): Ignore signals that were set to
50383         SIG_IGN.
50384         (at_fatal_signal): Call init_fatal_signals.
50385         (init_fatal_signal_set): Likewise. Ignore signals that were set to
50386         SIG_IGN.
50387         Reported by Paul Eggert.
50388
50389 2004-12-18  Bruno Haible  <bruno@clisp.org>
50390
50391         * doc/alloca.texi: New file.
50392         * doc/alloca-opt.texi: New file.
50393
50394 2004-12-17  Jim Meyering  <jim@meyering.net>
50395
50396         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
50397         Otherwise, install-sh could exit with improper exit status when
50398         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
50399
50400 2004-12-16  Simon Josefsson  <jas@extundo.com>
50401
50402         * tests/test-base64.c: Add license.
50403
50404 2004-12-15  Stepan Kasal  <address@hidden>
50405
50406         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
50407
50408 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
50409
50410         * modules/getcwd (Files): Add m4/d-ino.m4.
50411         Suggested by Mark D. Baushke.
50412
50413 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
50414
50415         * lib/getdate.y (textint): New member "negative".
50416         (time_zone_hhmm): New function.
50417         Expect 14 shift-reduce conflicts, not 13.
50418         (o_colon_minutes): New rule.
50419         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
50420         (yylex): Set the "negative" member of signed numbers.
50421
50422 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
50423
50424         * doc/getdate.texi (Time of day items, Time zone items):
50425         Describe new formats +00:00, UTC+00:00.
50426
50427 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
50428
50429         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
50430         spurious "-l"s.  Problem reported by Stepan Kasal.
50431
50432 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
50433
50434         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
50435         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
50436
50437 2004-12-04  Simon Josefsson  <jas@extundo.com>
50438
50439         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
50440         Vandoorselaere <yoann@prelude-ids.org>.
50441
50442 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
50443
50444         Changes imported from coreutils.
50445         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
50446         exist.
50447         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
50448
50449 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
50450
50451         Changes imported from coreutils.
50452         * lib/hard-locale.c: Assume <locale.h> exists.
50453         Include "strdup.h".
50454         (GLIBC_VERSION): New macro.
50455         (hard_locale): Assume setlocale exists.
50456         Rewrite to avoid #ifdef.
50457         Use strdup rather than malloc + strcpy.
50458         * lib/human.c: Assume <locale.h> exists.
50459         (human_readable): Assume localeconv exists.
50460
50461 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
50462
50463         * modules/hard-locale (Depends-on): Add strdup.
50464
50465 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
50466
50467         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
50468         convert T2, not T.  (Imported from libc.)
50469
50470 2004-11-30  Simon Josefsson  <jas@extundo.com>
50471
50472         * modules/restrict (License): Change to LGPL.
50473
50474 2004-11-30  Simon Josefsson  <jas@extundo.com>
50475
50476         * m4/restrict.m4: Add copyright and copying conditions.
50477
50478 2004-11-30  Simon Josefsson  <jas@extundo.com>
50479
50480         * m4/base64.m4: New file.
50481
50482 2004-11-30  Simon Josefsson  <jas@extundo.com>
50483
50484         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
50485         base64.
50486
50487         * tests/test-base64.c: New file.
50488
50489         * modules/base64: New file.
50490
50491 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
50492
50493         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
50494         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
50495
50496         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
50497
50498 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
50499
50500         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
50501         (__getcwd.c): Don't restore errno; glibc doesn't.
50502         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
50503         first, falling back to our code only if its results look suspicious.
50504         Ensure that the resulting buffer is only as large as necessary.
50505
50506         * lib/readutmp.c: Include readutmp.h first.
50507         Include <errno.h>, since readutmp.h no longer does that.
50508         * lib/readutmp.h: Don't include <errno.h>,
50509         <sys/param.h>, <time.h>; not needed to establish interface.
50510         (errno): Remove decl.
50511         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
50512         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
50513         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
50514
50515 2004-11-28  Simon Josefsson  <jas@extundo.com>
50516
50517         * lib/base64.h, base64.c: New file.
50518
50519 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
50520
50521         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
50522
50523 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
50524
50525         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
50526         (Depends-on): Remove pathmax, same.  Add mempcpy.
50527         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
50528         (Makefile.am): Append getcwd.h to lib_SOURCES.
50529         (Include): Add getcwd.h.
50530         (Maintainer): Change from Jim Meyering to "all, glibc",
50531         since getdate now uses intended-for-glibc code.
50532         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
50533         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
50534
50535 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
50536
50537         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
50538         HP's ANSI C compiler.
50539         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
50540         Declaring int functions causes warnings on some modern systems and
50541         shouldn't be needed to compile on ancient ones.
50542         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
50543         defined.
50544
50545         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
50546         with the following changes.
50547         (__set_errno): Parenthesize properly.
50548         Include <stdbool.h>.
50549         (MIN, MAX, MATCHING_INO): New macros.
50550         (__getcwd): Define with prototype, not K&R form.
50551         Use heuristics to allocate default buffer on stack if possible.
50552         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
50553         behavior, and to avoid the PATH_MAX limit when computing
50554         ../../../../...
50555         Use MATCHING_INO to compare inode number to file.
50556         Check for arithmetic overflow in size calculations.
50557         Fix bug in reallocation of dot array that caused getcwd to fail
50558         on directories nested deeper than 75.
50559         Be more careful about saving errno on error.
50560         Do not use realloc; use only free+malloc, as this is a bit
50561         more flexible and avoids a needless copy operation.
50562         Do not inspect st_dev and st_ino for symbolic links; POSIX
50563         doesn't specify the latter.
50564         Check for closedir errors.
50565         Avoid needless casts.
50566         Use "#ifdef weak_alias" around weak_alias, to be like other
50567         glibc code.
50568         The following changes to getcwd.c have effect only when used in
50569         gnulib; they have no effect inside glibc proper.
50570         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
50571         as alloca isn't used.
50572         (alloca, __alloca): Likewise.
50573         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
50574         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
50575         unconditionally, as gnulib assumes C89 or better.
50576         Do not include <sys/param.h>.
50577         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
50578         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
50579         better.
50580         (NULL) [!defined NULL]: Remove; we assume C89 or better.
50581         Include <dirent.h> in a way that is compatible with modern Autoconf.
50582         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
50583         New macros, if not already defined.
50584         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
50585         Use "_LIBC", not "defined _LIBC", for consistency.
50586         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
50587         a mempcpy module.
50588         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
50589         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
50590         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
50591         credit only to Jim Meyering and adjust the copyright dates.
50592         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
50593         <stdlib.h>, <unistd.h>, "pathmax.h".
50594         Instead, include "xgetcwd.h" (first) and "getcwd.h".
50595         (INITIAL_BUFFER_SIZE): Remove.
50596         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
50597
50598 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
50599
50600         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
50601         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
50602         Use the _ONCE methods, for efficiency.
50603         Check for fcntl.h.  In test program, include <errno.h>
50604         and <fcntl.h> if available.  Remove old K&R cruft from
50605         test program.  Check for common errors in GNU/Linux,
50606         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
50607         don't do AC_LIBOBJ, as that's getcwd.m4's job.
50608         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
50609         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
50610         name accordingly.
50611         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
50612         accommodate new getcwd.c.
50613         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
50614         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
50615         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
50616         that's all we need now.
50617
50618 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50619
50620         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
50621         argp-parse.c depends on getopt internals, that means we should
50622         always use our getopt, to be on the safe side.
50623         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
50624         order not to spoil the result of an eventual previous invocation
50625         of gl_GETOPT_SUBSTITUTE.
50626
50627 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50628
50629         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
50630         redefinition warnings. To avoid them, include the defines
50631         in `#if !defined __need_getopt ... #endif'. The only place
50632         where __getopt_argv_const is used is in definitions
50633         of getopt_long and getopt_long_only below, which are as well
50634         protected by `#ifndef __need_getopt'.
50635         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
50636         __need_getopt after including <stdio.h> and <unistd.h> These
50637         headers might have defined it.
50638
50639 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
50640
50641         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
50642
50643 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
50644
50645         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
50646         (futimens): New function, which uses futimes if available.
50647         (futimens, utimens): Support timespec==NULL, with same semantics
50648         as utime and utimens.
50649         * lib/utimens.h (futimens): New decl.
50650
50651 2004-11-23  Jim Meyering  <jim@meyering.net>
50652
50653         * lib/getopt_.h: Remove trailing blanks.
50654
50655 2004-11-23  Jim Meyering  <jim@meyering.net>
50656
50657         * lib/__fpending.c: Add comment.
50658
50659 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
50660
50661         * modules/canonicalize (Depends-on): Add xreadlink.
50662         Problem reported by James Youngman.
50663
50664 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
50665
50666         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
50667         New macros.
50668         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
50669         optopt): Use them instead of invoking ## directly; otherwise, the
50670         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
50671
50672 2004-11-19  Bruno Haible  <bruno@clisp.org>
50673
50674         * lib/strtok_r.c: Move comments from here...
50675         * lib/strtok_r.h: ... to here.
50676
50677 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
50678
50679         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
50680         implementations that mishandle size_t overflow.
50681
50682 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
50683
50684         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
50685         might fail.  Problem reported by Yoann Vandoorselaere.
50686         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
50687         implementations that mishandle size_t overflow.
50688
50689 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50690
50691         * modules/canon-host (Depends-on): Add strdup.
50692
50693 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50694
50695         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
50696
50697 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50698
50699         * lib/canon-host.c: Include "strdup.h".
50700         (canon_host): Use getaddrinfo if available, so that IPv6 works.
50701         Use strdup instead of malloc/strcpy to duplicate strings.
50702
50703         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
50704         (human_space_before_unit): New constant.
50705         * lib/human.c (human_readable): Support it.
50706
50707         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
50708         (xgetcwd): Set errno correctly when failing.
50709         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
50710         the failure is actually due to a PATH_MAX problem.
50711
50712         Further getopt changes to make it more likely that glibc will
50713         buy the changes back.
50714         * lib/getopt.c (POSIXLY_CORRECT): New constant.
50715         (getopt): Use it, so to preserve glibc semantic
50716         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
50717         when compiling for libc.
50718         * lib/getopt_.h (__getopt_argv_const): Bring it back.
50719         (getopt_long, getopt_long_only): Use it.
50720
50721         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
50722         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
50723         (getopt): Argv is now char * const *, as per standard.
50724         (_getopt_internal_r, _getopt_internal): Argv is now char **,
50725         not char *__getopt_argv_const *.
50726         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
50727         _getopt_long_only_r): Likewise.
50728         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
50729         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
50730         _getopt_long_r, _getopt_long_only_r): Likewise.
50731         * lib/getopt_.h (__getopt_argv_const): Remove.
50732         (getopt): Argv is now char * const *, as per standard.
50733
50734         * lib/getdate.y (tORDINAL): New token.
50735         (day, relunit): Allow it for relative times.
50736         (relative_time_table): Use tORDINAL for ordinals.
50737
50738 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50739
50740         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
50741         Document that "second" isn't allowed as an ordinal number.
50742
50743 2004-11-16  Jim Meyering  <jim@meyering.net>
50744
50745         * modules/closeout (Depends-on): Add fpending.
50746
50747 2004-11-15  Jim Meyering  <jim@meyering.net>
50748
50749         * lib/closeout.c: Include "__fpending.h" once again.
50750         Include <stdbool.h>.
50751         (close_stdout): Don't fail just because stdout was closed initially,
50752         since some programs don't write to stdout in the normal course of
50753         operation (other than --version and --help), and we don't want this
50754         function to make e.g. `touch file >&-' fail.
50755         But do fail if it was closed and someone has tried to write to it.
50756         E.g., `printf foo >&-' must fail.
50757
50758 2004-11-13  Jim Meyering  <jim@meyering.net>
50759
50760         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
50761
50762 2004-11-12  Simon Josefsson  <jas@extundo.com>
50763
50764         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
50765         small doc fix is still pending.
50766
50767 2004-11-11  Simon Josefsson  <jas@extundo.com>
50768
50769         * modules/strtok_r: New file.
50770
50771         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50772         strtok_r.
50773
50774 2004-11-11  Simon Josefsson  <jas@extundo.com>
50775
50776         * m4/strtok_r.m4: New file.
50777
50778         * m4/getopt.m4: Replace opterr.
50779
50780 2004-11-11  Simon Josefsson  <jas@extundo.com>
50781
50782         * lib/strtok_r.h, strtok_r.c: New file.
50783
50784 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
50785
50786         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
50787         of replacing opterr, getopt, etc.  This should handle the
50788         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
50789
50790 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
50791
50792         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
50793         we can stop lying to compilers about the constness of argv when we
50794         are compiled outside glibc.
50795         (getopt, getopt_long, getopt_long_only): Use it.
50796         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
50797         _getopt_internal, getopt): Likewise.
50798         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
50799         _getopt_long_only_r): Likewise.
50800         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
50801         _getopt_long_r, _getopt_long_only_r): Likewise.
50802
50803         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
50804         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
50805         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
50806         the other external symbols.
50807         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
50808         declaration, since the above renaming now works around collisions.
50809
50810 2004-11-11  Jim Meyering  <jim@meyering.net>
50811
50812         * lib/linebreak.c: Remove trailing blanks.
50813         * lib/alloca_.h: Likewise.
50814         * lib/acosl.c: Likewise.
50815         * lib/euidaccess.c: Likewise.
50816         * lib/allocsa.h: Likewise.
50817
50818 2004-11-10  Simon Josefsson  <jas@extundo.com>
50819
50820         * m4/getaddrinfo.m4: New file.
50821
50822 2004-11-10  Simon Josefsson  <jas@extundo.com>
50823
50824         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
50825
50826 2004-11-10  Simon Josefsson  <jas@extundo.com>
50827
50828         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50829         getaddrinfo.
50830
50831         * modules/getaddrinfo: New file.
50832
50833 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
50834
50835         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
50836
50837 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
50838
50839         * lib/mktime.c (SHR): New macro, which is a portable
50840         substitute for >> that should work even on Crays.
50841         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
50842         Problem reported by Mark D. Baushke in
50843         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
50844         * lib/getdate.y (SHR): Likewise.
50845         (tm_diff): Use it.
50846         * lib/strftime.c (SHR): Likewise.
50847         (tm_diff): Use it.
50848         * lib/quotearg.c (struct quoting_options): Use unsigned int for
50849         quote_these_too, so that right shifts are well defined.  All uses
50850         changed.
50851
50852 2004-11-10  Jim Meyering  <jim@meyering.net>
50853
50854         Ensure that no close failure goes unreported.
50855         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
50856         return early when it seems there's nothing to flush.
50857         Don't include __fpending.h.
50858
50859 2004-11-10  Jim Meyering  <jim@meyering.net>
50860
50861         * modules/closeout (Depends-on): Remove fpending.
50862
50863 2004-11-10  Jim Meyering  <jim@meyering.net>
50864
50865         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
50866
50867 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
50868
50869         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
50870         gl_FUNC_STRFTIME.
50871         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
50872         and AC_REQUIRE when possible, to avoid duplicate checks.
50873         Check for <wchar.h>.
50874
50875 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
50876
50877         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
50878
50879 2004-11-09  Bruno Haible  <bruno@clisp.org>
50880
50881         * m4/sockpfaf.m4: New file.
50882
50883 2004-11-05  Bruno Haible  <bruno@clisp.org>
50884
50885         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
50886         Reported by Mark D. Baushke <mdb@cvshome.org>.
50887
50888 2004-11-04  Bruno Haible  <bruno@clisp.org>
50889
50890         2004-09-11  Bruno Haible  <bruno@clisp.org>
50891                 * allocsa.valgrind: New file.
50892         2004-02-06  Bruno Haible  <bruno@clisp.org>
50893                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
50894                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
50895                 Reported by Christopher Seip <chris.seip@hp.com>.
50896
50897 2004-11-04  Bruno Haible  <bruno@clisp.org>
50898
50899         * modules/allocsa (Files): Add lib/allocsa.valgrind.
50900         (Makefile.am): Distribute it.
50901
50902 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
50903
50904         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
50905         with errno == ERANGE if the buffer is too small.
50906         Problem reported by Mark D. Baushke.
50907
50908 2004-11-03  Albert Chin  <china@thewrittenword.com>
50909             Paul Eggert  <eggert@cs.ucla.edu>
50910
50911         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
50912         equivalent, substitute $ac_type for equivalent type rather than
50913         blindly using uint32_t *always* which won't work if uint32_t is not
50914         available.  Define _UINT32_T to work around typedef of uint32_t if
50915         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
50916         2.5.1.
50917
50918 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
50919
50920         * m4/jm-macros.m4: Sync from coreutils.
50921         (gl_MACROS): Check for mbrlen, for pathchk.
50922         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
50923
50924 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
50925
50926         * lib/xreadlink.c (MAXSIZE): New macro.
50927         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
50928         size does not exceed MAXSIZE.  Avoid cast.
50929         As suggested by Mark D. Baushke in
50930         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
50931         if readlink fails with buffer size just under MAXSIZE, try again
50932         with MAXSIZE.
50933
50934 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
50935
50936         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
50937
50938 2004-11-02  Derek R. Price  <derek@ximbiot.com>
50939         and  Paul Eggert  <eggert@cs.ucla.edu>
50940
50941         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
50942         (get_date): Overparenthesize to avoid GCC warning.
50943
50944 2004-11-02  Bruno Haible  <bruno@clisp.org>
50945
50946         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
50947         returns void.
50948
50949 2004-11-02  Bruno Haible  <bruno@clisp.org>
50950
50951         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
50952         function returns void.
50953
50954 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
50955
50956         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
50957         fflush_unlocked, flockfile, funlockfile, funlockfile,
50958         fputs_unlocked, putc_unlocked.
50959
50960 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
50961
50962         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
50963         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
50964         already declared.
50965
50966 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
50967
50968         * modules/getdate (Files): Add doc/getdate.texi.
50969         (Depends-on): Add setenv, xalloc.
50970
50971 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
50972
50973         * lib/getdate.y: Add support for TZ="foo" within a date string.
50974         Fix some bugs near time_t boundaries.  Reject dates with
50975         out-of-range components, e.g., "Sept 31".
50976         Include <stdlib.h>, "setenv.h", "xalloc.h".
50977         (ISDIGIT_LOCALE): Remove; unused.
50978         Note that the TZ and time functions used here are not reentrant.
50979         (mktime_ok, get_tz): New functions.
50980         (TZBUFSIZE): New constant.
50981         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
50982         This requires that we sometimes generate our own TZ="XXX..." setting.
50983
50984 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
50985
50986         * doc/getdate.texi: New file, from coreutils with modifications for
50987         the new TZ parsing.
50988
50989 2004-10-27  Derek R. Price  <derek@ximbiot.com>
50990
50991         * lib/mktime.c (not_equal_tm): Remove redundant check.
50992
50993 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50994
50995         * modules/regex (lib_SOURCES): Add regex.c.
50996         Reported by James Youngman in
50997         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
50998
50999 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51000
51001         * lib/getdate.y: Use Bison 1.875 features, and some minor
51002         code cleanups.  This change does not affect semantics.
51003         Don't include <stdlib.h>; no longer needed.
51004         Don't include unlocked-io.h; only the "#if TEST" code uses
51005         stdio, and performance isn't crucial there.
51006         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
51007         Bison 1.875 features as described below.
51008         All uses of "PC." replaced by "pc->".
51009         (YYSTYPE): Add a forward declaration.
51010         (yylex, yyerror): Use full prototypes in forward decls.
51011         Use "%pure-parser" rather than obsolescent "%pure_parser".
51012         Use %parse-param and %lex-param instead of obsolescent
51013         YYPARSE_PARAM and YYLEX_PARAM.
51014         (meridian_table, month_and_day_table, time_units_table,
51015         relative_time_table, time_zone_table, military_table,
51016         lookup_zone, lookup_word, get_date):
51017         Use NULL instead of 0 where appropriate.
51018         (to_hour): Avoid abort (), to avoid a dependency on
51019         stdlib.h.
51020         (yyerror, yylex): Now accepts parser_control * arg.
51021         (main) [TEST]: Use '\0' rather than 0 for char.
51022
51023 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51024
51025         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
51026
51027 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51028
51029         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
51030         It's now the caller's responsibility to handle the case where
51031         !HAVE_GETPAGESIZE && !defined getpagesize.
51032
51033         * lib/mktime.c (leapyear): Arg is long int, not int.
51034
51035 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
51036
51037         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
51038
51039 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51040
51041         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
51042         missing.  Problem reported by James Youngman.
51043
51044 2004-10-16  Simon Josefsson  <jas@extundo.com>
51045
51046         * gnulib-tool: Fix comments.  Fix parse problem.
51047         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
51048
51049 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
51050
51051         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
51052         implementation of getopt_long.  Problem reported by Alexander Taler in:
51053         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
51054
51055 2004-10-15  Bruno Haible  <bruno@clisp.org>
51056
51057         * gnulib-tool: Untabify. Initialize supplied_libname.
51058         (func_usage): More homogenous output.
51059         (func_modules_transitive_closure, func_modules_to_filelist,
51060         func_emit_lib_Makefile_am): New functions.
51061         (func_import): New function, extracted from big case statement. Use
51062         func_get_license, func_modules_transitive_closure,
51063         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
51064         opt_lgpl. Don't use test -a, as it's not portable.
51065         (func_create_testdir): Use func_modules_transitive_closure,
51066         func_modules_to_filelist, func_emit_lib_Makefile_am.
51067
51068 2004-10-15  Bruno Haible  <bruno@clisp.org>
51069
51070         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
51071
51072 2004-10-15  Bruno Haible  <bruno@clisp.org>
51073
51074         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
51075         the portions belonging to each module.
51076         Suggested by Derek Robert Price <derek@ximbiot.com>.
51077
51078 2004-10-12  Simon Josefsson  <jas@extundo.com>
51079
51080         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
51081         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
51082         to real functions.
51083
51084 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51085
51086         * modules/vsnprintf: New file.
51087
51088 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51089
51090         * m4/vsnprintf.m4: New file.
51091
51092 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51093
51094         * lib/vsnprintf.h: New file.
51095         * lib/vsnprintf.c: New file.
51096
51097 2004-10-11  Bruno Haible  <bruno@clisp.org>
51098
51099         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
51100         vsnprintf.
51101
51102 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
51103
51104         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
51105
51106 2004-10-07  Bruno Haible  <bruno@clisp.org>
51107
51108         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
51109         fits into the provided buffer.
51110
51111 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
51112
51113         * lib/diacrit.c, diacrit.h: Add GPL notice.
51114
51115         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
51116         notice.
51117         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
51118         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
51119         This avoids a potential constant-folding bug.
51120
51121 2004-10-05  Bruno Haible  <bruno@clisp.org>
51122
51123         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
51124         for the declaration of strsep.
51125
51126 2004-10-05  Bruno Haible  <bruno@clisp.org>
51127
51128         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
51129
51130 2004-10-04  Simon Josefsson  <jas@extundo.com>
51131
51132         * modules/memmem: New file.
51133         * tests/test-memmem.c: New file.
51134         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
51135
51136 2004-10-04  Simon Josefsson  <jas@extundo.com>
51137
51138         * m4/memmem.m4: New file.
51139
51140 2004-10-04  Simon Josefsson  <jas@extundo.com>
51141
51142         * lib/memmem.h: New file.
51143         * lib/memmem.c: New file, taken from glibc.
51144
51145 2004-10-04  Simon Josefsson  <jas@extundo.com>
51146
51147         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
51148         '#ifdef USE_UNLOCKED_IO'.
51149
51150 2004-10-04  Simon Josefsson  <jas@extundo.com>
51151
51152         * config/srclist.txt: Add memmem from glibc.
51153
51154 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
51155
51156         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
51157
51158         * modules/argmatch, modules/argp, modules/closeout, modules/error,
51159         modules/exclude, modules/getdate, modules/getline,
51160         modules/getndelim2, modules/getpass, modules/getpass-gnu,
51161         modules/getusershell, modules/linebuffer, modules/md5,
51162         modules/mountlist, modules/posixtm, modules/readtokens,
51163         modules/readutmp, modules/regex, modules/sha1,
51164         modules/version-etc, modules/yesno:
51165         Remove dependency on unlocked-io.
51166
51167 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
51168
51169         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
51170
51171         * m4/unlocked-io.m4: Add copyright notice.
51172         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
51173
51174 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
51175
51176         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
51177         * lib/xmalloc.c (xmemdup): Likewise.
51178         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
51179         XFREE): Remove these long-obsolescent macros.
51180         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
51181         * lib/xstrdup.c: Remove.
51182
51183         * lib/regex.c (re_comp): Cast gettext return value to char *,
51184         Problem reported by Martin Neitzel via Mark D. Baushke.
51185
51186 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
51187
51188         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
51189         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
51190         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
51191         regex.c, sha1.c, version-etc.c, yesno.c:
51192         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
51193         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
51194         the includer's responsibility.
51195
51196         Sync from coreutils.
51197
51198         * lib/modechange.c (mode_compile): Don't decrement a pointer that
51199         points to the start of a string, as the C Standard says the
51200         resulting behavior is undefined.
51201
51202         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
51203         simple -> simple_backups, numbered_existing ->
51204         numbered_existing_backups, numbered -> numbered_backups
51205         to avoid shadowing problems.  All uses changed.
51206         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
51207         * lib/backupfile.c (check_extension, numbered_backup):
51208         Rename locals to avoid shadowing 'basename'.
51209         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
51210         once.
51211
51212         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
51213         * lib/.cvsignore: Add getopt.h.
51214
51215 2004-10-04  Bruno Haible  <bruno@clisp.org>
51216
51217         * modules/README: New file.
51218         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
51219         not a module.
51220
51221 2004-10-02  Jim Meyering  <jim@meyering.net>
51222
51223         * lib/dirfd.h, getpagesize.h: Add copyright notice.
51224
51225 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51226
51227         * modules/strsep: New file.
51228
51229 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51230
51231         * m4/strsep.m4: New file.
51232
51233 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51234
51235         * lib/strsep.h: New file.
51236         * lib/strsep.c: New file.
51237
51238 2004-10-01  Simon Josefsson  <jas@extundo.com>
51239
51240         * lib/snprintf.c (snprintf): Handle size==0.
51241
51242 2004-10-01  Simon Josefsson  <jas@extundo.com>
51243             Bruno Haible  <bruno@clisp.org>
51244
51245         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
51246         (snprintf): Declare 'args'.
51247
51248 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
51249
51250         * lib/snprintf.c: Remove comments as to why each header is needed.
51251
51252 2004-10-01  Bruno Haible  <bruno@clisp.org>
51253
51254         * MODULES.html.sh: Add strsep.
51255
51256 2004-09-30  Simon Josefsson  <jas@extundo.com>
51257
51258         * modules/snprintf: New file.
51259
51260 2004-09-30  Simon Josefsson  <jas@extundo.com>
51261
51262         * m4/snprintf.m4: New file.
51263
51264 2004-09-30  Simon Josefsson  <jas@extundo.com>
51265
51266         * lib/snprintf.h, lib/snprintf.c: New files.
51267
51268 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51269
51270         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
51271         (hol_entry_help): Never translate an empty string.
51272         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
51273         * lib/argp.h (OPTION_NO_TRANS): New option.
51274
51275 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
51276
51277         * modules/argp (Maintainer): Replace Simon Josefsson
51278         by Sergey Poznyakoff.
51279
51280 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
51281
51282         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
51283         changes merged back into glibc.
51284
51285 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
51286
51287         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
51288
51289 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
51290
51291         * lib/xvasprintf.c: Include xalloc.h.
51292         (xvasprintf): Use xalloc_die, not xmalloc_die.
51293
51294 2004-09-29  Bruno Haible  <bruno@clisp.org>
51295
51296         * modules/alloca-opt: New file, derived from modules/alloca.
51297         * modules/allocsa: Depend on alloca-opt instead of alloca.
51298         * modules/setenv: Likewise.
51299         * modules/vasnprintf: Likewise.
51300         * MODULES.html.sh: Add alloca-opt.
51301
51302 2004-09-28  Simon Josefsson  <jas@extundo.com>
51303
51304         * gnulib-tool: New parameter --lgpl, to asseert that modules are
51305         LGPL, and to replace license template from GPL to LGPL.
51306
51307 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
51308
51309         * modules/dummy: Change license to LGPL.
51310
51311 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
51312
51313         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
51314
51315 2004-09-24  Simon Josefsson  <jas@extundo.com>
51316
51317         * modules/minmax (License): Change from GPL to LGPL.
51318
51319 2004-09-23  Simon Josefsson  <jas@extundo.com>
51320
51321         * gnulib-tool (--import): Typo.
51322
51323 2004-09-23  Simon Josefsson  <jas@extundo.com>
51324
51325         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
51326
51327 2004-09-22  Bruno Haible  <bruno@clisp.org>
51328
51329         * modules/*: Add 'License' field.
51330         * gnulib-tool: Accept --extract-license option.
51331         (func_get_license): New function.
51332
51333 2004-09-21  Bruno Haible  <bruno@clisp.org>
51334
51335         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
51336         Reported by Simon Josefsson.
51337
51338 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
51339
51340         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
51341         gl_AC_TYPE_LONG_LONG.
51342
51343 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
51344
51345         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
51346
51347 2004-09-18  Simon Josefsson  <jas@extundo.com>
51348         and  Paul Eggert  <eggert@cs.ucla.edu>
51349
51350         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
51351         calls with autoreconf.  Define GL_LIB.
51352
51353 2004-09-14  Karl Berry  <karl@gnu.org>
51354
51355         * config/srclist.txt: unsync setenv.c, sigh.
51356
51357 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
51358
51359         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
51360         Problem reported by Bruno Haible in:
51361         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
51362
51363 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
51364
51365         * config/srclist.txt: Comment out argp-pvh.c.
51366
51367 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
51368
51369         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
51370         in case some system header has #define'd it.  Problem reported by
51371         Soeren D. Schulze in
51372         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
51373
51374 2004-09-09  Karl Berry  <karl@gnu.org>
51375
51376         * regex.[ch]: delete from the root.  These were supposed to be
51377                 synced with emacs cvs, but this has not happened for about
51378                 a year, and anyway nothing else uses emacs regex.[ch].
51379                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
51380                 lib/regex[.ch] is untouched.
51381
51382 2004-09-09  Bruno Haible  <bruno@clisp.org>
51383
51384         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
51385
51386 2004-09-09  Bruno Haible  <bruno@clisp.org>
51387
51388         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
51389         modifications.
51390         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
51391
51392 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
51393
51394         * modules/xvasprintf: New file.
51395         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
51396
51397 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
51398
51399         * lib/xvasprintf.h: New file.
51400         * lib/xvasprintf.c: New file.
51401         * lib/xasprintf.c: New file.
51402
51403 2004-09-08  Bruno Haible  <bruno@clisp.org>
51404
51405         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
51406
51407 2004-09-08  Bruno Haible  <bruno@clisp.org>
51408
51409         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
51410         length is > INT_MAX.
51411         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
51412         more.
51413
51414 2004-09-08  Bruno Haible  <bruno@clisp.org>
51415
51416         * lib/stdint_.h: New file, taken from GNU clisp.
51417
51418 2004-09-08  Bruno Haible  <bruno@clisp.org>
51419             Oskar Liljeblad  <oskar@osk.mine.nu>
51420
51421         * modules/stdint: New file.
51422         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
51423
51424 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51425
51426         Import from coreutils.
51427         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
51428         strings on unbounded length.  alloca's performance benefits aren't
51429         that important here.
51430         (V_STRDUP): Remove.
51431         (parse_with_separator): New function, with most of the internals
51432         of the old parse_user_spec.  Allow user to omit both user and group,
51433         for compatibility with FreeBSD.
51434         Clone only the user name, not the entire spec.
51435         Do not set *uid, *gid unless entirely successful.
51436         Avoid memory leak in some failing cases.
51437         Fix regression for USER.GROUP reported by Dmitry V. Levin in
51438         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
51439         (parse_user_spec): Rewrite to use parse_with_separator.
51440
51441 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51442
51443         * modules/userspec: Don't depend on alloca.
51444
51445 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51446
51447         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
51448
51449 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51450
51451         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
51452         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
51453         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
51454
51455 2004-08-16  Simon Josefsson  <jas@extundo.com>
51456
51457         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
51458         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
51459         Add --dry-run for --import.
51460         Let user provided command line parameters override configure.ac
51461         settings.
51462
51463 2004-08-12  Simon Josefsson  <jas@extundo.com>
51464
51465         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
51466         as discussed with Paul Eggert in threads rooted at
51467         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
51468         and
51469         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
51470         Before, the test was empty, and relied on ELIDE_CODE in source
51471         code.)
51472         (gl_PREREQ_GETOPT): New macro.
51473         (gl_GETOPT): Use them.
51474
51475 2004-08-12  Simon Josefsson  <jas@extundo.com>
51476
51477         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
51478         * lib/getopt_.h: Renamed from getopt.h.
51479
51480 2004-08-12  Simon Josefsson  <jas@extundo.com>
51481
51482         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
51483         Change default library name from libfoo to libgnu.
51484         Now, if you have a configure.ac that says:
51485                 gl_SOURCE_BASE(gl)
51486                 gl_M4_BASE(gl/m4)
51487                 gl_MODULES(error getopt etcetera)
51488                 gl_INIT
51489         you can import all you need by running:
51490                 ../gnulib/gnulib-tool --import
51491
51492         * modules/getopt (Files): Rename getopt.h to getopt_.h.
51493         (Makefile.am): Rewrite, use logic from argz.
51494         (Include): Use <getopt.h> instead of "getopt.h".
51495
51496 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
51497
51498         * modules/argp (Files): Add m4/unlocked-io.m4.
51499         (Depends-on): Add extensions.
51500
51501 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
51502
51503         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
51504         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
51505         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
51506         Check for program_invocation_name, program_invocation_short_name,
51507         flockfile, funlockfile, features.h, _getopt_long_only_r.
51508
51509 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
51510
51511         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
51512         its complicated substitute.
51513         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
51514         and program_invocation_name.
51515         (__argp_basename) [!_LIBC]: Remove; the only use was
51516         replaced by its body.
51517         (__argp_short_program_name): Change condition from
51518         !defined __argp_short_program_name to
51519         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
51520         to match argp-namefrob.h.
51521         (__argp_failure): Don't assume strerror_r returns char *.
51522         * lib/argp-parse.c (N_): Define unconditionally.
51523         (argp_default_options): Fill out initializers with 0 to avoid
51524         gcc warnings.
51525
51526 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
51527
51528         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
51529         getopt1.c.
51530
51531 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
51532
51533         Merge from coreutils.
51534
51535         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
51536
51537         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
51538         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
51539
51540 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
51541
51542         Merge from coreutils.
51543
51544         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
51545         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
51546         for Reliant Unix 5.43.
51547
51548         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
51549         (union fooround): Use uintmax_t, not long int.
51550         The rest is a merge from libc:
51551         [defined _LIBC]: Include <shlib-compat.h>.
51552         (_obstack) [defined _LIBC]: Remove after 2.3.4.
51553
51554         * lib/settime.c (settime): Recode to avoid warning with
51555         Sun Forte C 6U2.
51556
51557         * lib/strverscmp.c: Convert to UTF-8.
51558
51559 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
51560
51561         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
51562         m4/uintmax_t.m4.
51563
51564 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51565
51566         * modules/xalloc-die: New file.
51567         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
51568
51569         * modules/md5 (Files): Add m4/uint32_t.m4.
51570         * modules/sha1: Renamed from modules/sha.
51571         (Files):
51572         Rename lib/sha.h to lib/sha1.h.
51573         Rename lib/sha.c to lib/sha1.c.
51574         Rename m4/sha.m4 to m4/sha1.m4.
51575         (lib_SOURCES): Likewise.
51576         (configure.ac): Rename gl_SHA to gl_SHA1.
51577         (Include): sha.h -> sha1.h.
51578
51579 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51580
51581         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
51582         * m4/sha1.m4: Renamed from sha.m4.
51583         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
51584
51585 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51586
51587         * lib/obstack.h (obstack_empty_p):
51588         Don't assume that chunk->contents is suitably aligned.
51589         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
51590         Likewise. Problem reported by Benno in
51591         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
51592
51593         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
51594         readable.  This could be improved further but it'd take some work.
51595
51596 2004-08-08  Simon Josefsson  <jas@extundo.com>
51597
51598         * modules/xgethostname (Depends-on): Remove exit and error (not
51599         used).
51600
51601         * modules/getpass-gnu: Add getpass.h.
51602         (Depends-on): Add stdbool.
51603         * modules/getpass: Add getpass.h.
51604
51605 2004-08-08  Simon Josefsson  <jas@extundo.com>
51606
51607         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
51608         Check getpass declaration.
51609
51610 2004-08-08  Simon Josefsson  <jas@extundo.com>
51611
51612         * lib/xgethostname.c: Don't include error.h (not used).
51613
51614         * lib/getpass.h: Add.
51615         * lib/getpass.c: Include getpass.h first.
51616
51617 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
51618
51619         * lib/xalloc-die.c: New file.
51620         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
51621         All uses removed.
51622         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
51623         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
51624         xalloc-die.c.
51625         (_, N_, xalloc_die): Move to xalloc-die.c.
51626         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
51627         so that we needn't mess with xalloc_msg_memory_exhausted.
51628
51629         * lib/sha1.h: Renamed from sha.h.
51630         (SHA1_H): Renamed from _SHA_H.
51631         (sha1_ctx): Renamed from sha_ctx.
51632         (sha1_init_ctx): Renamed from sha_init_ctx.
51633         (sha1_process_block): Renamed from sha_process_block.
51634         (sha1_process_bytes): Renamed from sha_process_bytes.
51635         (sha1_finish_ctx): Renamed from sha_finish_ctx.
51636         (sha1_read_ctx): Renamed from sha_read_ctx.
51637         (sha1_stream): Renamed from sha_stream.
51638         (sha1_buffer): Renamed from sha_buffer.
51639         * lib/sha1.c: Likewise; renamed from sha.c.
51640         Do not include <sys/types.h>.
51641         Include <stddef.h> rather than <stdlib.h>.
51642
51643 2004-08-08  Bruno Haible  <bruno@clisp.org>
51644
51645         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
51646         FILESYSTEM_PREFIX_LEN.
51647         * lib/progreloc.c: Likewise.
51648         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
51649
51650 2004-08-06  Simon Josefsson  <jas@extundo.com>
51651
51652         * modules/progname (Depends-on): Don't depend on stdbool.
51653
51654 2004-08-06  Simon Josefsson  <jas@extundo.com>
51655
51656         * modules/getsubopt: New file.
51657         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51658         getsubopt.
51659
51660 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
51661
51662         More merge from coreutils.
51663
51664         * m4/utimens.m4, m4/utimecmp.m4: New files.
51665         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
51666         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
51667         prereq.m4, sha.m4: Import changes from coreutils.
51668
51669 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
51670
51671         More merge from coreutils.
51672         * modules/raise, modules/readtokens0, modules/utimens:
51673         * modules/utimecmp, module/xnanosleep: New files.
51674         * modules/strftime: Add lib/strftime.h.
51675         Change include from <time.h> to "strftime.h".
51676         * modules/yesno: Add lib/yesno.h.
51677         * modules/backupfile: Remove lib/addext.c.
51678         * modules/euidaccess: Add stat-macros.h.
51679         * modules/canonicalize, modules/euidaccess,
51680         modules/filemode, modules/lchown, modules/makepath,
51681         modules/rmdir, modules/stat: Likewise.
51682
51683 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
51684
51685         Merge from tar.
51686         * lib/argp-help.c (make_hol, hol_append): Don't assume that
51687         SIZE_MAX is a valid preprocessor constant.
51688         (__argp_basename): Change from "#ifndef _LIBC"
51689         to "#ifndef __argp_short_program_name", so that
51690         we don't compile these functions for tar.
51691
51692         More merges from coreutils.
51693         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
51694         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
51695         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
51696         * lib/addext.c: Remove; no longer needed.
51697         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
51698         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
51699         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
51700         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
51701         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
51702         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
51703         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
51704         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
51705         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
51706         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
51707         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
51708         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
51709         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
51710         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
51711         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
51712         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
51713         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
51714         Import changes from coreutils.
51715
51716 2004-08-05  Simon Josefsson  <jas@extundo.com>
51717
51718         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
51719
51720 2004-08-05  Simon Josefsson  <jas@extundo.com>
51721
51722         * m4/getsubopt.m4: New file.
51723
51724 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
51725
51726         Merge from coreutils.
51727
51728         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
51729         * m4/getcwd-path-max.m4: New files.
51730
51731         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
51732         FILESYSTEM_PREFIX_LEN ->
51733         FILE_SYSTEM_PREFIX_LEN.
51734         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
51735         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
51736         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
51737         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
51738
51739         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
51740         prerequisite modules now handle the DOS stuff.
51741         Don't check for unistd.h.
51742
51743 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
51744
51745         Merge from coreutils.
51746
51747         * lib/.gdb-history: Remove; this doesn't belong here.
51748
51749         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
51750         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
51751         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
51752         * lib/getcwd.c: New files.
51753
51754         * lib/dirname.h: Include <stdbool.h>.
51755         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
51756         for consistency with POSIX terminology.  All uses changed.
51757         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
51758         (strip_trailing_slashes): Use bool for booleans.
51759         * lib/stripslash.c (strip_trailing_slashes): Likewise.
51760
51761         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
51762         sometimes returns a positive errno value even when it succeeds.
51763         (print_errno_message) [!LIBC]: Fall back on strerror if
51764         __strerror_r fails.
51765
51766         * lib/path-concat.c (mempcpy): Don't define if a system header defines
51767         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
51768         (longest_relative_suffix): New function.
51769         (path_concat): Use it.  Assume first argument is not NULL.
51770         Port to DOS.  Omit redundant separators.
51771         Report an error instead of returning NULL.
51772         Use mempcpy instead of memcpy.
51773         (xpath_concat): Remove: not declared or used.
51774
51775         * lib/same.h: Include <stdbool.h>
51776         (same_name): Return bool, not int.
51777         * lib/same.c (same_name): Likewise.
51778         (errno): Don't declare; we assume C89 or better now.
51779
51780         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
51781         if not already defined.
51782
51783         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
51784         * lib/dup-safer.c (errno): Likewise.
51785
51786 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
51787
51788         Merge from coreutils.
51789         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
51790         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
51791         * modules/path-concat: Don't depend on strdup.
51792
51793 2004-08-03  Simon Josefsson  <jas@extundo.com>
51794
51795         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
51796         * lib/progname.h: Don't include stdbool.h.
51797
51798 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
51799
51800         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
51801         * MODULES.html.sh (func_all_modules): Remove fatal.
51802
51803 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
51804
51805         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
51806
51807 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
51808
51809         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
51810         working.
51811
51812 2004-08-02  Simon Josefsson  <jas@extundo.com>
51813
51814         * lib/getsubopt.h: New file, with comments from Bruno Haible.
51815         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
51816         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
51817
51818 2004-08-01  Simon Josefsson  <jas@extundo.com>
51819
51820         * lib/xgetdomainname.c: Include stdlib.h, for free().
51821
51822 2004-07-19  Bruno Haible  <bruno@clisp.org>
51823
51824         * MODULES.html.sh (func_all_modules): Add dummy.
51825
51826 2004-07-16  Simon Josefsson  <jas@extundo.com>
51827
51828         * modules/dummy: New file.
51829
51830 2004-07-16  Simon Josefsson  <jas@extundo.com>
51831
51832         * lib/dummy.c: New file.
51833
51834 2004-07-16  Bruno Haible  <bruno@clisp.org>
51835
51836         * lib/backupfile.h: Add extern "C" for C++.
51837         * lib/closeout.h: Likewise.
51838         * lib/copy-file.h: Likewise.
51839         * lib/findprog.h: Likewise.
51840         * lib/full-write.h: Likewise.
51841         * lib/pathname.h: Likewise.
51842         * lib/progname.h: Likewise.
51843         * lib/stpcpy.h: Likewise.
51844         * lib/stpncpy.h: Likewise.
51845         * lib/strcase.h: Likewise.
51846         * lib/strstr.h: Likewise.
51847         * lib/xalloc.h: Likewise.
51848
51849         * lib/mbswidth.h: Add extern "C" for C++.
51850         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
51851
51852 2004-07-13  Robert Millan  <robertmh@gnu.org>
51853
51854         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
51855
51856 2004-07-09  Simon Josefsson  <jas@extundo.com>
51857
51858         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
51859         failed without this.)
51860
51861 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
51862
51863         * modules/chown (Files): Add lib/fchown-stub.c, since
51864         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
51865
51866 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
51867
51868         * lib/fchown-stub.c: New file.
51869
51870 2004-06-24  Jim Meyering  <jim@meyering.net>
51871
51872         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
51873
51874 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51875
51876         * modules/argz: Omit "#include".
51877
51878         * MODULES.html.sh (func_all_modules): Add calloc, to match
51879         2004-06-01 addition of calloc module.
51880
51881 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51882
51883         * m4/argz.m4: New file, which is autoupdated from libtool.
51884
51885 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51886
51887         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
51888         libtool.
51889
51890 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51891
51892         * config/srclist-update: Don't insist on "USA." before the
51893         close-comment, as libtool omits the period and puts the */ on a
51894         separate line.
51895         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
51896         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
51897
51898 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
51899
51900         * modules/argz: New file.
51901         * MODULES.html.sh (func_all_modules): Add argz.
51902
51903 2004-06-12  Jim Meyering  <jim@meyering.net>
51904         and  Paul Eggert  <eggert@cs.ucla.edu>
51905
51906         * modules/hash (Files): Add lib/xalloc.h.
51907         * modules/pipe (Depends-on): Add wait-process.
51908         * modules/stat (Depends-on): Add xalloc.
51909         * modules/userspec (Files): Add lib/userspec.h.
51910         * modules/xstrto
51911
51912         Upgrade from gettext-0.13.
51913         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
51914         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
51915         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
51916
51917 2004-06-10  Jim Meyering  <jim@meyering.net>
51918
51919         * lib/calloc.c: New file.
51920
51921 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
51922
51923         * lib/getdate.y (yylex): Allow space between sign and number.
51924         Problem reported by Dan Jacobson.
51925
51926 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
51927
51928         Merge from coreutils CVS.
51929
51930         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
51931         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
51932         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
51933         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
51934         xstrtol.m4: Fix copyright date and/or serial number.
51935
51936         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
51937         See if we need an fchown replacement.
51938         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
51939         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
51940         and use the replacement function if we detect either defect.
51941
51942         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
51943         gl_UTIMECMP.
51944
51945 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
51946         and  Jim Meyering  <jim@meyering.net>
51947
51948         Merge from coreutils CVS.
51949
51950         * lib/stat-macros.h: New file, with contents from file-type.h
51951         and coreutils' system.h.
51952         * lib/file-type.c: Include "stat-macros.h".
51953         * lib/file-type.h (file_type): Move all macro definitions to new file,
51954         stat-macros.h.
51955
51956         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
51957         Wrap old code with this conditional.
51958         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
51959         function that does not dereference symlinks.
51960         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
51961
51962         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
51963         dependency problems.
51964         (xreadlink): Accept new arg SIZE, for efficiency.
51965         All decls and uses changed.
51966         * lib/xreadlink.h: Include <stddef.h>, for size_t.
51967
51968         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
51969         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
51970
51971         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
51972         sysexits.h.
51973
51974 2004-06-01  Jim Meyering  <jim@meyering.net>
51975
51976         * m4/calloc.m4: New file.
51977
51978 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
51979
51980         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
51981         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
51982         Also, fix a typo in a diagnostic.
51983
51984 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
51985
51986         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
51987         or AC_FUNC_REALLOC.
51988
51989 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
51990
51991         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
51992         macros to be defined.
51993         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
51994         the allocator returns NULL because the requested size is zero.
51995
51996 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51997
51998         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
51999         var.  Add comment explaining why libc still defines it.  This
52000         merges the following patch from glibc:
52001         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
52002
52003 2004-05-20  Andreas Schwab  <schwab@suse.de>
52004
52005         * m4/free.m4: Replace free if it not known to work, not the other
52006         way round.
52007
52008 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
52009
52010         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
52011         present in glibc since revision 1.1 of this file.
52012         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
52013         obstack_alignment_mask, obstack_alloc, obstack_base,
52014         obstack_blank, obstack_blank_fast, obstack_chunk_size,
52015         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
52016         obstack_grow0, obstack_init, obstack_int_grow,
52017         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
52018         obstack_next_free, obstack_object_size, obstack_ptr_grow,
52019         obstack_ptr_grow_fast, obstack_room): Remove declarations of
52020         nonexistent functions.
52021
52022 2004-05-18  Karl Berry  <karl@gnu.org>
52023
52024         * config/srclist.txt: break link for vasnprintf.c.
52025
52026 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
52027
52028         Port obstack to the AS/400, where pointers are 16 bytes wide and
52029         you cannot cast an integer to a valid pointer.  This patch is
52030         currently waiting to be integrated into glibc; see
52031         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
52032
52033         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
52034         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
52035         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
52036         (struct obstack): temp member is now a union of a pointer and
52037         an integer, instead of an integer.  All integer uses changed.
52038         This does not affect the physical layout of struct obstack,
52039         except on hosts (like the AS/400) where the size or alignment of
52040         void * is greater than that of ptrdiff_t.
52041         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
52042         __STDC__)]: Store temporary in pointer member of union, not
52043         integer member.
52044         * lib/obstack.c: Include <stddef.h>, for offsetof.
52045         (struct fooalign): Remove; it doesn't need a name.
52046         (union fooround): Change double to long double, and add void *.
52047         (DEFAULT_ALIGNMENT): Use offsetof to compute.
52048         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
52049         not a macro.  Hence the values are always int; so remove all
52050         casts-to-int in uses.
52051
52052 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
52053
52054         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
52055         we can get this patch merged into glibc.
52056
52057 2004-05-17  Derek R. Price  <derek@ximbiot.com>
52058             Paul Eggert  <eggert@cs.ucla.edu>
52059
52060         * m4/argp: Depend on alloca.
52061
52062 2004-05-17  Derek R. Price  <derek@ximbiot.com>
52063             Paul Eggert  <eggert@cs.ucla.edu>
52064
52065         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
52066         freecoding.
52067
52068 2004-05-17  Bruno Haible  <bruno@clisp.org>
52069
52070         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
52071         precision that consists of a '.' followed by an empty digit string.
52072         Patch by Tor Lillqvist <tml@iki.fi>.
52073
52074 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52075
52076         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
52077         for backward compatibility with older code.  We need our own
52078         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
52079         it under some other name, and our alloca.h will define it.
52080
52081 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52082             Derek Price  <derek@ximbiot.com>
52083
52084         * lib/alloca.c: Include <alloca.h>, to get our interface.
52085         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
52086         include <alloca.h> first.  Use C89 prototype for alloca; this
52087         requires including <stddef.h> for size_t.  Use extern "C" if C++.
52088         Use #elif for simplicity, since we can assume C89 now.
52089         Don't try to source the system alloca.h since it will not be found
52090         and to prevent recursively including its replacement.
52091         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
52092         * lib/regex.c: Likewise.
52093
52094 2004-05-16  Derek Price  <derek@ximbiot.com>
52095             Paul Eggert  <eggert@cs.ucla.edu>
52096
52097         getline cleanup.  This changes the getndelim2 API: both order of
52098         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
52099         no delimiter).
52100
52101         * lib/getline.c: Don't include stddef.h or stdio.h, since our
52102         interface does that.
52103         (getline): Always use getdelim, so that we don't have two
52104         copies of this code.
52105         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
52106         if available.
52107         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
52108         (GETNDELIM2_MAXIMUM): New macro.
52109         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
52110         instead of the old practice of delim2==0.  All callers changed.
52111         Return -1 on overflow, instead of returning junk.
52112         Do not set *linesize unless allocation succeeds.
52113         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
52114         that we include sys/types.h.
52115         * lib/getnline.h: Likewise.
52116         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
52117         (getndelim2): Reorder arguments.
52118         * lib/getnline.c (getnline, getndelim):
52119         Don't discard the NMAX argument.
52120         (getnline): Invoke getndelim, to avoid code duplication.
52121         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
52122         of (size_t) -1 by callers of the getnline family.
52123
52124 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52125
52126         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
52127         Check for gettimeofday.
52128         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
52129         Check for settimeofday, stime.
52130
52131 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52132
52133         * lib/nanosleep.c (suspended): Change its type from int to
52134         sig_atomic_t volatile.
52135         (first_call): Make it private to rpl_nanosleep, and have it
52136         be zero initially as that's a bit faster.
52137         (my_usleep): Round up fractional times instead of truncating them,
52138         as this is the usual meaning for 'sleep'.
52139
52140         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
52141         doesn't work.
52142         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
52143         (ENOSYS): Define if not defined.
52144         (settime): Fall back on stime if it exists and settimeofday fails.
52145         But don't bother with fallbacks if a method fails with errno == EPERM.
52146
52147 2004-05-11  Jim Meyering  <jim@meyering.net>
52148
52149         Prior to this change, the save_cwd caller required read access to the
52150         current directory on most systems (ones with the fchdir function).
52151
52152         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
52153         fails, try write-only, and finally, resort to using xgetcwd.
52154
52155 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
52156
52157         * lib/obstack.c, obstack.h: Import changes from libc.
52158
52159 2004-04-28  Bruno Haible  <bruno@clisp.org>
52160
52161         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
52162         also implicitly appends .exe to executables.
52163         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
52164         accepts Windows pathnames.
52165         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
52166         Treat Cygwin like Windows, since it now accepts Windows pathnames.
52167         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
52168         Treat Cygwin like Windows, since it now accepts Windows pathnames.
52169         Reported by Derek Robert Price <derek@ximbiot.com>.
52170
52171 2004-04-21  Karl Berry  <karl@gnu.org>
52172
52173         * config/srclist.txt (localcharset.c): break sync.
52174
52175 2004-04-20  Paul Eggert  <eggert@twinsun.com>
52176
52177         * m4/host-os.m4: Add a copyright notice.
52178
52179 2004-04-20  Jim Meyering  <jim@meyering.net>
52180
52181         Change UTILS_ to gl_ in AC_DEFINE'd names.
52182         Change utils_- and jm_-prefixed variables, too.
52183         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
52184         UTILS_FUNC_MKDIR_TRAILING_SLASH.
52185         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
52186
52187         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
52188         Don't emit trailing blanks.
52189         Also rename jm_-prefixed variables to have gl_ prefix.
52190
52191         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
52192         Also rename jm_-prefixed variables to have gl_ prefix.
52193
52194         * m4/jm-macros.m4: Reflect the renamings.
52195         * m4/prereq.m4: Likewise.
52196
52197 2004-04-20  Jim Meyering  <jim@meyering.net>
52198
52199         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
52200         memory.
52201
52202 2004-04-20  Jim Meyering  <jim@meyering.net>
52203             Bruno Haible  <bruno@clisp.org>
52204
52205         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
52206         memory when realloc fails.
52207
52208 2004-04-19  Jim Meyering  <jim@meyering.net>
52209
52210         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
52211         now that readutmp.c may call `free (0)'.
52212
52213 2004-04-19  Bruno Haible  <bruno@clisp.org>
52214
52215         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
52216         * m4/inttypes_h.m4: Likewise.
52217         * m4/stdint_h.m4: Likewise.
52218         * m4/intmax_t.m4: Likewise.
52219         * m4/uintmax_t.m4: Likewise.
52220
52221 2004-04-18  Jim Meyering  <jim@meyering.net>
52222
52223         * m4/prereq.m4: Don't forbid jm_ prefix.
52224
52225         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
52226         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
52227         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
52228         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
52229         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
52230         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
52231         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
52232         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
52233         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
52234         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
52235         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
52236         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
52237         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
52238         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
52239         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
52240         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
52241         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
52242         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
52243         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
52244
52245 2004-04-18  Jim Meyering  <jim@meyering.net>
52246
52247         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
52248         failure, don't leak memory and do call END_UTMP_ENT.
52249
52250 2004-04-16  Jim Meyering  <jim@meyering.net>
52251
52252         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
52253         coreutils' stat program.
52254         (gl_PREREQ): Don't require jm_PREREQ_STAT.
52255
52256 2004-04-11  Paul Eggert  <eggert@twinsun.com>
52257
52258         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
52259         C89.
52260         (CHAR_BIT): Remove, since we assume C89.
52261         Include <stdint.h> if available, as per current Autoconf CVS advice.
52262
52263 2004-03-31  Jim Meyering  <jim@meyering.net>
52264
52265         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
52266         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
52267         * m4/xalloc.m4: Likewise.
52268
52269 2004-03-30  Paul Eggert  <eggert@twinsun.com>
52270
52271         Merge from coreutils.
52272
52273         * m4/inttostr.m4: New file.
52274         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
52275         Require AM_STDBOOL_H and gl_TIMESPEC instead.
52276         Require gl_CLOCK_TIME.
52277         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
52278
52279 2004-03-30  Paul Eggert  <eggert@twinsun.com>
52280
52281         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
52282         not bool, to be more consistent with Unix conventions.
52283         Suggested by Bruno Haible.
52284
52285         Merge from coreutils.
52286
52287         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
52288         * lib/umaxtostr.c: New files.
52289
52290         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
52291         the usual <time.h> dance.
52292         (get_date): Change signature to support fractional time stamps.
52293         All callers changed.
52294         * lib/getdate.y: Include "getdate.h" first, as we can now
52295         assume C89 and don't need to worry about 'const'.
52296         Similarly, include "unlocked-io.h" near start, not in middle.
52297         Include <limits.h>.
52298         (textint.value): Use long int rather than int.
52299         (textint.digits): Use size_t rather than int.
52300         (BILLION, LOG10_BILLION): New constants.
52301         (parser_control): New member rel_ns.  Members day_ordinal,
52302         time_zone, month, day, hour, minutes, rel_year, rel_month,
52303         rel_day, rel_hour, rel_minutes, rel_seconds
52304         are now long int, not int.  Member seconds is now struct timespec,
52305         not int.  New member timespec_seen.  Members dates_seen, days_seen,
52306         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
52307         not int.
52308         (%union.intval): Now long int, not int.
52309         New member timespec.
52310         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
52311         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
52312         (spec): Now is a timespec or an item list.
52313         (timespec, items): New nonterminals.
52314         (time, rel, relunit, number, get_date):
52315         Add support for fractional seconds.
52316         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
52317         (gmtime, localtime, mktime): Remove decls; not needed with C89.
52318         (to_hour): First arg is now long int, not int.
52319         (to_year): Returns long int, not int.
52320         Don't treat year -70 like 70.
52321         (tm_diff): Returns long int, not int.
52322         (lookup_word): Use bool instead of int when appropriate.
52323         (yylex): Use size_t for count, not int.
52324         Detect overflow when parsing large integer constants.
52325         Add support for fractions.
52326         (get_date): Make pointers 'const' if possible.
52327         Use more-portable code to detect integer overflow.
52328         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
52329         Don't use ctime; it's not reliable if the year has >4 digits.
52330
52331         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
52332         This is for compatibility with BSD.
52333
52334         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
52335         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
52336         From coreutils' system.h.
52337
52338         * lib/userspec.c: Don't include "posixver.h".
52339         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
52340         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
52341         compatible extension.  Simplify code by removing a boolean int
52342         that was always nonzero if a string was nonnull.
52343
52344 2004-03-30  Jim Meyering  <jim@meyering.net>
52345
52346         Merge from coreutils.
52347
52348         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
52349         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
52350         on some systems one must include <grp.h> before it.
52351         Reported by Christian Krackowizer.
52352
52353 2004-03-30  Jim Meyering  <jim@meyering.net>
52354
52355         Merge from coreutils.
52356
52357         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
52358
52359         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
52360         an empty input stream.
52361
52362         * lib/readtokens.c: Include <stdbool.h>.
52363         (readtoken): Use `size_t' rather than int/long.
52364         All callers adjusted.
52365         Use `bool' rather than `int' where appropriate.
52366         Use memset rather than an explicit loop.
52367         Use x2nrealloc rather than xrealloc.
52368         Allow the use of `\0' as a delimiter.
52369         (readtokens): Likewise.
52370         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
52371
52372 2004-03-30  Jim Meyering  <jim@meyering.net>
52373
52374         * m4/realloc.m4: Remove file, since now it does no more than
52375         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
52376         the `configure.ac' section of module/realloc.
52377         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
52378
52379 2004-03-30  Bruno Haible  <bruno@clisp.org>
52380
52381         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
52382         nonnull.
52383
52384 2004-03-29  Paul Eggert  <eggert@twinsun.com>
52385
52386         Merge changes to getloadavg.c from coreutils and Emacs.
52387
52388         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
52389         Define to an expression, not to the empty string.
52390         Include cloexec.h and xalloc.h.
52391         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
52392         Use set_cloexec_flag rather than rolling our own.
52393         * lib/cloexec.c, lib/cloexec.h: New files.
52394
52395 2004-03-29  Paul Eggert  <eggert@twinsun.com>
52396
52397         * m4/cloexec.m4: New file.
52398
52399 2004-03-18  Paul Eggert  <eggert@twinsun.com>
52400
52401         * lib/getopt.h: Sync with libc CVS.
52402
52403 2004-03-18  Paul Eggert  <eggert@twinsun.com>
52404             Bruno Haible  <bruno@clisp.org>
52405
52406         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
52407         mbswidth.
52408
52409 2004-03-18  Paul Eggert  <eggert@twinsun.com>
52410             Bruno Haible  <bruno@clisp.org>
52411
52412         * lib/mbswidth.h: Include <wchar.h> only if
52413         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
52414         <wchar.h>.
52415         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
52416
52417 2004-03-09  Paul Eggert  <eggert@twinsun.com>
52418
52419         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
52420         Sync with libc CVS.
52421         * lib/getopt_int.h: New file, also synced from libc.
52422
52423 2004-03-09  Paul Eggert  <eggert@twinsun.com>
52424
52425         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
52426         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
52427         Bring back getopt.c, getopt.h, getopt1.c.
52428
52429 2004-03-07  Paul Eggert  <eggert@twinsun.com>
52430
52431         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
52432         All uses changed.  Check for sa_sigaction member; this fixes
52433         a bug first reported by Jason Andrade in
52434         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
52435
52436 2004-03-07  Paul Eggert  <eggert@twinsun.com>
52437
52438         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
52439         '#if' expressions.  Unlike the code it replaces, it does not
52440         depend on (defined _SC_PAGESIZE).  However, it does depend on
52441         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
52442         first reported by Jason Andrade in
52443         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
52444
52445 2004-02-25  Simon Josefsson  <jas@extundo.com>
52446
52447         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
52448
52449 2004-02-25  Simon Josefsson  <jas@extundo.com>
52450
52451         * lib/strdup.h: New file.
52452         * lib/strdup.c: Include it.
52453         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
52454         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
52455
52456 2004-02-23  Karl Berry  <karl@gnu.org>
52457
52458         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
52459         (from fencepost.gnu.org:/gd/gnuorg).
52460
52461 2004-02-23  Karl Berry  <karl@gnu.org>
52462
52463         * config/srclistvars.sh (GNUORG) [karl]: redefine.
52464         * config/srclist.txt: add maintain/standards documents.
52465
52466 2004-02-18  Bruno Haible  <bruno@clisp.org>
52467
52468         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
52469         Reported by Derek Robert Price <derek@ximbiot.com>.
52470
52471 2004-02-16  Karl Berry  <karl@gnu.org>
52472
52473         * config/mkinstalldirs, install-sh: update from automake.
52474
52475 2004-02-06  Karl Berry  <karl@gnu.org>
52476
52477         * m4/po.m4: update from gettext 0.14.1.
52478
52479 2004-02-06  Karl Berry  <karl@gnu.org>
52480
52481         * lib/config.charset: update from gettext 0.14.1.
52482
52483 2004-02-05  Paul Eggert  <eggert@twinsun.com>
52484
52485         Add comments and code, prompted by suggestions from Bruno Haible
52486         for sh-quote.
52487         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
52488         describing the enum quoting_style values.
52489         * lib/quotearg.c (quotearg_alloc): New function.
52490         (quotearg_buffer_restyled): Treat lone { and } as special.
52491         Treat = as special.  Work around bug with older shells
52492         that "see" a '\' that is really the 2nd byte of a multibyte char.
52493         Quote empty string with shell_quoting_style.
52494
52495 2004-02-03  Bruno Haible  <bruno@clisp.org>
52496
52497         * m4/pipe.m4: New file, from GNU gettext.
52498
52499 2004-02-03  Bruno Haible  <bruno@clisp.org>
52500
52501         * lib/pipe.h: New file, from GNU gettext.
52502         * lib/pipe.c: New file, from GNU gettext.
52503
52504 2004-01-27  Bruno Haible  <bruno@clisp.org>
52505
52506         * m4/execute.m4: New file, from GNU gettext.
52507
52508 2004-01-27  Bruno Haible  <bruno@clisp.org>
52509
52510         * lib/execute.h: New file, from GNU gettext.
52511         * lib/execute.c: New file, from GNU gettext.
52512         * lib/w32spawn.h: New file, from GNU gettext.
52513
52514 2004-01-24  Paul Eggert  <eggert@twinsun.com>
52515
52516         Merge from diffutils.
52517
52518         * lib/file-type.c (file_type): Add typed memory objects.
52519         * lib/file-type.h (S_TYPEISTMO): New macro.
52520
52521         * lib/c-stack.h (c_stack_action): Remove argv argument.
52522         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
52523         (die): Don't calculate message unless segv_action returns.
52524         (get_stack_location, min_address_from_argv, max_address_from_argv,
52525         volatile stack_base, volatile_stack_size): Remove.
52526         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
52527         that every segmentation violation is a stack overflow.  (Ouch!)
52528         See Debian bug 136249 (still outstanding) for more info about why
52529         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
52530
52531 2004-01-24  Paul Eggert  <eggert@twinsun.com>
52532
52533         Exit-status fix from coreutils.
52534
52535         Use exit_failure consistently in place of EXIT_FAILURE,
52536         so that program exit statuses are consistent on failure.
52537
52538         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
52539         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
52540         * lib/argmatch.h: Comment fix to match the above.
52541         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
52542         Now a macro referring to exit_failure, instead of a separate
52543         variable.  Include "exitfail.h" to get it.
52544         * lib/xstrtol.h: Include "exitfail.h".
52545         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
52546
52547         * lib/long-options.c (parse_long_options): Use prototype
52548         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
52549         for clarity.
52550
52551 2004-01-21  Jim Meyering  <jim@meyering.net>
52552
52553         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
52554         so as not to conflict with a different-sized __mktime_internal
52555         function in GNU libc.
52556         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
52557         Problem building statically-linked `ls' reported by Michael Brunnbauer.
52558
52559 2004-01-20  Karl Berry  <karl@gnu.org>
52560
52561         * config/config.guess: update from config.
52562
52563         * config/srclistvars.sh: GNUWWWLICENSES for karl.
52564
52565 2004-01-20  Bruno Haible  <bruno@clisp.org>
52566
52567         Safer stack allocation.
52568         * lib/setenv.c: Include allocsa.h.
52569         (alloca): Remove fallback definition.
52570         (freea): Remove macro.
52571         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
52572         instead of freea.
52573
52574 2004-01-20  Bruno Haible  <bruno@clisp.org>
52575
52576         * m4/eealloc.m4: New file, from GNU gettext.
52577
52578 2004-01-20  Bruno Haible  <bruno@clisp.org>
52579
52580         * m4/allocsa.m4: New file, from GNU gettext.
52581
52582 2004-01-20  Bruno Haible  <bruno@clisp.org>
52583
52584         * lib/xallocsa.h: New file, from GNU gettext.
52585         * lib/xallocsa.c: New file, from GNU gettext.
52586
52587 2004-01-20  Bruno Haible  <bruno@clisp.org>
52588
52589         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
52590
52591 2004-01-20  Bruno Haible  <bruno@clisp.org>
52592
52593         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
52594         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
52595         specially.
52596
52597 2004-01-20  Bruno Haible  <bruno@clisp.org>
52598
52599         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
52600         patch.
52601
52602 2004-01-20  Bruno Haible  <bruno@clisp.org>
52603
52604         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
52605
52606 2004-01-20  Bruno Haible  <bruno@clisp.org>
52607
52608         * lib/eealloc.h: New file.
52609
52610 2004-01-20  Bruno Haible  <bruno@clisp.org>
52611
52612         * lib/binary-io.h: Avoid warnings on Cygwin.
52613
52614 2004-01-20  Bruno Haible  <bruno@clisp.org>
52615
52616         * lib/allocsa.h: New file, from GNU gettext.
52617         * lib/allocsa.c: New file, from GNU gettext.
52618
52619 2004-01-18  Karl Berry  <karl@gnu.org>
52620
52621         * doc/gpl.texi, doc/lgpl.texi: new files.
52622
52623 2004-01-18  Karl Berry  <karl@gnu.org>
52624
52625         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
52626         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
52627
52628 2004-01-15  Paul Eggert  <eggert@twinsun.com>
52629
52630         Merge from coreutils.
52631
52632         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
52633         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
52634         (gl_DEFAULT_POSIX2_VERSION): Move
52635         the documentation from 'configure' into 'config.hin',
52636         so that 'configure --help' isn't burdened by it and
52637         we don't have to worry about its formatting there.
52638         Reword the documentation so that it's more succinct
52639         and can be run together into a single paragraph.
52640         * m4/same.m4 (gl_SAME): Check for pathconf.
52641
52642 2004-01-15  Paul Eggert  <eggert@twinsun.com>
52643
52644         Merge from coreutils.
52645
52646         * lib/posixver.c: Include posixver.h.
52647
52648         * lib/same.c: Include <stdbool.h>, <limits.h>.
52649         (_POSIX_NAME_MAX): Define if not defined.
52650         (MIN): New macro.
52651         (same_name): If file names are silently truncated, report
52652         that the file names are the same if they are the same after
52653         the silent truncation.
52654
52655         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
52656         conversion function.
52657         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
52658         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
52659         longer needed.
52660
52661 2004-01-15  Jim Meyering  <jim@meyering.net>
52662
52663         Merge from coreutils.
52664
52665         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
52666         if no library is required.
52667         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
52668         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
52669         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
52670         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
52671         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
52672         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
52673         value, $ac_cv_search_crypt, if it's "none required".
52674         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
52675         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
52676         not gl_FUNC_GETLOADAVG.
52677         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
52678         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
52679
52680 2004-01-15  Jim Meyering  <jim@meyering.net>
52681
52682         Merge from coreutils.
52683
52684         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
52685         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
52686         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
52687
52688         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
52689         optional configure-time default.
52690
52691         * lib/version-etc.c (version_etc_copyright): Update copyright date.
52692
52693         * lib/xreadlink.c (xreadlink): Correct outdated comment.
52694
52695 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
52696
52697         Merge from coreutils.
52698
52699         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
52700         value, $ac_cv_search_nanosleep, if it's "none required".
52701
52702 2004-01-14  Paul Eggert  <eggert@twinsun.com>
52703
52704         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
52705         with like-named macro in fnmatch.c.
52706         (EXT): Use an internal constant instead.
52707
52708         Merge fnmatch patches from glibc.
52709         * lib/fnmatch.c (mbsinit): Remove define.
52710         Add libc_hidden_ver (__fnmatch, fnmatch).
52711         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
52712         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
52713
52714 2004-01-14  Karl Berry  <karl@gnu.org>
52715
52716         * config/install-sh: update from automake.
52717
52718 2004-01-13  Karl Berry  <karl@gnu.org>
52719
52720         * config/install-sh: update from automake.
52721
52722 2004-01-09  Karl Berry  <karl@gnu.org>
52723
52724         * config/install-sh: update from automake.
52725
52726 2004-01-05  Karl Berry  <karl@gnu.org>
52727
52728         * config/config.{sub,guess}: update from config.
52729
52730 2003-12-31  Karl Berry  <karl@gnu.org>
52731
52732         * config/depcomp: update from automake.
52733
52734 2003-12-14  Karl Berry  <karl@gnu.org>
52735
52736         * lib/config.charset: update from gettext-runtime.
52737
52738 2003-12-03  Paul Eggert  <eggert@twinsun.com>
52739
52740         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
52741         Bug reported by Alfred M. Szmidt.
52742
52743 2003-12-03  Bruno Haible  <bruno@clisp.org>
52744
52745         * m4/gettext.m4: Upgrade from gettext-0.13.
52746         * m4/po.m4: Upgrade from gettext-0.13.
52747         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
52748         * m4/intmax.m4: New file, from gettext-0.13.
52749         * m4/printf-posix.m4: New file, from gettext-0.13.
52750
52751 2003-11-29  Karl Berry  <karl@gnu.org>
52752
52753         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
52754
52755 2003-11-25  Paul Eggert  <eggert@twinsun.com>
52756             Bruno Haible  <bruno@clisp.org>
52757
52758         * lib/printf-parse.h: Don't include sys/types.h.
52759         (ARG_NONE): New macro.
52760         (char_directive): Change type of *arg_index fields to size_t.
52761         * lib/printf-parse.c: Don't include sys/types.h.
52762         (SSIZE_MAX): Remove macro.
52763         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
52764         Remove unnecessary overflow check.
52765         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
52766         fields.
52767
52768 2003-11-25  Bruno Haible  <bruno@clisp.org>
52769
52770         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
52771
52772 2003-11-25  Bruno Haible  <bruno@clisp.org>
52773
52774         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
52775         gt_TYPE_SSIZE_T.
52776
52777 2003-11-24  Paul Eggert  <eggert@twinsun.com>
52778
52779         * modules/alloca: Remove dependency on xalloc.
52780
52781 2003-11-24  Paul Eggert  <eggert@twinsun.com>
52782
52783         * lib/alloca.c: Remove dependency on xalloc module.
52784         (xalloc_die): Remove.
52785         (memory_full) [!defined emacs]: New macro.
52786         [!defined emacs]: Don't include xalloc.h.
52787         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
52788         address arithmetic overflows.  Change datatypes a bit to avoid
52789         unnecessary casts.
52790
52791 2003-11-22  Jim Meyering  <jim@meyering.net>
52792
52793         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
52794         s/size/size_t/.
52795
52796 2003-11-21  Karl Berry  <karl@gnu.org>
52797
52798         * config/config.{sub,guess}: update from config.
52799
52800 2003-11-18  Karl Berry  <karl@gnu.org>
52801
52802         * config/config.{sub,guess}: update from config.
52803
52804         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
52805
52806 2003-11-17  Paul Eggert  <eggert@twinsun.com>
52807
52808         * README: Mention that S+T cannot overflow if S is the size of
52809         an existing object and T is sufficiently small.
52810
52811 2003-11-17  Jim Meyering  <jim@meyering.net>
52812
52813         On systems without utime and without a utimes function capable of
52814         dealing with a NULL struct utimbuf* argument, this utime replacement
52815         could -- in unusual circumstances -- leak a file descriptor.
52816         * lib/utime.c: Include <unistd.h> and <errno.h>.
52817         (utime_null): Be sure to close `fd' and to preserve errno.
52818         Reported by Geoff Collyer via Arnold Robbins.
52819
52820 2003-11-17  Bruno Haible  <bruno@clisp.org>
52821
52822         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
52823         (Depends-on): Add xsize.
52824
52825 2003-11-17  Bruno Haible  <bruno@clisp.org>
52826
52827         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
52828
52829 2003-11-17  Bruno Haible  <bruno@clisp.org>
52830
52831         * lib/vasnprintf.c (alloca): Remove fallback definition.
52832         (freea): Remove definition.
52833         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
52834         Reported by Paul Eggert.
52835
52836 2003-11-16  Paul Eggert  <eggert@twinsun.com>
52837             Bruno Haible  <bruno@clisp.org>
52838
52839         Protect against address arithmetic overflow.
52840         * lib/printf-args.h: Include stddef.h.
52841         (arguments): Change type of field 'count' to size_t.
52842         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
52843         'unsigned int' where appropriate.
52844         * lib/printf-parse.h: Include sys/types.h.
52845         (char_directive): Change type of *arg_index fields to ssize_t.
52846         (char_directives): Change type of fields 'count', max_*_length to
52847         size_t.
52848         * lib/printf-parse.c: Include sys/types.h and xsize.h.
52849         (SSIZE_MAX): Define fallback value.
52850         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
52851         instead of 'int' where appropriate. Check a_allocated, d_allocated
52852         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
52853         * lib/vasnprintf.c: Include xsize.h.
52854         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
52855         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
52856         overflow. Avoid wraparound when converting a width or precision from
52857         decimal to binary.
52858
52859 2003-11-16  Bruno Haible  <bruno@clisp.org>
52860
52861         Update from GNU gettext.
52862         * lib/printf-parse.c: Generalize to it can be compiled for wide
52863         strings.
52864         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
52865         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
52866         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
52867         SNPRINTF): New macros.
52868         Don't include <alloca.h> if the file is used inside libintl.
52869         (local_wcslen): New function, for Solaris 2.5.1.
52870         (VASNPRINTF): Use it instead of wcslen.
52871
52872 2003-11-16  Bruno Haible  <bruno@clisp.org>
52873
52874         * lib/xsize.h (xmax): New function.
52875         (xsum, xsum3, xsum4): Declare as "pure" functions.
52876
52877 2003-11-12  Paul Eggert  <eggert@twinsun.com>
52878
52879         * modules/xalloc (Files): Undo latest change, since xalloc.h
52880         no longer needs SIZE_MAX or PTRDIFF_MAX.
52881
52882 2003-11-12  Paul Eggert  <eggert@twinsun.com>
52883
52884         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
52885         gl_PTRDIFF_MAX.
52886
52887 2003-11-12  Paul Eggert  <eggert@twinsun.com>
52888
52889         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
52890         "return", to pacify some unknown compiler.  Problem reported
52891         by Joerg Schilling.
52892
52893 2003-11-12  Paul Eggert  <eggert@twinsun.com>
52894
52895         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
52896         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
52897         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
52898         heuristic is just as accurate as far as we know, and it removes a
52899         dependency on size_max.m4 and ptrdiff_max.m4.
52900
52901 2003-11-11  Bruno Haible  <bruno@clisp.org>
52902
52903         * modules/xsize (Files): Add m4/size_max.m4.
52904         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
52905
52906 2003-11-11  Bruno Haible  <bruno@clisp.org>
52907
52908         * m4/size_max.m4: New file.
52909         * m4/ptrdiff_max.m4: New file.
52910         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
52911         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
52912         (gl_XALLOC): Invoke it.
52913
52914 2003-11-11  Bruno Haible  <bruno@clisp.org>
52915
52916         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
52917         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
52918         defined.
52919
52920 2003-11-10  Paul Eggert  <eggert@twinsun.com>
52921
52922         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
52923         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
52924         rejected some allocations of exactly SIZE_MAX - 2 bytes.
52925         From Bruno Haible.
52926         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
52927         not (size_t) -1, since it's defined here.
52928
52929 2003-11-09  Karl Berry  <karl@gnu.org>
52930
52931         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
52932
52933 2003-11-06  Paul Eggert  <eggert@twinsun.com>
52934
52935         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
52936         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
52937         Reject sizes of exactly SIZE_MAX bytes.
52938         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
52939         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
52940
52941 2003-11-05  Bruno Haible  <bruno@clisp.org>
52942
52943         * lib/xsize.h: Include limits.h, to avoid a possible collision with
52944         SIZE_MAX defined in <limits.h> on Solaris.
52945
52946 2003-11-04  Jim Meyering  <jim@meyering.net>
52947
52948         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
52949         variable names, rather than @VAR@.
52950         * modules/poll: Likewise.
52951
52952 2003-11-04  Bruno Haible  <bruno@clisp.org>
52953
52954         * modules/xsize: New file.
52955         * modules/linebreak: Depend on xsize.
52956         * MODULES.html.sh (func_all_modules): Add xsize.
52957
52958 2003-11-04  Bruno Haible  <bruno@clisp.org>
52959
52960         * m4/xsize.m4: New file.
52961
52962 2003-11-04  Bruno Haible  <bruno@clisp.org>
52963
52964         * lib/xsize.h: New file.
52965         * lib/linebreak.c: Include xsize.h.
52966         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
52967         argument for overflow.
52968         Suggested by Paul Eggert.
52969
52970 2003-11-03  Karl Berry  <karl@gnu.org>
52971
52972         * config/config.{guess,sub}: update from config.
52973
52974 2003-11-03  Jim Meyering  <jim@meyering.net>
52975
52976         * modules/userspec (lib_SOURCES): Add userspec.h.
52977         (Include): Add "userspec.h".
52978         Improve description.
52979
52980 2003-11-03  Jim Meyering  <jim@meyering.net>
52981
52982         * lib/userspec.c: Include "userspec.h".
52983         * lib/userspec.h: New file.
52984
52985 2003-11-03  Bruno Haible  <bruno@clisp.org>
52986
52987         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
52988
52989 2003-11-03  Bruno Haible  <bruno@clisp.org>
52990
52991         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
52992         available, to avoid (extremely rare) race condition.
52993         Suggested by Paul Eggert.
52994
52995 2003-11-02  Karl Berry  <karl@gnu.org>
52996
52997         * config/srclist.txt (vasprintf.c): sync broken, sigh.
52998
52999 2003-10-31  Paul Eggert  <eggert@twinsun.com>
53000
53001         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
53002         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
53003         (read_filesystem_list): Set and use me_type_malloced.
53004         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
53005         whatever the type happens to be), for brevity and consistency.
53006         Check for size calculation overflow on Alphas running OSF/1.
53007
53008 2003-10-31  Jim Meyering  <jim@meyering.net>
53009
53010         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
53011
53012         * lib/linebuffer.c: Include <string.h> for declaration of memset.
53013
53014 2003-10-30  Paul Eggert  <eggert@twinsun.com>
53015             Bruno Haible  <bruno@clisp.org>
53016
53017         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
53018         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
53019
53020 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53021
53022         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
53023         netbsd*-gnu*.  Suggested by Robert Millan.
53024
53025 2003-10-29  Paul Eggert  <eggert@twinsun.com>
53026
53027         * modules/group-member: Depend on stdbool.
53028
53029 2003-10-29  Paul Eggert  <eggert@twinsun.com>
53030
53031         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
53032
53033 2003-10-29  Paul Eggert  <eggert@twinsun.com>
53034
53035         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
53036         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
53037         after the 'gnu' in these cases.  This fixes some bugs in the
53038         previous change, and is based on suggestions by Robert Millan.
53039
53040 2003-10-29  Paul Eggert  <eggert@twinsun.com>
53041
53042         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
53043         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
53044         no longer needed.
53045         * lib/quotearg.c (quotearg_n_options): Use it.
53046         * lib/group-member.c: Include <stdbool.h>.
53047         (free_group_info): Arg is now const *; don't free arg.
53048         (get_group_info): Now returns bool and accepts struct group_info *,
53049         rather than returning a malloc'ed struct group_info *.
53050         All uses changed.  Check for overflow in internal size calculation.
53051
53052         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
53053         rather than xmalloc/xrealloc.
53054         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
53055         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
53056         conformance bug: the old code used a pointer after freeing the
53057         storage that it addressed.
53058         * lib/hash.c (hash_initialize): Simplify the code by using
53059         xalloc_oversized rather than doing it by hand.
53060         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
53061         the buffer preserved.  Use free and xmalloc instead.
53062         * lib/quotearg.c (quotearg_n_options): Likewise.
53063         Use a simpler test for size overflow.  Don't use xalloc_oversized
53064         because unsigned int might be wider than size_t (!); this suggests
53065         that we should switch from unsigned int to size_t for slot numbers.
53066
53067 2003-10-28  Paul Eggert  <eggert@twinsun.com>
53068
53069         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
53070         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
53071         NetBSD kernels.  Requested by Richard Stallman.
53072
53073 2003-10-27  Paul Eggert  <eggert@twinsun.com>
53074
53075         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
53076         to allocate the returned structure.  Do not allocate a subarray,
53077         as x2nrealloc will do that.
53078         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
53079         instead of xnrealloc.
53080         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
53081
53082 2003-10-27  Bruno Haible  <bruno@clisp.org>
53083
53084         * lib/stdbool_.h: Better support for BeOS.
53085
53086 2003-10-26  Paul Eggert  <eggert@twinsun.com>
53087
53088         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
53089         now uses inline.
53090
53091 2003-10-26  Paul Eggert  <eggert@twinsun.com>
53092
53093         * lib/xalloc.h (xalloc_oversized): New static inline function, for
53094         callers that want to do their own size-overflow checking.  Include
53095         <stdbool.h>, since xalloc_oversized returns bool.
53096         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
53097         to use xalloc_oversized.
53098
53099         Add two functions x2realloc, x2nrealloc, for programs that grow
53100         arrays dynamically by doubling their sizes.
53101         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
53102         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
53103         New functions.
53104
53105         Port to C99 semantics for 'inline' of external functions.
53106         Bug reported by Bruno Haible.
53107         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
53108         with the old contents of xnmalloc.
53109         (xnmalloc, xmalloc): Use it.
53110         (xnrealloc_inline): New static inline function,
53111         with the old contents of xnrealloc.
53112         (xnrealloc, xrealloc): Use it.
53113
53114         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
53115         that.
53116
53117 2003-10-26  Karl Berry  <karl@gnu.org>
53118
53119         * config/srclist.txt (COPYING.DOC): no longer available from
53120         /gd/gnuorg; don't know where the ultimate source is.
53121
53122 2003-10-25  Paul Eggert  <eggert@twinsun.com>
53123
53124         Fix several address-calculation bugs in the hash modules,
53125         plus some minor code cleanup.
53126
53127         * lib/hash.h: Include <stdbool.h>, for bool.
53128         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
53129         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
53130         hash_get_n_entries, hash_get_max_bucket_length,
53131         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
53132         hash_rehash): Use size_t rather than unsigned.
53133         * lib/hash.c (struct hash_table, hash_get_n_buckets,
53134         hash_get_n_buckets_used, hash_get_n_entries,
53135         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
53136         hash_get_entries, hash_do_for_each, hash_string, is_prime,
53137         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
53138         Likewise.
53139         (SIZE_MAX): Define if not defined.
53140         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
53141         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
53142         hash_print):
53143         Use const * when possible.
53144         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
53145         (check_tuning): Fix bug: if tuning parameters were very close to
53146         0 or 1, rounding errors could have caused subscript violations.
53147         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
53148         (hash_initialize): Add 'fail:' label
53149         to free table and return NULL, and use it to simplify code.
53150         Use calloc rather than clearing the storage ourself.
53151         (hash_initialize, hash_rehash): Check for arithmetic overflow in
53152         buffer size calculations.
53153         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
53154         Include <stddef.h>, for size_t.
53155         * lib/hash-pjw.c (hash_pjw): Likewise.
53156         Switch to method described by Bruno Haible.
53157         Include <limits.h>, for CHAR_BIT.
53158         (SIZE_BITS): New macro.
53159
53160 2003-10-23  Paul Eggert  <eggert@twinsun.com>
53161
53162         * m4/getline.m4 (AM_FUNC_GETLINE):
53163         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
53164         hosts.  Problem reported by Derek Robert Price in
53165         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
53166         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
53167         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
53168
53169 2003-10-21  Paul Eggert  <eggert@twinsun.com>
53170
53171         * lib/getndelim2.c (getndelim2): When size calculation overflows,
53172         ceiling the allocation at NMAX bytes rather than silently
53173         discarding input bytes before NMAX is reached.  This makes
53174         a difference only if NMAX exceeds SIZE_MAX / 2.
53175
53176         * lib/obstack.c: Merge from glibc.
53177         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
53178         Add libc_hidden_def (_obstack_newchunk).
53179         (_obstack_free) [! defined _LIBC]: Remove.
53180         [defined _LIBC]: Make a strong alias from obstack_free, rather than
53181         a clone of the function body.
53182         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
53183         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
53184
53185         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
53186         glibc.
53187         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
53188         arg to memcpy.
53189
53190         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
53191         (obstack_ptr_grow_fast, obstack_int_grow_fast):
53192         Don't use lvalue casts, as GCC plans to remove support for them
53193         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
53194         was also present in the non-GCC version, indicating that this
53195         code had always been buggy and had never been widely used.
53196         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
53197         Use the fast variant of each macro, rather than copying the
53198         definiens of the fast variant; that way, we'll be more likely to
53199         catch future bugs in the fast variants.
53200
53201 2003-10-20  Bruno Haible  <bruno@clisp.org>
53202
53203         * modules/wait-process: New file.
53204         * MODULES.html.sh (func_all_modules): Add wait-process.
53205
53206 2003-10-20  Bruno Haible  <bruno@clisp.org>
53207
53208         * m4/wait-process.m4: New file.
53209
53210 2003-10-20  Bruno Haible  <bruno@clisp.org>
53211
53212         * lib/wait-process.h: New file, from GNU gettext.
53213         * lib/wait-process.c: New file, from GNU gettext.
53214
53215 2003-10-19  Jim Meyering  <jim@meyering.net>
53216
53217         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
53218         HPUX 10.20.
53219
53220 2003-10-18  Karl Berry  <karl@gnu.org>
53221
53222         * config/config.guess: update from config.
53223
53224 2003-10-16  Paul Eggert  <eggert@twinsun.com>
53225
53226         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
53227         (getgroups): First arg is int, not size_t.
53228         Don't let 'free' mangle errno.
53229
53230 2003-10-16  Paul Eggert  <eggert@twinsun.com>
53231
53232         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
53233
53234 2003-10-16  Karl Berry  <karl@gnu.org>
53235
53236         * config/config.{guess,sub}: update from config.
53237
53238 2003-10-16  Jim Meyering  <jim@meyering.net>
53239
53240         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
53241         memcpy.
53242
53243 2003-10-15  Paul Eggert  <eggert@twinsun.com>
53244
53245         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
53246         (SIZE_MAX): Remove.
53247         (new_exclude, add_exclude_file): Initial size no longer needs to
53248         be a power of 2.
53249         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
53250         our own address arithmetic overflow checking.
53251
53252         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
53253         (fnmatch): Do not alloca more than 2000 wide characters;
53254         instead, use malloc for large buffers.
53255         Check for address arithmetic overflow, and return -1
53256         with errno set to ENOMEM in that case.
53257         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
53258         (NEW_PATTERN): Do not alloca more than 8000 bytes;
53259         instead, return -1.  Check for address arithmetic overflow.
53260
53261 2003-10-14  Paul Eggert  <eggert@twinsun.com>
53262
53263         Handle invalid suffixes and overflow independently, so that
53264         callers can treat them independently as needed.  Fix some bugs in
53265         suffix handling, e.g., "100k@" was not diagnosed as an invalid
53266         suffix for a human-readable blocksize.  The major caller-visible
53267         change is the addition of a new
53268         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
53269         that both overflow and suffix chars were found.
53270
53271         * lib/human.c (humblock): Don't check separately for invalid suffix
53272         char; that is xstrtoumax's job (now that its bug is fixed).
53273         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
53274         INTMAX_MAX]: New macros.
53275         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
53276         TYPE_MAXIMUM): New macros.
53277         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
53278         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
53279         if overflow occurs, as it's what __strtol does and it's more useful
53280         in practice.
53281         (__xstrtol): If __strtol reports some error other than ERANGE,
53282         reflect it to the caller as LONGINT_INVALID.  If it reports
53283         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
53284         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
53285         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
53286         value.
53287         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
53288         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
53289         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
53290         [defined UINTMAX_MAX]: New macros.
53291
53292 2003-10-14  Bruno Haible  <bruno@clisp.org>
53293
53294         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
53295
53296 2003-10-14  Bruno Haible  <bruno@clisp.org>
53297
53298         * m4/sig_atomic_t: New file, from GNU gettext.
53299         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
53300
53301 2003-10-14  Bruno Haible  <bruno@clisp.org>
53302
53303         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
53304         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
53305         Also use volatile where needed.
53306
53307 2003-10-12  Paul Eggert  <eggert@twinsun.com>
53308
53309         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
53310         Change maintainer from Bruno Haible to 'all'.
53311
53312 2003-10-12  Paul Eggert  <eggert@twinsun.com>
53313
53314         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
53315
53316 2003-10-12  Paul Eggert  <eggert@twinsun.com>
53317
53318         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
53319         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
53320         and define in terms of the other primitives.
53321         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
53322         (SIZE_MAX): Define if not already defined.
53323         (array_size_overflow): New function.
53324         (xalloc_die): Abort instead of exiting if 'error' returns.
53325         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
53326         (xmalloc, xrealloc): Use them.
53327         (xcalloc): Check for address arithmetic overflow.
53328         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
53329         a bit faster than strcpy.
53330
53331 2003-10-10  Simon Josefsson  <jas@extundo.com>
53332
53333         * modules/argp (Depends-on): Add restrict and strcase.
53334
53335 2003-10-10  Simon Josefsson  <jas@extundo.com>
53336
53337         * m4/argp.m4: Add AC_C_INLINE.
53338
53339 2003-10-08  Paul Eggert  <eggert@twinsun.com>
53340
53341         Merge getpass from libc, plus a few fixes.
53342
53343         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
53344         Include <stdbool.h>.
53345         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
53346         __fsetlocking to empty.
53347         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
53348         do include <bits/libc-lock.h>.
53349         Do not include <fcntl.h>; not needed.
53350         [_LIBC]: Include <wchar.h>.
53351         (NOTCANCEL_MODE): New macro.
53352         (flockfile, funlockfile) [_LIBC]: New macros.
53353         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
53354         [!_LIBC]: New macros.
53355         (call_fclose): New function.
53356         (getpass): Use it.  Save tty stream separately; this simplifies the
53357         code and makes it more reliable if stdin happens to equal stdout.
53358         Invoke __fsetlocking on tty.
53359         Handle thread cancellation if needed.
53360         Namespace cleanup (use __tcgetattr, __getline).
53361         Use bool for Booleans.
53362         [USE_IN_LIBIO]: Handle wide streams.
53363         [!_LIBC]: Unconditionally do the fseek, since we don't know what
53364         stream might go where.
53365
53366         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
53367         doesn't have to include <stdio.h> before us.
53368         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
53369         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
53370         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
53371         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
53372         if not declared, so that we can use getpass.c code from libc without
53373         rewriting it.
53374         (flockfile, ftrylockfile, funlockfile): New macros.
53375
53376 2003-10-08  Paul Eggert  <eggert@twinsun.com>
53377
53378         * modules/getpass: Depend on stdbool.
53379
53380 2003-10-08  Paul Eggert  <eggert@twinsun.com>
53381
53382         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
53383
53384 2003-10-07  Karl Berry  <karl@gnu.org>
53385
53386         * config/config.{guess,sub}: update from config.
53387
53388 2003-10-06  Jim Meyering  <jim@meyering.net>
53389             Bruno Haible  <bruno@clisp.org>
53390
53391         This lets translators provide better translations for the
53392         "Written by ..." part of --version output.
53393         * lib/version-etc.h: Include stdarg.h.
53394         (version_etc_copyright): Declare as readonly.
53395         (version_etc): Make this function variadic with a NULL-terminated list
53396         of author name strings.
53397         (version_etc_va): New declaration.
53398         * lib/version-etc.c: Include stdarg.h, stdlib.h.
53399         (version_etc_copyright): Declare as readonly.
53400         (version_etc_va): New function. Provide a different translatable string
53401         for each possible number of authors < 10. Abbreviate when there are 10
53402         authors or more.
53403         (version_etc): Make this function variadic. Call version_etc_va.
53404         Suggestion from Gary V. Vaughan.
53405
53406         * lib/long-options.h (parse_long_options): Change prototype: the
53407         authors string is moved to the end and becomes variadic.
53408         * lib/long-options.c: Include stdarg.h.
53409         (parse_long_options): Make this function variadic, too.
53410         Call version_etc_va, not version_etc.
53411
53412 2003-10-06  Bruno Haible  <bruno@clisp.org>
53413
53414         * modules/version-etc-2: Remove file.
53415         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
53416
53417 2003-10-06  Bruno Haible  <bruno@clisp.org>
53418
53419         * modules/fatal-signal: New file.
53420         * MODULES.html.sh (func_all_modules): Add fatal-signal.
53421
53422 2003-10-06  Bruno Haible  <bruno@clisp.org>
53423
53424         * m4/fatal-signal.m4: New file.
53425         * m4/signalblocking.m4: New file, from GNU gettext.
53426
53427 2003-10-06  Bruno Haible  <bruno@clisp.org>
53428
53429         * lib/version-etc-2.h: Remove file.
53430         * lib/version-etc-2.c: Remove file.
53431
53432 2003-10-06  Bruno Haible  <bruno@clisp.org>
53433
53434         * lib/fatal-signal.h: New file, from GNU gettext.
53435         * lib/fatal-signal.c: New file, from GNU gettext.
53436
53437 2003-10-05  Paul Eggert  <eggert@twinsun.com>
53438
53439         * README: Rework advice for preventing empty .o files.
53440         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
53441         not <sys/types.h>.
53442
53443 2003-10-04  Karl Berry  <karl@gnu.org>
53444
53445         * lib/argp*: update from libc.
53446
53447 2003-10-04  Karl Berry  <karl@gnu.org>
53448
53449         * config/config.{guess,sub}: update from config.
53450
53451 2003-10-02  Bruno Haible  <bruno@clisp.org>
53452
53453         * modules/lchown (Include): Add lchown.h.
53454         * modules/time_r (Include): Use "..." syntax.
53455         * modules/xgetdomainname (Include): Add xgetdomainname.h.
53456
53457 2003-10-01  Simon Josefsson  <jas@extundo.com>
53458
53459         * MODULES.html.sh (func_all_modules): Move gethostname from section
53460         'based on' to section 'lacking' POSIX:2001.
53461
53462 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
53463
53464         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
53465         to output mode on the same stream.
53466
53467 2003-09-29  Paul Eggert  <eggert@twinsun.com>
53468
53469         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
53470         Fix arg typo in previous patch.
53471
53472 2003-09-28  Jim Meyering  <jim@meyering.net>
53473
53474         * lib/error.c: Correct cpp indentation.
53475
53476 2003-09-27  Paul Eggert  <eggert@twinsun.com>
53477
53478         * modules/free: New file.
53479
53480 2003-09-27  Paul Eggert  <eggert@twinsun.com>
53481
53482         * m4/free.m4: New file.
53483
53484 2003-09-27  Paul Eggert  <eggert@twinsun.com>
53485
53486         * lib/minmax.h (MIN, MAX)
53487         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
53488         Omit the special code that used __typeof__, since we worry that
53489         it could be more trouble than it's worth.  See:
53490         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
53491         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
53492
53493         * lib/free.c: New file.
53494
53495 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
53496
53497         Trivial fixes to Makefile.am parts of module listings.
53498         * modules/strstr: Append strstr.h to lib_SOURCES.
53499         * modules/strcase: Likewise, for strcase.h.
53500
53501 2003-09-27  Karl Berry  <karl@gnu.org>
53502
53503         * config/mkinstalldirs: update from automake.
53504
53505 2003-09-26  Paul Eggert  <eggert@twinsun.com>
53506
53507         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
53508         (error_tail): Do not loop, reallocating temporary buffer, since
53509         the output cannot contain more wide characters than the input
53510         contains bytes, the size must be big enough already.  This avoids
53511         one potential size overflow calculation.  Check for size overflow
53512         when calculating temporary buffer size.  Free temporary buffer
53513         when done, if it was allocated with malloc; this plugs a memory
53514         leak.  Remove casts from void * to pointers, that are no longer
53515         needed now that we're assuming C89 or better.
53516
53517         Merge error changes from glibc.
53518
53519         * lib/error.c, error.h: Update copyright notice header to match glibc.
53520         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
53521         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
53522         Disable cancellation while printing error.
53523         * lib/error.h: Prepend __ to parameter names.
53524
53525 2003-09-26  Jim Meyering  <jim@meyering.net>
53526
53527         * lib/error.c (error_tail): Move some declarations
53528         into inner scope where the local variables are used.
53529
53530 2003-09-26  Bruno Haible  <bruno@clisp.org>
53531
53532         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
53533         stpncpy().
53534         Don't define stpncpy through config.h; it's now done through stpncpy.h.
53535
53536 2003-09-26  Bruno Haible  <bruno@clisp.org>
53537
53538         * lib/stpncpy.h (gnu_stpncpy): New declaration.
53539         (stpncpy): Define as alias for gnu_stpncpy.
53540         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
53541
53542 2003-09-25  Simon Josefsson  <jas@extundo.com>
53543
53544         * lib/xgetdomainname.h: New file.
53545         * lib/xgetdomainname.c: New file.
53546
53547 2003-09-25  Simon Josefsson  <jas@extundo.com>
53548             Bruno Haible  <bruno@clisp.org>
53549
53550         * modules/getdomainname: New file.
53551         * modules/xgetdomainname: New file.
53552         * MODULES.html.sh (func_all_modules): Add getdomainname,
53553         xgetdomainname.
53554
53555 2003-09-25  Simon Josefsson  <jas@extundo.com>
53556             Bruno Haible  <bruno@clisp.org>
53557
53558         * m4/getdomainname.m4: New file.
53559
53560 2003-09-25  Simon Josefsson  <jas@extundo.com>
53561             Bruno Haible  <bruno@clisp.org>
53562
53563         * lib/getdomainname.h: New file.
53564         * lib/getdomainname.c: New file.
53565
53566 2003-09-25  Karl Berry  <karl@gnu.org>
53567
53568         * lib/argp-fmtstream.c, argp-help.c: update from libc.
53569
53570 2003-09-25  Karl Berry  <karl@gnu.org>
53571
53572         * config/install-sh: update from automake.
53573
53574 2003-09-25  Bruno Haible  <bruno@clisp.org>
53575
53576         * modules/version-etc-2: New file, from modules/version-etc with
53577         modifications.
53578         * MODULES.html.sh (func_all_modules): Add version-etc-2.
53579
53580 2003-09-25  Bruno Haible  <bruno@clisp.org>
53581
53582         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
53583         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
53584
53585 2003-09-24  Simon Josefsson  <jas@extundo.com>
53586
53587         * modules/xgethostname: Add xgethostname.h.
53588
53589 2003-09-24  Paul Eggert  <eggert@twinsun.com>
53590
53591         * lib/linebuffer.c (freebuffer): Don't free the argument, just
53592         the buffer associated with the argument.  Bug reported by
53593         Simon Josefsson.
53594
53595 2003-09-24  Paul Eggert  <eggert@twinsun.com>
53596
53597         * README: Document assumptions that 'int' is at least 32 bits
53598         wide, that integer arithmetic is 2's complement without overflow,
53599         that there are no holes in integer values, that adding sizes of
53600         two nonoverlapping objects can't overflow, and that all-bits-zero
53601         yields scalar zero.  Fix spelling and capitalization typos.
53602
53603 2003-09-19  Karl Berry  <karl@gnu.org>
53604
53605         * lib/argp.h: update from libc.
53606
53607 2003-09-17  Paul Eggert  <eggert@twinsun.com>
53608
53609         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
53610         to avoid spurious warnings like "AC_RUN_IFELSE was called before
53611         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
53612
53613 2003-09-17  Paul Eggert  <eggert@twinsun.com>
53614
53615         * gnulib-tool: Use "test -h", not "test -L", for portability
53616         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
53617         (tags_regexp): Remove, since \| doesn't conform to POSIX.
53618         (sed_extract_prog): Issue s commands one-by-one, rather than
53619         using \| in one s command.
53620
53621 2003-09-16  Paul Eggert  <eggert@twinsun.com>
53622
53623         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
53624         input error, instead of returning NULL the next time we are called
53625         (and therefore losing track of errno).
53626
53627 2003-09-16  Bruno Haible  <bruno@clisp.org>
53628
53629         * gnulib-tool (func_create_testdir): Warn about duplicated
53630         dependencies.
53631
53632 2003-09-15  Paul Eggert  <eggert@twinsun.com>
53633
53634         * modules/argmatch, modules/fatal, modules/obstack,
53635         modules/xalloc, modules/xgethostname: Sort dependencies by
53636         importance, not alphabetically.
53637
53638 2003-09-15  Paul Eggert  <eggert@twinsun.com>
53639
53640         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
53641         fails, so that the caller gets the proper errno.
53642
53643         * lib/readutmp.c (read_utmp): Likewise.
53644         Check for fstat error.  Close stream and free storage
53645         when failing.
53646
53647 2003-09-14  Karl Berry  <karl@gnu.org>
53648
53649         * config/srclist.txt (strdup.c): disable for c89 changes.
53650
53651 2003-09-14  Jim Meyering  <jim@meyering.net>
53652
53653         * lib/getloadavg.c: Correct cpp indentation.
53654         * lib/strdup.c: Likewise.
53655         * lib/vasnprintf.c: Likewise.
53656
53657 2003-09-14  Bruno Haible  <bruno@clisp.org>
53658
53659         * modules/fwriteerror: New file.
53660         * MODULES.html.sh (func_all_modules): Add fwriteerror.
53661
53662 2003-09-14  Bruno Haible  <bruno@clisp.org>
53663
53664         * lib/fwriteerror.h: New file.
53665         * lib/fwriteerror.c: New file.
53666
53667 2003-09-12  Paul Eggert  <eggert@twinsun.com>
53668
53669         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
53670         modules/xgethostname, modules/xalloc: Depend on exit.
53671
53672 2003-09-12  Paul Eggert  <eggert@twinsun.com>
53673
53674         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
53675
53676         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
53677         and AC_MINIX, too, so that their extensions are available.
53678
53679         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
53680         This macro has been superseded by gl_BACKUPFILE.
53681
53682         More patches to assume C89 or better.
53683
53684         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
53685
53686         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
53687         unconditionally.
53688         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
53689         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
53690         Include <string.h>, <stdlib.h> unconditionally.
53691         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
53692         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
53693         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
53694         headers or for string.h.
53695         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
53696         or strtoul.
53697
53698         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
53699         headers.
53700         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
53701         * m4/userspec.m4 (gl_USERSPEC): Likewise.
53702         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
53703         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
53704         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
53705         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
53706         memcpy, memset.
53707         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
53708         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
53709         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
53710         strtol.
53711         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
53712         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
53713         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
53714         strtoul.
53715
53716 2003-09-12  Paul Eggert  <eggert@twinsun.com>
53717
53718         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
53719         * lib/obstack.c [!defined _LIBC]: Likewise.
53720         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
53721         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
53722         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
53723
53724         More changes to assume C89 or better.
53725
53726         * lib/error.c (error_tail): Assume vprintf.
53727
53728         * lib/argmatch.c (getenv): Remove decl.
53729         * lib/progreloc.c (get_full_program_name): Define via prototype.
53730         * lib/setenv.c (clearenv): Likewise.
53731         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
53732         needed.
53733         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
53734         (malloc, memcpy): Remove decls.
53735         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
53736         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
53737         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
53738         (memcpy): Remove macro.
53739         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
53740         (__P): Remove.  All uses removed.
53741         (PTR): Remove.  All uses changed to void *.
53742         (CHAR_BIT, NULL): Remove.
53743         (spaces, zeros, memset_space, memset_zero)
53744         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
53745         Remove.
53746         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
53747         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
53748         Define with prototype.
53749         Remove now-unnecessary prototype decl.
53750         (extra_args_spec): Assume ANSI C.  All uses changed.
53751         (extra_args_spec_iso): Remove.
53752         (my_strftime, emacs_strftimeu): Define via prototype.
53753         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
53754         unconditionally.
53755         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
53756         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
53757         (strtoul, strtol): Remove decls.
53758         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
53759         LONG_MAX): Remove.
53760         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
53761         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
53762         (LOCALE_PARAM_PROTO): New macro.
53763         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
53764         (INTERNAL (strtol), strtol): Define with a prototype.
53765         (PARAMS): Remove.  All uses removed.
53766         * lib/tempname.c: Include <string.h> unconditionally.
53767         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
53768         * lib/xgethostname.c (main): Define with a prototype.
53769         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
53770         Include <stdlib.h> unconditionally.
53771         (calloc, malloc, realloc, free): Remove decls.
53772         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
53773         Include <stdlib.h> unconditionally.  Sort include file names.
53774         (strtod): Remove.
53775         (xstrtod): Define with a prototype.
53776         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
53777         (strtol, strtoul): Remove decls.
53778
53779 2003-09-11  Paul Eggert  <eggert@twinsun.com>
53780
53781         More patches to assume C89 or better.
53782         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
53783         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
53784         string.h, memchr, STDC_HEADERS.
53785
53786 2003-09-11  Paul Eggert  <eggert@twinsun.com>
53787
53788         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
53789         Include <stdlib.h>, <string.h> unconditionally.
53790         Remove now-unnecessary cast to char *.
53791         * lib/strnlen.c: Include <string.h> unconditionally.
53792         * lib/yesno.c (yesno): Define with a prototype.
53793
53794 2003-09-11  Bruno Haible  <bruno@clisp.org>
53795
53796         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
53797
53798 2003-09-10  Jim Meyering  <jim@meyering.net>
53799
53800         * lib/error.c: Correct indentation of cpp directives.
53801
53802 2003-09-10  Bruno Haible  <bruno@clisp.org>
53803
53804         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
53805         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
53806         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
53807         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
53808         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
53809         <stdlib.h> and <string.h> checks.
53810         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
53811         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
53812
53813 2003-09-10  Bruno Haible  <bruno@clisp.org>
53814
53815         * lib/strcspn.c: Include <string.h> unconditionally.
53816         * lib/strpbrk.c: Include <string.h> unconditionally.
53817         * lib/strstr.c: Include <string.h> unconditionally.
53818         * lib/unicodeio.c: Include <string.h> unconditionally.
53819         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
53820         * lib/unsetenv.c: Likewise.
53821         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
53822         * lib/yesno.c: Include <stdlib.h> unconditionally.
53823         (rpmatch): Add prototype.
53824
53825 2003-09-09  Paul Eggert  <eggert@twinsun.com>
53826
53827         More patches to assume C89 or better.
53828         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
53829         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
53830         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
53831         or for string.h.
53832         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
53833         stdlib.h.
53834         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
53835         C headers.
53836         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
53837         string.h.
53838         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
53839         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
53840         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
53841         or for string.h.
53842         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
53843         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
53844         C headers.
53845         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
53846         memcpy.
53847         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
53848         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
53849         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
53850         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
53851         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
53852         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
53853         string.h, free.
53854         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
53855         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
53856         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
53857         C headers, or for string.h.
53858         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
53859         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
53860         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
53861         headers, memory.h, stdlib.h, string.h, strings.h.
53862         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
53863         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
53864         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
53865         strchr.
53866         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
53867         headers, memory.h, string.h.
53868         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
53869         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
53870         free.
53871         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
53872         headers.
53873         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
53874         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
53875         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
53876         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
53877         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
53878
53879 2003-09-09  Paul Eggert  <eggert@twinsun.com>
53880
53881         More K&R removal.
53882
53883         * lib/acosl.c (main): Use a prototype.
53884         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
53885         tanl.c: Likewise.
53886
53887         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
53888
53889         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
53890         (getopt, etopt_long, getopt_long_only, _getopt_internal)
53891         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
53892         with a prototype.
53893         * lib/getopt.c (const): Remove macro.
53894         Include <string.h> unconditionally.
53895         (my_index): Remove; all uses changed to strchr.
53896         (strlen): Remove decl.
53897         (exchange): Remove forward decl; no longer needed.
53898         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
53899         Define with prototype.
53900         * lib/getopt1.c (const): Remove macro.
53901         (getopt_long, getopt_long_only, main): Define with prototype.
53902
53903         * lib/getugroups.c: Include <string.h> unconditionally.
53904
53905         * lib/getusershell.c: Include <stdlib.h> unconditionally.
53906         (getusershell, setusershell, endusershell, readname, main):
53907         Define with prototypes.
53908
53909         * lib/group-member.c: Include group-member.h first.
53910         Include <stdlib.h> unconditionally.
53911
53912         * lib/hard-locale.c: Include hard-locale.h first.
53913         Include <stdlib.h>, <string.h> unconditionally.
53914
53915         * lib/hash.c (free, malloc): Remove decls.
53916         Include <stdlib.h> unconditionally.
53917
53918         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
53919         (getenv): Do not declare.
53920
53921         * lib/idcache.c: Include <string.h> unconditionally.
53922
53923         * lib/long-options.c: Include long-options.h first, to test interface.
53924         Include <stdlib.h> unconditionally.
53925
53926         * lib/makepath.c: Include makepath.h first, to test interface.
53927         Include <stdlib.h> and <string.h> unconditionally.
53928
53929         * lib/linebuffer.c: Include <stdlib.h>.
53930         (free): Remove decl.
53931
53932         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
53933         stddef.h. rpl_malloc returns void *, not char *.
53934         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
53935         prototype.
53936
53937         * lib/md5.h: Include <limits.h> unconditionally.
53938         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
53939         (__P): Remove; all uses removed.
53940         * lib/md5.c: Include "md5.h" first.
53941         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
53942         md5_buffer, md5_process_bytes, md5_process_block):
53943         Define with prototypes.
53944         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
53945         * lib/sha.c: Include "sha.h" first.
53946         Include <stdlib.h>, <string.h> unconditionally.
53947
53948         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
53949         * lib/memcmp.c (__ptr_t): Likewise.
53950         * lib/memrchr.c (__ptr_t): Likewise.
53951         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
53952         Include <string.h> unconditionally.
53953         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
53954         * lib/memchr.c: Include <stdlib.h> unconditionally.
53955         * lib/memchr.c (LONG_MAX): Remove.
53956         * lib/memrchr.c (LONG_MAX): Likewise.
53957         * lib/memchr.c (__memchr): Define via a prototype.
53958         * lib/memrchr.c (__memrchr): Likewise.
53959         * lib/memcmp.c (__P): Remove, and remove all uses.
53960         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
53961         Remove forward decls; no longer needed.
53962         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
53963         Use types required by C89 in prototype.
53964
53965         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
53966         * lib/savedir.c: Likewise.
53967         * lib/mkdir.c (free): Remove decl.
53968         * lib/rmdir.c (rmdir): Define with a prototype.
53969         * lib/savedir.c: Include savedir.h first, to test interface.
53970
53971         * lib/mktime.c (STDC_HEADERS): Remove.
53972         Include <stdlib.h>, <string.h> unconditionally.
53973
53974         * lib/modechange.c: Include <stdlib.h> unconditionally.
53975         (malloc): Remove decl.
53976
53977         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
53978         (free): Remove decl.
53979
53980         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
53981         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
53982         (This type really should be intptr_t, but that's a C99ism.)
53983         (_obstack_memcpy): Remove: all uses changed to memcpy.
53984         Include <string.h> unconditionally.
53985         (struct obstack): Assume __STDC__ for types of members
53986         chunkfun, freefun, extra_arg.
53987         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
53988         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
53989         obstack_begin, obstack_specify_allocation,
53990         obstack_specify_allocation_with_arg, obstack_chunkfun,
53991         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
53992         Remove unprototyped decls and the macros that use them.
53993         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
53994         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
53995         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
53996         (defined __STDC__ && __STDC__)]:
53997         Remove nonprototyped code.
53998         Include <stdlib.h> unconditionally.
53999         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
54000         _obstack_allocated_p, _obstack_free, obstack_free,
54001         _obstack_memory_used, print_and_abort):
54002         Define using prototypes.
54003         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
54004         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
54005         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
54006         obstack_next_free, obstack_object_size, obstack_room) [0]:
54007         Remove unused, unprototyped code.
54008
54009         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
54010
54011         * lib/physmem.c (physmem_total, physmem_available, main): Define
54012         with prototypes.
54013
54014         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
54015         (main): Define with a prototype.
54016
54017         * lib/posixver.c (getenv): Remove decl.
54018
54019         * lib/putenv.c (malloc): Returns void *, not char *.
54020         Include <string.h> unconditionally.
54021         (strchr, memcpy, NULL): Do not define.
54022
54023         * lib/readtokens.c: Include readtokens.h first, to test interface.
54024         Include <stdlib.h>, <string.h> unconditionally.
54025         (init_tokenbuffer): Define with a prototype.
54026
54027         * lib/regex.c (PARAMS): Remove.  All uses removed.
54028         All uses of _RE_ARGS removed, too.
54029         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
54030         unconditionally.
54031         (bzero): Assume memset exists.
54032         (memcmp, memcpy, NULL): Remove.
54033         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
54034         char, or assignments to local vars of type signed char.
54035         (init_syntax_once, PREFIX(extract_number_and_incr),
54036         PREFIX(print_partial_compiled_pattern),
54037         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
54038         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
54039         PREFIX(regex_grow_registers), PREFIX(regex_compile),
54040         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
54041         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
54042         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
54043         wcs_compile_range, byte_compile_range, truncate_wchar,
54044         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
54045         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
54046         count_mbs_length, wcs_re_match_2_internal,
54047         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
54048         PREFIX(alt_match_null_string_p),
54049         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
54050         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
54051         regfree, PREFIX(extract_number)): Define with prototype.  Remove
54052         now-unnecessary declaration, if any.
54053         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
54054         regcomp, regexec):
54055         Remove now-unnecessary casts among pointer types.
54056         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
54057
54058         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
54059         (free): Remove decl.
54060
54061         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
54062
54063         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
54064         (free): Remove decl.
54065
54066         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
54067         * lib/xgetcwd.c: Likewise.
54068
54069         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
54070         (free): Remove decl.
54071
54072         * lib/strchrnul.c (strchrnul): Define with a prototype.
54073         Fix bug: c_in was not converted to char before searching.
54074
54075         The following changes are not K&R related:
54076
54077         * lib/group-member.h: Include <sys/types.h>, so that this file is
54078         self-contained.
54079         * lib/makepath.h: Likewise.
54080
54081         * lib/getusershell.c (readname, default_index, line_size, readname):
54082         Use size_t, not int, for sizes.
54083         (readname): If the size overflows, report an error instead of
54084         looping forever.
54085
54086 2003-09-09  Paul Eggert  <eggert@twinsun.com>
54087
54088         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
54089         libc.
54090
54091 2003-09-09  Paul Eggert  <eggert@twinsun.com>
54092
54093         * README: New section: portability guidelines.
54094
54095 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
54096
54097         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
54098         C89 spec.
54099
54100 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
54101
54102         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
54103
54104 2003-09-08  Paul Eggert  <eggert@twinsun.com>
54105
54106         Assume C89 or better; remove K&R cruft.
54107         A few of these changes were first proposed by Derek Robert Price
54108         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
54109
54110         * lib/addext.c: Include <string.h> unconditionally.
54111         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
54112         Don't declare getenv or malloc.
54113
54114         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
54115         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
54116         (NULL): Remove.
54117         (find_stack_direction, alloca): Use prototypes.
54118
54119         * lib/atexit.c (atexit): Define using a prototype.
54120
54121         * lib/basename.c, dirname.c, stripslash.c:
54122         Include <string.h> unconditionally.
54123
54124         * lib/bcopy.c: Include <stddef.h>.
54125         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
54126
54127         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
54128
54129         * lib/error.h (error, error_at_line, error_print_progname)
54130         [! (defined (__STDC__) && __STDC__)]: Remove decls.
54131         * lib/error.c: Include error.h first, to check interface.
54132         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
54133         (VA_START): Remove; all uses changeed to va_start.
54134         (exit, strerror): Remove decls.
54135         (error_print_progname): Prototype uncondionally.
54136         Don't include <errno.h>; no longer needed.
54137         (private_strerror): Remove.
54138         (error_tail): Always define.
54139         (error, error_at_line): Assume C89 or better; always use prototypes.
54140         * lib/fatal.c: Include "fatal.h" first, to test interface.
54141         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
54142         (VA_START): Remove; all uses changed to va_start.
54143         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
54144         this case.
54145         (exit): Remove decl.
54146         (fatal): Prototype unconditionally.  Assume va_start works.
54147         Abort at end, to pacify gcc.
54148
54149         * lib/euidaccess.c (main): Define with a prototype.
54150
54151         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
54152
54153         * lib/exitfail.c: Include <stdlib.h> unconditionally.
54154
54155         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
54156         prototypes.
54157         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
54158         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
54159         (getenv): Remove decl.
54160         (fnmatch): Define using a prototype.
54161         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
54162         (FCT): Define using a prototype.
54163
54164         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
54165
54166         * lib/gethostname.c: Include <stddef.h>.
54167         (gethostname): Define with prototype.  Length is size_t, not int.
54168
54169 2003-09-08  Paul Eggert  <eggert@twinsun.com>
54170
54171         Assume C89 or better; remove K&R cruft.
54172         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
54173         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
54174         string.h, getenv, malloc.
54175         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
54176         headers.
54177         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
54178         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
54179         do not check for strerror.
54180         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
54181         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
54182         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
54183         do not check for doprnt or vprintf.
54184         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
54185         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
54186
54187 2003-09-08  Paul Eggert  <eggert@twinsun.com>
54188
54189         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
54190         getversion.c should have been removed then, but was accidentally
54191         preserved.
54192
54193         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
54194         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
54195
54196 2003-09-08  Karl Berry  <karl@gnu.org>
54197
54198         * config/config.sub, config.guess, srclistvars.sh: update from savannah
54199                 config, forget about prep.
54200
54201         * config/depcomp, missing: update from automake.
54202
54203 2003-09-07  Paul Eggert  <eggert@twinsun.com>
54204
54205         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
54206         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
54207
54208 2003-09-07  Paul Eggert  <eggert@twinsun.com>
54209
54210         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
54211         copy_tm_result.  Bug reported by Simon Josefsson in
54212         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
54213
54214 2003-09-06  Paul Eggert  <eggert@twinsun.com>
54215
54216         * m4/time_r.m4: New file.
54217         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
54218         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
54219         is. Check for timegm declaration.
54220         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
54221         Do not check for gmtime_r.
54222         Replace mktime if __mktime_internal does not exist and if mktime
54223         hasn't been replaced already.
54224
54225 2003-09-06  Paul Eggert  <eggert@twinsun.com>
54226
54227         * lib/time_r.c, lib/time_r.h: New files.
54228
54229         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
54230         __localtime_r.
54231         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
54232         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
54233
54234         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
54235         __gmtime_r.
54236         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
54237         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
54238         Include <time_r.h>.
54239
54240         * lib/timegm.c: Switch to glibc implementation, with the following
54241         changes:
54242         [defined HAVE_CONFIG_H]: Include <config.h>.
54243         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
54244         (__mktime_internal) [!defined _LIBC]: New decl.
54245         (__gmtime_r) [!defined _LIBC]: New macro and function.
54246         (timegm): Use a prototype, since gnulib assumes C89.
54247         Do not bother declaring tmp to be const, as it's not really usefu.
54248         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
54249         (timegm): Declare only if HAVE_DECL_TIMEGM.
54250
54251 2003-09-06  Paul Eggert  <eggert@twinsun.com>
54252
54253         * MODULES.html.sh (func_all_modules): Add time_r.
54254         * modules/time_r: New file.
54255         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
54256         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
54257
54258 2003-09-03  Paul Eggert  <eggert@twinsun.com>
54259
54260         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
54261         Bug reported by Lute Kamstra in
54262         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
54263
54264         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
54265         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
54266         course with correspondingly smaller numbers for tomorrow and
54267         yesterday.  From Tadayoshi Funaba.  Originally installed into
54268         sh-utils on 1999-08-07, but the patch got lost (I guess during the
54269         coreutils merge?).
54270
54271 2003-08-31  Simon Josefsson  <jas@extundo.com>
54272
54273         * modules/timegm: New file.
54274         * MODULES.html.sh (func_all_modules): Add timegm.
54275
54276 2003-08-31  Simon Josefsson  <jas@extundo.com>
54277
54278         * m4/timegm.m4: New file.
54279
54280 2003-08-31  Simon Josefsson  <jas@extundo.com>
54281
54282         * lib/timegm.h: New file.
54283         * lib/timegm.c: New file.  Based on
54284         wget-1.8.2/src/http.c:mktime_from_utc.
54285
54286 2003-08-31  Karl Berry  <karl@gnu.org>
54287
54288         * lib/argp.h: update from libc.
54289
54290 2003-08-28  Bruno Haible  <bruno@clisp.org>
54291
54292         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
54293         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
54294         followed by '#define fnmatch fnmatch_posix' gives an error.
54295
54296 2003-08-28  Bruno Haible  <bruno@clisp.org>
54297
54298         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
54299         warning on QNX, which defines O_BINARY to 000000.
54300
54301 2003-08-27  Jim Meyering  <jim@meyering.net>
54302
54303         * m4/mkstemp.m4: Require that the system mkstemp be able to create
54304         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
54305         would fail after 32.  Reported by Danny Levinson.  Details here:
54306         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
54307
54308 2003-08-24  Bruno Haible  <bruno@clisp.org>
54309
54310         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
54311         MSVC7 <stdio.h> is included later.
54312
54313 2003-08-22  Simon Josefsson  <jas@extundo.com>
54314
54315         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
54316
54317 2003-08-20  Karl Berry  <karl@gnu.org>
54318
54319         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
54320
54321 2003-08-20  Bruno Haible  <bruno@clisp.org>
54322
54323         * modules/progname: New file.
54324         * MODULES.html.sh (func_all_modules): Add progname.
54325
54326 2003-08-20  Bruno Haible  <bruno@clisp.org>
54327
54328         * lib/progname.h: New file, from GNU gettext.
54329         * lib/progname.c: New file, from GNU gettext.
54330         * lib/progreloc.c: New file, from GNU gettext.
54331
54332 2003-08-19  Jim Meyering  <jim@meyering.net>
54333
54334         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
54335         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
54336
54337 2003-08-19  Bruno Haible  <bruno@clisp.org>
54338
54339         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
54340         more.
54341
54342 2003-08-19  Bruno Haible  <bruno@clisp.org>
54343
54344         * lib/xstrdup.c: Assume <string.h> exists.
54345
54346 2003-08-18  Paul Eggert  <eggert@twinsun.com>
54347
54348         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
54349         in makefile rules.
54350
54351 2003-08-18  Jim Meyering  <jim@meyering.net>
54352
54353         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
54354         * m4/lib-ld.m4: Likewise.
54355
54356 2003-08-18  Jim Meyering  <jim@meyering.net>
54357
54358         * lib/setenv.h: Indent nested cpp directive.
54359         * lib/vasnprintf.c: Remove trailing blanks.
54360
54361 2003-08-17  Simon Josefsson  <jas@extundo.com>
54362
54363         * modules/xstrndup: New file.
54364         * MODULES.html.sh (func_all_modules): Add xstrndup.
54365
54366 2003-08-17  Simon Josefsson  <jas@extundo.com>
54367
54368         * modules/argp: Fix autoconf macro name. Add more dependencies.
54369
54370 2003-08-17  Simon Josefsson  <jas@extundo.com>
54371
54372         * m4/xstrndup.m4: New file.
54373
54374 2003-08-17  Simon Josefsson  <jas@extundo.com>
54375
54376         * m4/argp.m4: New file.
54377
54378 2003-08-17  Simon Josefsson  <jas@extundo.com>
54379             Bruno Haible  <bruno@clisp.org>
54380
54381         * lib/xstrndup.h: New file.
54382         * lib/xstrndup.c: New file.
54383
54384 2003-08-17  Bruno Haible  <bruno@clisp.org>
54385
54386         * modules/strndup (Files, Include): Add lib/strndup.h.
54387
54388 2003-08-17  Bruno Haible  <bruno@clisp.org>
54389
54390         * modules/euidaccess (Files): Add lib/euidaccess.h.
54391
54392 2003-08-17  Bruno Haible  <bruno@clisp.org>
54393
54394         * lib/strndup.h: New file.
54395
54396 2003-08-17  Bruno Haible  <bruno@clisp.org>
54397
54398         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
54399         like AC_GNU_SOURCE.
54400         * modules/extensions (configure.ac): Comment out the invocation of
54401         gl_USE_SYSTEM_EXTENSIONS.
54402
54403 2003-08-16  Paul Eggert  <eggert@twinsun.com>
54404
54405         Merges from coreutils, etc.
54406         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
54407         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
54408         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
54409         fixing a typo.
54410         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
54411         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
54412
54413 2003-08-16  Paul Eggert  <eggert@twinsun.com>
54414
54415         Document merge from coreutils.
54416         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
54417         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
54418         * modules/utime: Add m4/utimes-null.m4.
54419
54420 2003-08-16  Paul Eggert  <eggert@twinsun.com>
54421
54422         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
54423         space, undoing this 2003-08-12 change:
54424         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
54425
54426 2003-08-16  Paul Eggert  <eggert@twinsun.com>
54427
54428         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
54429         strtoul.c from libc, undoing this 2003-08-12 change:
54430         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
54431
54432 2003-08-16  Jim Meyering  <jim@meyering.net>
54433
54434         Merges from coreutils.
54435         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
54436         prefix.  Adjust cache variables similarly.  Create 500 rather than
54437         just 300 files, to exercise bug on Darwin6.5, too.
54438         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
54439         $missing_dir.
54440         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
54441         AM_SYS_POSIX_TERMIOS.
54442         Reported by mkc@mathdogs.com.
54443         Also change use of $am_cv_sys_posix_termios
54444         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
54445         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
54446         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
54447         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
54448         in /proc/mounts until it finds one with matching device number.  This
54449         is unnecessary when the FILE argument *is* a mount point.  No stat call
54450         is necessary in that case.  So, disable the statvfs-testing code on
54451         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
54452         as RedHat bug# 84846.
54453         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
54454         to 1MB, so as not to render systems with no stack size limit (e.g.,
54455         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
54456         Include <unistd.h>.  On some systems,
54457         it is required for the definition of _SC_PAGESIZE.
54458
54459 2003-08-16  Jim Meyering  <jim@meyering.net>
54460
54461         Merge from coreutils.
54462         * lib/xstrtoimax.c: #else #if -> #elif.
54463         * lib/xstrtoumax.c: Likewise.
54464
54465 2003-08-16  Jim Meyering  <jim@meyering.net>
54466
54467         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
54468         * m4/utimes.m4: Removed.
54469         * m4/utimes-null.m4: Renamed from utimes.m4.
54470
54471         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
54472         to 1MB, so as not to render systems with no stack size limit (e.g.,
54473         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
54474         Include <unistd.h>.  On some systems,
54475         it is required for the definition of _SC_PAGESIZE.
54476
54477 2003-08-16  Jim Meyering  <jim@meyering.net>
54478         and Paul Eggert  <eggert@cs.ucla.edu>
54479
54480         Merges from coreutils, etc.
54481
54482         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
54483         using the latest version from cvs.  This avoids problems with #line
54484         directives using a vendor (Sun) compiler.
54485         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
54486         Don't set GETGROUPS_LIB here; now it's
54487         done via getgroups.m4's wrapper function.
54488         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
54489         rather than just in sh-util/configure.in, so that the
54490         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
54491         same.
54492         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
54493         AC_FUNC_GETLOADAVG where to find getloadavg.c.
54494         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
54495         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
54496         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
54497         Remove code that is now done by the newly-required macros.
54498         Append $(EXEEXT) to DF_PROG.
54499         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
54500         Do not invoke or require the following here,
54501         since prereq.m4 or some gnulib .m4 now does this for us:
54502         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
54503         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
54504         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
54505         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
54506         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
54507         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
54508         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
54509         AC_FUNC_OBSTACK.
54510         Do not replace the following functions, as this is now the job
54511         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
54512         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
54513         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
54514         atexit getpass, strdup, getpagesize.
54515         Replace 'raise'.
54516         Do not check for the following functions, as this is now the job
54517         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
54518         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
54519         setregid.
54520         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
54521         Check for sys/sysctl.h.
54522         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
54523         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
54524         of checking for ssize_t ourselves.
54525
54526         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
54527         Require every macro that gnulib/modules/* suggests for us.
54528         (jm_PREREQ_ADDEXT): New macro.
54529         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
54530         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
54531
54532         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
54533         (gl_PHYSMEM): Use it.
54534         Also check for `table' function.
54535         Check for new headers and functions.
54536         Add check for sys/sysmp.h.
54537         With suggestions from Kaveh Ghazi.
54538         Ignore headers that are present but cannot be compiled.  This
54539         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
54540         C 5.4.
54541
54542 2003-08-15  Paul Eggert  <eggert@twinsun.com>
54543
54544         Document merge from coreutils.
54545         * modules/userspec: Depend on posixver.
54546         * modules/strftime: Depend on tzset.
54547
54548 2003-08-15  Paul Eggert  <eggert@twinsun.com>
54549
54550         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
54551         rather than tab, after '#' in shell-script copyright notices.
54552         Suggested by Bruno Haible.
54553
54554 2003-08-15  Paul Eggert  <eggert@twinsun.com>
54555
54556         * config/srclist-update: Use three spaces, rather than tab, after '#'
54557         in shell-script copyright notices.  Suggested by Bruno Haible.
54558         Remove unnecessary parenthesization in regular expression.
54559
54560 2003-08-15  Jim Meyering  <jim@meyering.net>
54561
54562         Merge from coreutils.
54563         * lib/xgethostname.c: Include <stdlib.h>.
54564         (xghostname): Don't exit for anything other than memory-related
54565         failure; just return NULL.
54566         * lib/userspec.c: Include "posixver.h".
54567         (parse_user_spec): Accept `.' as a separator only
54568         in pre-POSIX-200112 mode.
54569         * lib/strtoimax.c: Use #elif rather than #else #if.
54570         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
54571         Remove function, now that we can rely on a working tzset function.
54572         [!_LIBC]: Ensure that the required autoconf test has been run.
54573         [!defined _NL_CURRENT && HAVE_STRFTIME]:
54574         Use underlying_strftime for %r.
54575         * lib/sha.c: Merge in some clean-up and optimization changes from
54576         glibc.
54577         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
54578         Ensure that it is a multiple of 64.
54579         Rearrange loop exit tests so as to avoid performing an
54580         additional fread after encountering an error or EOF.
54581         * lib/realloc.c: Update copyright date.
54582
54583 2003-08-15  Jim Meyering  <jim@meyering.net>
54584         and Paul Eggert  <eggert@twinsun.com>
54585
54586         Merge from coreutils.
54587         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
54588         member but strut utmpx does not.  Needed for AIX 4.3.3.
54589         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
54590
54591 2003-08-15  Jim Meyering  <jim@meyering.net>
54592         and Paul Eggert  <eggert@cs.ucla.edu>
54593
54594         Merges from coreutils, etc.
54595         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
54596         Require gl_FUNC_TZSET_CLOBBER.
54597         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
54598         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
54599         members.
54600
54601 2003-08-14  Paul Eggert  <eggert@twinsun.com>
54602
54603         Help the merge from coreutils.
54604         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
54605         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
54606         * m4/tzset.m4: Use it too.
54607
54608 2003-08-14  Paul Eggert  <eggert@twinsun.com>
54609
54610         * modules/tzset: New file.
54611
54612 2003-08-14  Jim Meyering  <jim@meyering.net>
54613
54614         Merges from coreutils.
54615         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
54616         variable names, rather than @FNMATCH_H@.
54617         * modules/alloca: Likewise for $(ALLOCA_H).
54618
54619         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
54620         the three copies of the literal target, `fnmatch.h'.
54621         * modules/alloca (alloca.h): Likewise.
54622
54623 2003-08-14  Jim Meyering  <jim@meyering.net>
54624
54625         Merge from coreutils.
54626         * m4/tzset.m4: New file.
54627         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
54628         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
54629         otherwise, AIX 5.1 systems would end up using the latter.
54630         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
54631         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
54632         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
54633         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
54634
54635 2003-08-14  Jim Meyering  <jim@meyering.net>
54636
54637         Merge from coreutils.
54638         * lib/obstack.h: Whitespace changes.
54639         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
54640         and xcalloc return values.
54641         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
54642         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
54643         hang on OSF/1 5.1 for DIR on both local and remote file systems.
54644         Reported by (and fix confirmed by) Nelson H. F. Beebe.
54645         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
54646         error from mntctl.
54647         Use mntctl's return value to drive the entry-processing loop, since
54648         we can't rely on the value of the vmt_length member in the last
54649         entry.  On some systems doing so could result in exhausting
54650         virtual memory.  Based in part on a patch from Mike Jetzer.
54651
54652 2003-08-14  Jim Meyering  <jim@meyering.net>
54653         and Paul Eggert  <eggert@twinsun.com>
54654
54655         Merges from coreutils, plus other fixes.
54656         * lib/physmem.c: Merge in portability changes from gcc/libiberty
54657         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
54658         for credits and details.  Thanks to Kaveh Ghazi for helping
54659         to keep these files in sync.
54660         (ARRAY_SIZE): Define it.
54661         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
54662         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
54663         (memcasecmp): Don't assume size_t fits in unsigned int.
54664         Remove casts and duplicate code.
54665         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
54666         (memcpy): Remove definition.
54667         Merge in some clean-up and optimization changes from glibc.
54668         [BLOCKSIZE]: Move definition to top of file.
54669         Ensure that it is a multiple of 64.
54670         Rearrange loop exit tests so as to avoid performing an
54671         additional fread after encountering an error or EOF.
54672         * lib/md5.h (md5_uintptr): Define.
54673         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
54674         return to the initial working directory.  Preserve errno
54675         for caller.
54676         * lib/idcache.c: Include "xalloc.h".
54677         (xmalloc, xrealloc): Remove decls.
54678         (getuser): Remove casts no longer required in C89.
54679         * lib/human.c: Include stdio.h, for sprintf.
54680         * lib/group-member.c: Include "xalloc.h".
54681         (xmalloc, xrealloc): Remove decls.
54682         (get_group_info): Remove casts no longer required in C89.
54683         * lib/getusershell.c (readname): Remove casts no longer required in
54684         C89.
54685         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
54686         * lib/getline.c: Whitespace fix, from coreutils.
54687
54688 2003-08-13  Paul Eggert  <eggert@twinsun.com>
54689
54690         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
54691         Check for isascii.
54692
54693         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
54694         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
54695         Undo previous (whitespace-only) change.
54696
54697 2003-08-13  Paul Eggert  <eggert@twinsun.com>
54698
54699         * lib/exclude.c: Include <ctype.h>
54700         (IN_CTYPE_DOMAIN): New macro.
54701         (is_space): New fn.
54702         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
54703         and empty lines.
54704
54705         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
54706         Undo previous (whitespace-only) change.
54707
54708 2003-08-13  Paul Eggert  <eggert@twinsun.com>
54709
54710         * config/srclist-update: Change update back to the old behavior,
54711         leaving whitespace alone.  Use one 'sed' command rather than a
54712         pipeline.
54713         (fixlicense): Now a variable, not a function.
54714         (remove_trailing_blanks): Remove.
54715         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
54716         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
54717         Undo previous (whitespace-only) change.
54718
54719 2003-08-12  Paul Eggert  <eggert@twinsun.com>
54720
54721         Merge from coreutils.
54722         * modules/euidaccess: Add lib_SOURCES, include for new
54723         file euidaccess.h
54724
54725 2003-08-12  Paul Eggert  <eggert@twinsun.com>
54726
54727         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
54728         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
54729         Normalize leading white space and remove trailing white space.
54730
54731         Merge from coreutils
54732         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
54733
54734         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
54735         0.12.1.  These files are now being upgraded automatically by
54736         ../config/srclist-update.
54737
54738 2003-08-12  Paul Eggert  <eggert@twinsun.com>
54739
54740         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
54741         Normalize leading white space and remove trailing white space.
54742         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
54743         notice, as per ../config/srclist-update.
54744
54745         Merge from coreutils.
54746         * lib/euidaccess.h: New file.
54747         * lib/euidaccess.c: Include it.
54748         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
54749         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
54750         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
54751
54752 2003-08-12  Paul Eggert  <eggert@twinsun.com>
54753
54754         * config/srclist-update: Add copyright notice.
54755         (remove_id_lines, remove_trailing_blanks): New constants.
54756         (fixfile): Use them to normalize spacing a bit in copied files.
54757         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
54758         Normalize leading white space and remove trailing white space.
54759
54760         * config/texinfo.tex: Sync with texinfo.
54761
54762         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
54763         strtoul.c from libc, to merge coreutils whitespace changes.
54764
54765         * config/srclist.txt: Get the following m4 files from gettext:
54766         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
54767         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
54768         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
54769         wint_t.m4.
54770
54771 2003-08-12  Karl Berry  <karl@gnu.org>
54772
54773         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
54774         been made.
54775
54776 2003-08-11  Paul Eggert  <eggert@twinsun.com>
54777
54778         * modules/gnu-source, m4/gnu-source.m4:
54779         Remove; we're assuming Autoconf 2.54 or later now.
54780         Suggested by Bruno Haible.
54781         * MODULES.html.sh (func_all_modules): Remove gnu-source.
54782
54783 2003-08-11  Bruno Haible  <bruno@clisp.org>
54784
54785         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
54786
54787 2003-08-11  Bruno Haible  <bruno@clisp.org>
54788
54789         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
54790         (vasnprintf): Use it instead of wcslen.
54791
54792 2003-08-11  Bruno Haible  <bruno@clisp.org>
54793
54794         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
54795         value to ensure that _Bool promotes to int. Use #define for _Bool when
54796         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
54797
54798 2003-08-10  Karl Berry  <karl@gnu.org>
54799
54800         * lib/regex.h: update from libc (whitespace fix).
54801
54802 2003-08-09  Paul Eggert  <eggert@twinsun.com>
54803
54804         Merge some files from coreutils.  These changes were
54805         originally made by Jim Meyering.
54806         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
54807         many older Unixes require this.
54808         * lib/alloca.c (alloca): Remove cast to argument of free;
54809         no longer needed in C89.
54810         * lib/alloca_.h, regex.h: Fix white space to match
54811         what GNU indent does.
54812
54813 2003-08-09  Paul Eggert  <eggert@twinsun.com>
54814
54815         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
54816         apparently Emacs's Unicode mode got confused before my 2003-08-05
54817         checkin.
54818
54819 2003-08-08  Paul Eggert  <eggert@twinsun.com>
54820
54821         * m4/extensions.m4: New file.
54822         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
54823         Require gl_USE_SYSTEM_EXTENSIONS.
54824         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
54825         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
54826
54827 2003-08-08  Paul Eggert  <eggert@twinsun.com>
54828
54829         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
54830         * modules/extensions, modules/gnu-source: New files.
54831         * modules/timespec, modules/unlocked-io: Depend on extensions.
54832
54833 2003-08-07  Paul Eggert  <eggert@twinsun.com>
54834
54835         * modules/restrict: New file.
54836         * MODULES.html.sh (func_all_modules): Add restrict.
54837         * modules/regex: Depend on restrict.
54838
54839 2003-08-07  Paul Eggert  <eggert@twinsun.com>
54840
54841         * m4/restrict.m4: New file.
54842         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
54843
54844 2003-08-07  Bruno Haible  <bruno@clisp.org>
54845
54846         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
54847         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
54848
54849 2003-08-07  Bruno Haible  <bruno@clisp.org>
54850
54851         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
54852         makes the module 'getndelim2' compatible with the module 'getline'.
54853
54854 2003-08-05  Paul Eggert  <eggert@twinsun.com>
54855
54856         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
54857         byte with "\201" to avoid glitches when editing that source file
54858         with multi-gnome-terminal.
54859
54860 2003-08-05  Paul Eggert  <eggert@twinsun.com>
54861
54862         * lib/bumpalloc.h: Remove.
54863
54864 2003-08-05  Paul Eggert  <eggert@twinsun.com>
54865
54866         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
54867         * modules/bumpalloc: Remove.
54868
54869 2003-08-04  Paul Eggert  <eggert@twinsun.com>
54870
54871         * lib/getloadavg.c: Change copyright notice and spacing to conform to
54872         GNU coding style.
54873
54874         Merge from coreutils.
54875         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
54876         1. From glibc.
54877         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
54878         from Karl Berry, implemented by Jim Meyering.
54879         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
54880         from Dmitry V. Levin.
54881         Remove anachronistic cast of xrealloc.
54882         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
54883         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
54884         type. Otherwise, it wouldn't compile with at least /bin/cc on
54885         ymp-cray-unicos9.0.2.X.
54886         Combine two mostly-identical uses of alloca into one.
54887         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
54888
54889 2003-08-04  Dave Love  <d.love@dl.ac.uk>
54890
54891         [From Emacs.]
54892
54893         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
54894         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
54895         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
54896         obsolete NLIST_NAME_UNION.
54897         [__GNU__]: Undef BSD and FSCALE.
54898         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
54899
54900 2003-08-03  Paul Eggert  <eggert@twinsun.com>
54901
54902         * lib/stdbool_.h (_Bool): Make it signed char, instead of
54903         an enum type, so that it's guaranteed to promote to int.  See:
54904         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
54905
54906 2003-08-03  Karl Berry  <karl@gnu.org>
54907
54908         * config/depcomp: update from automake.
54909
54910 2003-07-31  Paul Eggert  <eggert@twinsun.com>
54911
54912         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
54913         (strerror): Don't assume that a printable int fits in 14 bytes.
54914
54915 2003-07-31  Bruno Haible  <bruno@clisp.org>
54916
54917         * modules/getpass-gnu: New file.
54918         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
54919
54920 2003-07-31  Bruno Haible  <bruno@clisp.org>
54921
54922         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
54923
54924 2003-07-24  Karl Berry  <karl@gnu.org>
54925
54926         * config/missing: update from automake.
54927
54928 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
54929             Bruno Haible  <bruno@clisp.org>
54930
54931         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
54932         * lib/getline.c (getline, getdelim): Likewise.
54933         Remove _GNU_SOURCE define; now it's defined in config.h through
54934         m4/getline.m4.
54935
54936 2003-07-23  Karl Berry  <karl@gnu.org>
54937
54938         * config/config.sub: update from prep.
54939
54940 2003-07-22  Paul Eggert  <eggert@twinsun.com>
54941
54942         * modules/xalloc (Depends-on): Add exitfail.
54943         * modules/xmemcoll: Likewise.
54944
54945 2003-07-22  Paul Eggert  <eggert@twinsun.com>
54946
54947         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
54948         over-parenthesization in macros.
54949
54950         Sync with coreutils.
54951
54952         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
54953         required by C99.
54954
54955         Use `exit_failure' for xalloc and xmemcoll instead of their own
54956         private exit-failure variables.
54957         * lib/xalloc.h (xalloc_exit_failure): Remove.
54958         * lib/xmalloc.c: Likewise.  Include exitfail.h.
54959         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
54960         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
54961         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
54962         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
54963
54964 2003-07-20  Jim Meyering  <jim@meyering.net>
54965
54966         * modules/closeout (Depends-on): Add exitfail.
54967         Suggestion from Bruno Haible.
54968
54969 2003-07-19  Karl Berry  <karl@gnu.org>
54970
54971         * config/config.sub: update from prep.
54972
54973 2003-07-18  Paul Eggert  <eggert@twinsun.com>
54974
54975         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
54976         Remove.
54977         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
54978         to test that it can stand by itself.  Include "exitfail.h".
54979         Clients should set exit_failure instead.
54980         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
54981
54982 2003-07-18  Bruno Haible  <bruno@clisp.org>
54983
54984         * modules/getndelim2: New file.
54985         * modules/getline: Share files with module getndelim2.
54986         * modules/getnline: Depend on getndelim2 instead of sharing files with
54987         it. Add getnline.c to lib_SOURCES.
54988         * MODULES.html.sh (func_all_modules): Add getndelim2.
54989
54990 2003-07-18  Bruno Haible  <bruno@clisp.org>
54991
54992         * m4/getndelim2.m4: New file.
54993         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
54994         invoke gl_PREREQ_GETNDELIM2.
54995         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
54996         gl_PREREQ_GETNDELIM2.
54997         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
54998         gl_GETNDELIM2.
54999
55000 2003-07-18  Bruno Haible  <bruno@clisp.org>
55001
55002         * lib/getndelim2.h: New file.
55003         * lib/getndelim2.c: Make into a module of its own. Include config.h,
55004         getndelim2.h.
55005         (getndelim2): Make non-static. Change return type to ssize_t.
55006         * lib/getline.h: Change argument names.
55007         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
55008         * lib/getnline.c: Include getndelim2.h.
55009
55010 2003-07-18  Andreas Schwab  <schwab@suse.de>
55011
55012         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
55013
55014 2003-07-17  Karl Berry  <karl@gnu.org>
55015
55016         * config/config.sub: update from prep.
55017
55018 2003-07-17  Bruno Haible  <bruno@clisp.org>
55019
55020         * modules/getnline: New file.
55021         * modules/getline: Add lib/getndelim2.c to source file list.
55022         * MODULES.html.sh (func_all_modules): Add getnline.
55023
55024 2003-07-17  Bruno Haible  <bruno@clisp.org>
55025
55026         * m4/getnline.m4: New file.
55027
55028 2003-07-17  Bruno Haible  <bruno@clisp.org>
55029
55030         * m4/Makefile.am.in: Remove file.
55031         * m4/Makefile.am: Remove file.
55032         * m4/Makefile.in: Remove file.
55033
55034 2003-07-17  Bruno Haible  <bruno@clisp.org>
55035
55036         * lib/getnline.h: New file.
55037         * lib/getnline.c: New file.
55038         * lib/getndelim2.c: New file, extracted from getline.c.
55039         (getndelim2): Renamed from getdelim2, with added nmax argument.
55040         * lib/getline.c: Include getndelim2.c.
55041         (getdelim2): Moved out to getndelim2.c.
55042         (getline, getdelim): Update.
55043
55044 2003-07-17  Bruno Haible  <bruno@clisp.org>
55045
55046         * lib/Makefile.am: Remove file.
55047         * lib/Makefile.in: Remove file.
55048
55049 2003-07-17  Bruno Haible  <bruno@clisp.org>
55050
55051         * configure.in: Remove file.
55052         * Makefile.in: Remove file.
55053
55054 2003-07-17  Bruno Haible  <bruno@clisp.org>
55055
55056         * MODULES.html.sh: Put the </BODY> right before </HTML>.
55057
55058 2003-07-16  Karl Berry  <karl@gnu.org>
55059
55060         * config/srclist-update: was running fixlicense twice, which caused
55061                 texinfo.tex to be nullified for some reason.  Simplify,
55062                 $gplsrc is no longer needed as far as I can see?
55063
55064 2003-07-16  Jim Meyering  <jim@meyering.net>
55065
55066         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
55067
55068 2003-07-15  Paul Eggert  <eggert@twinsun.com>
55069
55070         * config/srclist.txt: Get the following files from gettext-runtime/intl
55071         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
55072         ref-del.sin.  From Bruno Haible.
55073         * config/srclist-update (fixfile): Change grep pattern again, since the
55074         previous fix didn't work (there was another trailing $).  Use
55075         '[$]' to escape the $s.
55076
55077 2003-07-15  Karl Berry  <karl@gnu.org>
55078
55079         * lib/vasnprintf.c: update from gettext.
55080
55081 2003-07-15  Karl Berry  <karl@gnu.org>
55082
55083         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
55084         gets expanded when surrounded by '$'.
55085
55086 2003-07-15  Jim Meyering  <jim@meyering.net>
55087
55088         * modules/save-cwd: Don't depend on error.  From Derek Price.
55089
55090 2003-07-15  Jim Meyering  <jim@meyering.net>
55091
55092         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
55093
55094 2003-07-14  Simon Josefsson  <jas@extundo.com>
55095
55096         * modules/mempcpy: New file.
55097         * MODULES.html.sh (func_all_modules): Add mempcpy.
55098
55099 2003-07-14  Simon Josefsson  <jas@extundo.com>
55100
55101         * m4/mempcpy.m4: New file.
55102
55103 2003-07-14  Simon Josefsson  <jas@extundo.com>
55104
55105         * lib/mempcpy.h: New file.
55106         * lib/mempcpy.c: New file.
55107
55108 2003-07-14  Paul Eggert  <eggert@twinsun.com>
55109
55110         * modules/getdate, modules/posixtm: Depend on mktime.
55111
55112 2003-07-14  Paul Eggert  <eggert@twinsun.com>
55113
55114         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
55115         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
55116         unicodeio.c, unicodeio.h, unlocked-io.h:
55117         Switch from LGPL to GPL.
55118
55119 2003-07-14  Paul Eggert  <eggert@twinsun.com>
55120
55121         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
55122         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
55123         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
55124         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
55125         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
55126         updated automatically by ../config/srclist-update.  This changes
55127         their license from LPGL to GPL.
55128
55129 2003-07-14  Paul Eggert  <eggert@twinsun.com>
55130
55131         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
55132         assumed to refer to the root of the most recent stable gettext version.
55133         * config/srclistvars.sh: Add defaults for eggert.
55134         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
55135         Match "This program" as well as "The program".  This is needed
55136         for gettext.
55137
55138 2003-07-14  Jim Meyering  <jim@meyering.net>
55139
55140         Don't emit diagnostics.  Let callers do that.
55141         * lib/save-cwd.c: Don't include "error.h".
55142         (save_cwd): Don't call error.  Ensure that errno is valid
55143         when returning nonzero.
55144
55145         * lib/save-cwd.h (restore_cwd): Update prototype.
55146         * lib/save-cwd.c (restore_cwd): Remove two parameters.
55147         Simplify.  Don't call error upon failure.  Let callers do that.
55148         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
55149         when auditing is enabled.  But don't bother updating the #if.
55150
55151 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
55152
55153         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
55154         it breaks C++ compilation.
55155         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
55156
55157 2003-07-10  Simon Josefsson  <jas@extundo.com>
55158
55159         * modules/strchrnul (Makefile.am): Add strchrnul.h.
55160
55161 2003-07-10  Jim Meyering  <jim@meyering.net>
55162
55163         * m4/clock_time.m4: Remove trailing blank.
55164         * m4/intmax_t.m4: Likewise.
55165
55166 2003-07-10  Jim Meyering  <jim@meyering.net>
55167
55168         * lib/vasnprintf.c: Remove trailing blanks.
55169         Make cpp indentation consistent.
55170
55171 2003-07-09  Paul Eggert  <eggert@twinsun.com>
55172
55173         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
55174         posixver.c, strftime.c, strnlen.c, strverscmp.c:
55175         Switch from LGPL to GPL.
55176
55177 2003-07-09  Paul Eggert  <eggert@twinsun.com>
55178
55179         * config/srclist.txt: Sort sublists.  Add
55180         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
55181         that differ from gnulib for one reason or another; we'd like this list
55182         to be smaller but for now let's document what we have.
55183
55184 2003-07-08  Paul Eggert  <eggert@twinsun.com>
55185
55186         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
55187         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
55188         and sweeter "eval x=$x".
55189         * config/srclist.txt: Get lib/argp* from glibc.
55190
55191 2003-07-07  Paul Eggert  <eggert@twinsun.com>
55192
55193         * lib/mktime.c: Fix some boundary cases and remove need for floating
55194         point.
55195
55196         Issue a compile-time diagnostic if time_t is floating point, or if
55197         two's complement arithmetic is not in effect, or if arithmetic
55198         right shift does not propagate the sign.  These assumptions were
55199         all in the original code but they weren't checked.
55200
55201         (TIME_T_MIDPOINT, verify): New macros.
55202         (__isleap): Remove; it has integer overflow problems.
55203         (leapyear): New function, without those problems.
55204         (ydhms_tm_diff): Remove; splitting into two parts.
55205         (ydhms_diff): New function, containing the arithmetic part of
55206         the old ydhms_tm_diff function.  Issue a compile-time
55207         diagnostic if we are not using C99 integer division.
55208         Avoid casts when possible.
55209         (guess_time_tm): New function, containing the checking part of
55210         the old ydhms_tm_diff function.  Return the new value, rather than
55211         the difference between it and the old.  Accept a new argument T
55212         so that *T specifies the old value.  Check for overflow in the result.
55213
55214         (__mktime_internal): Use a time_t offset, not a long int offset.
55215         This undoes the 2003-06-04 change, which is no longer needed now
55216         that we have better overflow checking.
55217         (localtime_offset): Likewise.
55218
55219         (__mktime_internal): Avoid harmful overflow on hosts where time_t
55220         and long are 64-bit but int is only 32-bit.
55221         (ydhms_diff): Use long int to store year1 and yday1.
55222         Issue a compile-time diagnostic if long int is not wide enough.
55223
55224         (__mktime_internal): Use long int to store adjusted year and yday.
55225         Use plain C rather than preprocessor commands, if that doesn't
55226         affect efficiency.
55227         Check for overflow (and try to repair) after each probe
55228         rather than checking only at the very end.  This avoids some bugs
55229         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
55230         does not equal GMT offset at maximum time).
55231         Use integer to check for overflow rather than floating point; this
55232         is more portable to non-IEEE hosts, and is a tad faster.
55233         When we detect that we are oscillating between two values,
55234         don't check whether tm_isdst has the requested value, since
55235         we already know the answer.  When tm_isdst has the wrong value,
55236         use a different heuristic to find the right one, based on the
55237         extreme values actually observed in practice in tz2003a,
55238         rather than the (overly optimistic) "previous 3 calendar quarters".
55239
55240         (not_equal_tm, print_tm, check_result): Use "const T" rather than
55241         "T const" to accommodate glibc style.
55242         (check_result): Use less-confusing report format.  "long" -> "long int.
55243         (main): Likewise.
55244         Don't loop if the iteration overflows time_t.
55245         Allow a negative step in the iteration.
55246
55247 2003-07-06  Karl Berry  <karl@gnu.org>
55248
55249         * config/depcomp: update from automake.
55250         * config/config.sub: update from prep.
55251
55252 2003-07-03  Karl Berry  <karl@gnu.org>
55253
55254         * config/config.guess: update from prep.
55255
55256 2003-07-01  Paul Eggert  <eggert@twinsun.com>
55257
55258         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
55259         xreadlink.c now includes it unconditionally.
55260
55261 2003-07-01  Paul Eggert  <eggert@twinsun.com>
55262
55263         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
55264         having it depend on HAVE_SYS_TYPES_H.
55265
55266 2003-07-01  Bruno Haible  <bruno@clisp.org>
55267
55268         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
55269         <sys/types.h> should be sufficient.
55270         Reported by Paul Eggert.
55271
55272 2003-06-26  Karl Berry  <karl@gnu.org>
55273
55274         * config/depcomp: update from automake.
55275
55276 2003-06-26  Bruno Haible  <bruno@clisp.org>
55277
55278         * modules/human: Depend on module stdbool.
55279
55280 2003-06-25  Bruno Haible  <bruno@clisp.org>
55281
55282         * modules/readlink: New file.
55283         * modules/xreadlink: Depend on it.
55284         * MODULES.html.sh (func_all_modules): Add readlink.
55285
55286 2003-06-25  Bruno Haible  <bruno@clisp.org>
55287
55288         * m4/readlink.m4: New file.
55289
55290 2003-06-25  Bruno Haible  <bruno@clisp.org>
55291
55292         * lib/readlink.c: New file.
55293
55294 2003-06-22  Karl Berry  <karl@gnu.org>
55295
55296         * config/srclist.txt: update mkinstalldirs from automake.
55297         * config/mkinstalldirs: update.
55298
55299 2003-06-22  Bruno Haible  <bruno@clisp.org>
55300
55301         Portability to mingw32.
55302         * m4/ssize_t.m4: New file, from GNU gettext.
55303         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
55304         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
55305
55306 2003-06-22  Bruno Haible  <bruno@clisp.org>
55307
55308         * modules/safe-read: Add m4/ssize_t.m4.
55309         * modules/xreadlink: Add m4/ssize_t.m4.
55310
55311 2003-06-20  Bruno Haible  <bruno@clisp.org>
55312
55313         Assume C89, so PARAMS isn't needed.
55314         * lib/unicodeio.h (PARAMS): Remove.
55315         * lib/unicodeio.c: Don't use PARAMS.
55316
55317 2003-06-18  Karl Berry  <karl@gnu.org>
55318
55319         * config/config.{guess,sub}: update from prep.
55320
55321 2003-06-18  Jim Meyering  <jim@meyering.net>
55322
55323         Merge changes from coreutils.
55324         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
55325         Remove explicit declarations of xmalloc and realloc.
55326         Include xalloc.h.
55327         (read_utmp): Remove anachronistic cast of xmalloc.
55328
55329 2003-06-17  Paul Eggert  <eggert@twinsun.com>
55330
55331         Assume C89, so PARAMS isn't needed.
55332         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
55333         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
55334         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
55335         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
55336         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
55337         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
55338         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
55339         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
55340         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
55341         lib/xstrtod.h, lib/xstrtol.h: Likewise.
55342         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
55343         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
55344         no longer needed. Anyway, config.h should always be included before any
55345         other file.
55346
55347 2003-06-11  Simon Josefsson  <jas@extundo.com>
55348
55349         * modules/sysexits: New file.
55350         * MODULES.html.sh (func_all_modules): Add sysexits.
55351
55352 2003-06-11  Simon Josefsson  <jas@extundo.com>
55353
55354         * lib/sysexit_.h: New file.
55355
55356 2003-06-11  Derek Price  <derek@ximbiot.com>
55357
55358         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
55359         necessary.
55360
55361 2003-06-11  Bruno Haible  <bruno@clisp.org>
55362
55363         * m4/sysexits.m4: New file.
55364
55365 2003-06-10  Simon Josefsson  <jas@extundo.com>
55366
55367         * lib/argp.h: New file, from glibc.
55368         * lib/argp-ba.c: New file, from glibc.
55369         * lib/argp-eexst.c: New file, from glibc.
55370         * lib/argp-fmtstream.c: New file, from glibc.
55371         * lib/argp-fmtstream.h: New file, from glibc.
55372         * lib/argp-fs-xinl.c: New file, from glibc.
55373         * lib/argp-help.c: New file, from glibc.
55374         * lib/argp-namefrob.h: New file, from glibc.
55375         * lib/argp-parse.c: New file, from glibc.
55376         * lib/argp-pv.c: New file, from glibc.
55377         * lib/argp-pvh.c: New file, from glibc.
55378         * lib/argp-xinl.c: New file, from glibc.
55379
55380 2003-06-10  Simon Josefsson  <jas@extundo.com>
55381
55382         * modules/strchrnul: New file.
55383
55384 2003-06-10  Simon Josefsson  <jas@extundo.com>
55385
55386         * modules/argp: New file.
55387
55388 2003-06-10  Simon Josefsson  <jas@extundo.com>
55389
55390         * m4/strchrnul.m4: New file.
55391
55392 2003-06-10  Simon Josefsson  <jas@extundo.com>
55393
55394         * lib/strchrnul.h: New file.
55395         * lib/strchrnul.c: New file.
55396
55397 2003-06-10  Bruno Haible  <bruno@clisp.org>
55398
55399         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
55400
55401 2003-06-07  Karl Berry  <karl@gnu.org>
55402
55403         * config/config.{guess,sub}: update from prep.
55404
55405 2003-06-07  Jim Meyering  <jim@meyering.net>
55406
55407         * modules/strtod: Use $(...) notation, not @...@ for
55408         AC_REPLACE'd variables.
55409         * modules/localcharset: Likewise.
55410
55411 2003-06-07  Jim Meyering  <jim@meyering.net>
55412
55413         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
55414         in place of my name in the copyright comment.
55415         Remove definition and uses of __P.
55416
55417         From coreutils.
55418         * lib/stat.c: Don't declare xmalloc explicitly.
55419         Instead, include "xalloc.h".
55420         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
55421         xrealloc, and xcalloc return values.
55422         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
55423         Improve comment.
55424         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
55425
55426 2003-06-07  Bruno Haible  <bruno@clisp.org>
55427
55428         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
55429         avoid AC_CONFIG_LINKS.
55430         * modules/fnmatch (Makefile.am): Use explicit creation rule for
55431         fnmatch.h, to avoid AC_CONFIG_LINKS.
55432         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
55433
55434 2003-06-07  Bruno Haible  <bruno@clisp.org>
55435
55436         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
55437         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
55438         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
55439         directory.
55440         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
55441         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
55442         directory.
55443
55444 2003-06-06  Jim Meyering  <jim@meyering.net>
55445
55446         Merge from coreutils.
55447         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
55448         Consolidate declarations and initializations of *_base* locals.
55449
55450         Merge from coreutils.
55451         This avoids a core dump on systems without GNU putenv,
55452         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
55453         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
55454         (unsetenv): New static function, from GNU libc.
55455         (rpl_putenv): Use it.
55456
55457         * lib/modechange.c: Remove trailing blanks.
55458
55459         Merge from coreutils.
55460         * lib/fsusage.c: Remove declaration of statfs.
55461         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
55462
55463         * lib/posixtm.c: Include <stdbool.h> unconditionally.
55464
55465 2003-06-06  Jim Meyering  <jim@meyering.net>
55466
55467         * lib/stdbool_.h: Renamed from stdbool.h.in.
55468
55469 2003-06-06  Jim Meyering  <jim@meyering.net>
55470             Bruno Haible  <bruno@clisp.org>
55471
55472         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
55473         Adjust Makefile.am snippet not to redirect directly to target.
55474         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
55475
55476 2003-06-05  Paul Eggert  <eggert@twinsun.com>
55477
55478         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
55479         mismatch, look in future quarters as well as past.  This fixes a
55480         bug when processing fall-backwards gaps immediately after a long
55481         period of daylight-saving time.
55482
55483         * lib/mktime.c: Assume freestanding C89 or better.
55484         (HAVE_LIMITS_H): Remove.  Assume it's 1.
55485         (__P): Remove; not used.
55486         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
55487         (mktime, not_equal_tm, print_tm, check_result,
55488         main): Use prototypes.  Use const * where appropriate.
55489         (main): Fix typo in testing code that uncovered by above changes.
55490         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
55491
55492 2003-06-04  Paul Eggert  <eggert@twinsun.com>
55493
55494         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
55495         locale.h, localeconv.  This merges changes from coreutils.
55496
55497         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
55498         It can be removed after the next Autoconf is released.
55499         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
55500         needed.
55501
55502 2003-06-04  Paul Eggert  <eggert@twinsun.com>
55503
55504         * lib/mktime.c: Fix Debian bug 177940
55505         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
55506         (localtime_offset): Now long int, not time_t, because we want it
55507         to be guaranteed to be signed.  All uses changed.
55508         (__mktime_internal): If overflow would occur when adding offset,
55509         don't add it.
55510
55511         Merge 'human' changes from coreutils.  Rewrite to support
55512         locale-specific notations like thousands separators.
55513         * lib/human.c: Simplify authorship notice.
55514         Include human.h immediately after config.h.
55515         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
55516         <limits.h>: Do not include, since human.h does.
55517         (SIZE_MAX, UINTMAX_MAX): New macros.
55518         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
55519         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
55520         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
55521         (power_letter): Renamed from suffixes.
55522         (generate_suffix_backwards): Remove.
55523         (adjust_value): Now takes int style (because of human.h changes)
55524         and long double value (for greater precision on some platforms).
55525         (group_number): New function.
55526         (human_readable): Use it.  Use integer options, not enum.
55527         Put the options before the sizes in the arg list.
55528         Support all the new options.
55529         The old human_readable function has been removed;
55530         use inttostr.h instead.
55531         (human_readable, default_block_size, humblock):
55532         Use uintmax_t, not int, for block sizes.
55533         (human_readable_inexact, block_size_types): Remove.
55534         (block_size_opts): New constant.
55535         (human_options): Renamed from human_block_size, with new signature
55536         that allows block sizes up to UINTMAX_MAX.  All callers changed.
55537         * lib/human.h: Add copyright and authorship notice.
55538         Include <limits.h> and <stdbool.h> unconditionally.
55539         (PARAMS): Remove.  All uses removed.
55540         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
55541         (enum human_inexact_style): Remove tag; now a nameless enum.
55542         (human_floor, human_ceiling, human_round_to_even): Now have
55543         values 2, 0, 1 rather than -1, 1, 0.
55544         (human_group_digits, human_suppress_point_zero, human_autoscale,
55545         human_base_1024, human_SI, human_B): New constants.
55546         (human_readable_inexact, human_block_size): Remove.
55547         (human_readable): Size args are now uintmax_t, not int.
55548         (human_options): New decl.
55549
55550         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
55551         unnecessary now that we assume C89 or better.  This change
55552         imported from coreutils.
55553
55554         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
55555         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
55556         in the 2003-05-30 sync from glibc.
55557
55558         .h files should stand alone, but we shouldn't include <sys/types.h>
55559         if we can get away with just <stddef.h>.
55560
55561         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
55562         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
55563         rather than <sys/types.h>, as we merely need size_t.
55564         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
55565         to get size_t.
55566         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
55567         Include <stdio.h>, to get FILE.
55568         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
55569         memcasecmp.h has included <stddef.h> and all we need is size_t.
55570         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
55571         our interface, instead of including <sys/types.h>
55572
55573 2003-06-04  Paul Eggert  <eggert@twinsun.com>
55574
55575         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
55576         now, as glibc mktime is buggy on non-glibc systems.
55577
55578 2003-06-03  Karl Berry  <karl@gnu.org>
55579
55580         * config/config.sub: update from prep.
55581
55582 2003-06-02  Paul Eggert  <eggert@twinsun.com>
55583
55584         [from coreutils]
55585         Fix some minor time-related bugs with POSIX time arguments.
55586         Some valid time stamps were being rejected (notably -1, and
55587         time stamps before 1900 on 64-bit hosts).  And some invalid
55588         time stamps were being accepted, e.g. September 31.
55589
55590         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
55591         that we can return (time_t) -1 successfully.
55592         * lib/posixtm.c: Likewise.
55593         [HAVE_STDBOOL_H]: Include <stdbool.h>.
55594         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
55595         (t): Remove static var.
55596         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
55597         of static var.  All uses changed.
55598         (year): Do not reject years before 1900; they can occur with
55599         64-bit time_t.
55600         (posix_time_parse): Do not check for out-of-range components;
55601         that is now the caller's responsibility, since our checks were
55602         only approximations.
55603         (posixtime): Use mktime to check for out-of-range components,
55604         since it knows them exactly.
55605         If mktime returns (time_t) -1, check whether an error actually occurred
55606         by invoking localtime on -1.
55607         (main) [TEST_POSIXTIME]: Check for input data errors, and report
55608         posixtime failures better.
55609         Improve the test data (in comments only).
55610
55611 2003-06-02  Karl Berry  <karl@gnu.org>
55612
55613         * config/mkinstalldirs (version): new variable.
55614         (--version): new option.
55615         (usage): improve message.
55616
55617 2003-05-30  Karl Berry  <karl@gnu.org>
55618
55619         * lib/mktime.c: update from libc.
55620
55621 2003-05-30  Bruno Haible  <bruno@clisp.org>
55622
55623         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
55624         * config/config.rpath: Upgrade to gettext-0.12.1.
55625
55626 2003-05-30  Bruno Haible  <bruno@clisp.org>
55627
55628         * m4/gettext.m4: Upgrade to gettext-0.12.1.
55629         * m4/nls.m4: New file, from gettext-0.12.1.
55630         * m4/po.m4: New file, from gettext-0.12.1.
55631         * m4/progtest.m4: Upgrade to gettext-0.12.1.
55632
55633 2003-05-30  Bruno Haible  <bruno@clisp.org>
55634
55635         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
55636         * lib/localcharset.h: Likewise.
55637         * lib/localcharset.c: Likewise.
55638
55639 2003-05-29  Karl Berry  <karl@gnu.org>
55640
55641         * config/config.rpath: update from gettext.
55642
55643 2003-05-28  Paul Eggert  <eggert@twinsun.com>
55644
55645         Assume the headers required for C89 freestanding compilers.
55646         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
55647         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
55648         * m4/human.m4 (gl_HUMAN): Likewise.
55649         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
55650         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
55651         * m4/userspec.m4 (gl_USERSPEC): Likewise.
55652         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
55653         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55654         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
55655
55656 2003-05-28  Paul Eggert  <eggert@twinsun.com>
55657
55658         Assume the headers required for C89 freestanding compilers.
55659         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
55660         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
55661         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
55662         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
55663         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
55664         define, since <limits.h> is guaranteed to do that.
55665         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
55666         * lib/exclude.c: Include <stdbool.h> unconditionally.
55667         * lib/tempname.c: Include <stddef.h> unconditionally.
55668         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
55669         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
55670         <stddef.h> does that.
55671         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
55672         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
55673         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
55674         needed.
55675         * lib/xstrtol.c: Likewise.
55676         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
55677         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
55678
55679         * lib/addext.c (addext): Use assignment rather than cast, to avoid
55680         warnings on some platforms.
55681
55682         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
55683         arbitrarily.
55684
55685 2003-05-26  Jim Meyering  <jim@meyering.net>
55686
55687         Merge in a change from coreutils:
55688         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
55689         that is guaranteed to be `no'.  Use `no_such_member' to indicate
55690         that condition, rather than `-1' which is slightly misleading.
55691         Change the name of the cache variable to have the gl_ prefix.
55692         Prompted by a patch from Richard Dawe for DJGPP.
55693
55694 2003-05-24  Karl Berry  <karl@gnu.org>
55695
55696         * config/config.guess: update from prep.
55697
55698 2003-05-22  Karl Berry  <karl@gnu.org>
55699
55700         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
55701
55702 2003-05-20  Karl Berry  <karl@gnu.org>
55703
55704         * config/config.guess: update from prep.
55705
55706 2003-05-18  Karl Berry  <karl@gnu.org>
55707
55708         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
55709         might actually be set by the user.
55710
55711         * config/depcomp, install-sh, mdate-sh: update from automake.
55712
55713 2003-05-17  Bruno Haible  <bruno@clisp.org>
55714
55715         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
55716         invalid expansion for AC_EGREP_CPP.
55717         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
55718         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
55719         Suggested by Akim Demaille <akim@epita.fr> in
55720         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
55721
55722 2003-05-12  Jim Meyering  <jim@meyering.net>
55723
55724         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
55725         the space-padded-by-default conversion specifiers, %e, %k, %l.
55726
55727 2003-05-12  Bruno Haible  <bruno@clisp.org>
55728
55729         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
55730         the string is longer than 4 KB.
55731
55732 2003-05-11  Karl Berry  <karl@gnu.org>
55733
55734         * config/config.{guess,sub}: update from prep.
55735
55736 2003-05-09  Bruno Haible  <bruno@clisp.org>
55737
55738         * modules/error: Add m4/strerror_r.m4 to file list.
55739
55740 2003-05-03  Bruno Haible  <bruno@clisp.org>
55741
55742         Upgrade to Unicode-4.0.
55743         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
55744         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
55745         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
55746         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
55747         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
55748         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
55749         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
55750         Change width of U+E0100..U+E01EF from 1 to 0.
55751
55752 2003-04-25  Jim Meyering  <jim@meyering.net>
55753
55754         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
55755         of type size_t, not int.
55756
55757 2003-04-25  Bruno Haible  <bruno@clisp.org>
55758
55759         * lib/copy-file.c: Include <stddef.h>, for size_t.
55760
55761 2003-04-21  Paul Eggert  <eggert@twinsun.com>
55762
55763         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
55764         code which expansion is under static control.  Patch imported from
55765         Akim Demaille's patch to Bison; see
55766         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
55767
55768 2003-04-14  Bruno Haible  <bruno@clisp.org>
55769
55770         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
55771
55772 2003-04-11  Jim Meyering  <jim@meyering.net>
55773
55774         Merge changes from Coreutils.
55775
55776         2003-03-22  Jim Meyering  <jim@meyering.net>
55777
55778         * lib/strftime.c (widen): Cast alloca return value to proper type.
55779
55780         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
55781
55782         From GNU libc.
55783         * lib/strftime.c (my_strftime): Handle very large width
55784         specifications for numeric values correctly.  Improve checks for
55785         overflow.
55786
55787         2003-01-19  Jim Meyering  <jim@meyering.net>
55788
55789         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
55790         definitions.
55791         (nl_get_alt_digit) [! defined my_strftime]: Define.
55792         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
55793         _nl_get_alt_digit and _nl_get_walt_digit.
55794
55795         * lib/strftime.c (my_strftime): Merge in locale-related changes from
55796         libc. These changes have no effect outside of _LIBC.
55797
55798 2003-04-10  Bruno Haible  <bruno@clisp.org>
55799
55800         * modules/findprog: New file.
55801         * MODULES.html.sh (func_all_modules): Add it.
55802
55803 2003-04-10  Bruno Haible  <bruno@clisp.org>
55804
55805         * m4/findprog.m4: New file.
55806         * m4/eaccess.m4: New file.
55807
55808 2003-04-10  Bruno Haible  <bruno@clisp.org>
55809
55810         * lib/findprog.h: New file, from GNU gettext.
55811         * lib/findprog.c: New file, from GNU gettext.
55812
55813 2003-04-05  Jim Meyering  <jim@meyering.net>
55814
55815         Merge changes from Coreutils.
55816
55817         * lib/exclude.h (PARAMS): Remove definition and uses.
55818         * lib/exclude.c: Remove uses of `PARAMS'.
55819
55820         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
55821         Add test-cases for DOS filenames. Declare program_name.
55822         (main): Set up program_name.  Patch by Rich Dawe.
55823
55824         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
55825         error from mntctl.
55826         Use mntctl's return value to drive the entry-processing loop, since
55827         we can't rely on the value of the vmt_length member in the last
55828         entry.  On some systems doing so could result in exhausting
55829         virtual memory.  Based in part on a patch from Mike Jetzer.
55830
55831 2003-04-04  Bruno Haible  <bruno@clisp.org>
55832
55833         * modules/linebreak: New file.
55834         * MODULES.html.sh (func_all_modules): Add it.
55835
55836 2003-04-04  Bruno Haible  <bruno@clisp.org>
55837
55838         * m4/linebreak.m4: New file.
55839
55840 2003-04-04  Bruno Haible  <bruno@clisp.org>
55841
55842         * lib/linebreak.h: New file, from GNU gettext.
55843         * lib/linebreak.c: New file, from GNU gettext with slight
55844         modifications.
55845         * lib/lbrkprop.h: New file, from GNU gettext.
55846
55847 2003-04-03  Bruno Haible  <bruno@clisp.org>
55848
55849         * modules/utf8-ucs4: New file.
55850         * modules/utf16-ucs4: New file.
55851         * modules/ucs4-utf8: New file.
55852         * modules/ucs4-utf16: New file.
55853         * MODULES.html.sh (func_all_modules): Add them.
55854
55855 2003-04-03  Bruno Haible  <bruno@clisp.org>
55856
55857         * m4/utf-ucs4.m4: New file.
55858         * m4/ucs4-utf.m4: New file.
55859
55860 2003-04-03  Bruno Haible  <bruno@clisp.org>
55861
55862         * lib/utf8-ucs4.h: New file, from GNU gettext.
55863         * lib/utf16-ucs4.h: New file, from GNU gettext.
55864         * lib/ucs4-utf8.h: New file, from GNU gettext.
55865         * lib/ucs4-utf16.h: New file, from GNU gettext.
55866
55867 2003-04-02  Bruno Haible  <bruno@clisp.org>
55868
55869         * modules/binary-io: New file.
55870         * MODULES.html.sh (func_all_modules): Add it.
55871
55872 2003-04-02  Bruno Haible  <bruno@clisp.org>
55873
55874         * lib/binary-io.h: New file, from GNU gettext.
55875
55876 2003-04-01  Bruno Haible  <bruno@clisp.org>
55877
55878         * modules/pathname: New file.
55879         * MODULES.html.sh (func_all_modules): Add it.
55880
55881 2003-04-01  Bruno Haible  <bruno@clisp.org>
55882
55883         * lib/pathname.h: New file, from GNU gettext.
55884         * lib/concatpath.c: New file, from GNU gettext.
55885
55886 2003-03-30  Bruno Haible  <bruno@clisp.org>
55887
55888         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
55889
55890 2003-03-30  Bruno Haible  <bruno@clisp.org>
55891
55892         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
55893         function chown() doesn't exist.
55894
55895 2003-03-28  Bruno Haible  <bruno@clisp.org>
55896
55897         * modules/copy-file: New file.
55898         * MODULES.html.sh (func_all_modules): Add it.
55899
55900 2003-03-28  Bruno Haible  <bruno@clisp.org>
55901
55902         * m4/copy-file.m4: New file.
55903
55904 2003-03-28  Bruno Haible  <bruno@clisp.org>
55905
55906         * lib/copy-file.h: New file, from GNU gettext.
55907         * lib/copy-file.c: New file, from GNU gettext.
55908
55909 2003-03-18  Jim Meyering  <jim@meyering.net>
55910
55911         * lib/quote.c (quote_n): Fix typo in comment.
55912
55913 2003-03-18  Bruno Haible  <bruno@clisp.org>
55914
55915         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
55916         checking.
55917         * m4/onceonly_2_57.m4: Likewise.
55918
55919 2003-03-17  Bruno Haible  <bruno@clisp.org>
55920
55921         * m4/onceonly.m4: Require autoconf 2.54 or newer.
55922         (m4_quote): Remove macro.
55923         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
55924
55925 2003-03-14  Jim Meyering  <jim@meyering.net>
55926
55927         Merge changes from Coreutils.
55928         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
55929         to be const, in order to avoid warnings.
55930         (obstack_room): Likewise.
55931         (obstack_empty_p): Likewise.
55932
55933 2003-03-14  Bruno Haible  <bruno@clisp.org>
55934
55935         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
55936         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
55937
55938 2003-03-13  Paul Eggert  <eggert@twinsun.com>
55939
55940         Merge changes from Bison.
55941         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
55942         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
55943         when compiling Bison 1.875's `bitset bset = obstack_alloc
55944         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
55945         * lib/hash.c: Include <stdbool.h> unconditionally.
55946
55947 2003-03-13  Paul Eggert  <eggert@twinsun.com>
55948
55949         * m4/onceonly.m4 (m4_quote): New macro.
55950         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
55951         Quote AC_FOREACH variable-expansions properly.
55952
55953 2003-03-13  Paul Eggert  <eggert@twinsun.com>
55954
55955         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
55956
55957 2003-03-09  Paul Eggert  <eggert@twinsun.com>
55958
55959         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
55960         Reported by Bruce Becker; see:
55961         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
55962
55963 2003-03-03  Paul Eggert  <eggert@twinsun.com>
55964             Bruno Haible  <bruno@clisp.org>
55965
55966         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
55967         Reported by John Hughes, see
55968         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
55969
55970 2003-02-20  Bruno Haible  <bruno@clisp.org>
55971
55972         * MODULES.html.sh (func_all_modules): Add poll.
55973
55974 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
55975
55976         * modules/poll: New file.
55977
55978 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
55979
55980         * lib/poll_.h: New file.
55981         * lib/poll.c: New file.
55982
55983 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
55984
55985         * m4/poll.m4: New file.
55986
55987 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
55988
55989         * modules/mathl: New file.
55990
55991 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
55992
55993         * lib/mathl.h: New file.
55994         * lib/acosl.c: New file.
55995         * lib/asinl.c: New file.
55996         * lib/atanl.c: New file.
55997         * lib/ceill.c: New file.
55998         * lib/cosl.c: New file.
55999         * lib/expl.c: New file.
56000         * lib/floorl.c: New file.
56001         * lib/frexpl.c: New file.
56002         * lib/ldexpl.c: New file.
56003         * lib/logl.c: New file.
56004         * lib/sincosl.c: New file.
56005         * lib/sinl.c: New file.
56006         * lib/sqrtl.c: New file.
56007         * lib/tanl.c: New file.
56008         * lib/trigl.c: New file.
56009         * lib/trigl.h: New file.
56010
56011 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
56012
56013         * m4/mathl.m4: New file.
56014
56015 2003-02-18  Bruno Haible  <bruno@clisp.org>
56016
56017         * MODULES.html.sh (func_all_modules): Add mathl.
56018
56019 2003-02-17  Bruno Haible  <bruno@clisp.org>
56020
56021         * modules/mkdtemp: New module.
56022         * MODULES.html.sh (func_all_modules): Add it.
56023
56024 2003-02-17  Bruno Haible  <bruno@clisp.org>
56025
56026         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
56027
56028 2003-02-17  Bruno Haible  <bruno@clisp.org>
56029
56030         * lib/mkdtemp.h: New file, from GNU gettext.
56031         * lib/mkdtemp.c: New file, from GNU gettext.
56032
56033 2003-02-02  Jim Meyering  <jim@meyering.net>
56034
56035         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
56036         e.g. glibc-2.2.93.
56037
56038 2003-01-31  Bruno Haible  <bruno@clisp.org>
56039
56040         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
56041         'rpl_rename'.
56042         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
56043         'rpl_strnlen'.
56044         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
56045         'rpl_strtod'.
56046         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
56047         'rpl_utime'.
56048
56049 2003-01-31  Bruno Haible  <bruno@clisp.org>
56050
56051         * lib/rename.c: #undef rename before defining rpl_rename.
56052         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
56053
56054 2003-01-30  Bruno Haible  <bruno@clisp.org>
56055
56056         * modules/vasnprintf, modules/vasprintf: New modules.
56057         * MODULES.html.sh (func_all_modules): Add them.
56058
56059 2003-01-30  Bruno Haible  <bruno@clisp.org>
56060
56061         * m4/signed.m4: New file, from GNU gettext.
56062         * m4/longdouble.m4: New file, from GNU gettext.
56063         * m4/wchar_t.m4: New file, from GNU gettext.
56064         * m4/wint_t.m4: New file, from GNU gettext.
56065         * m4/vasnprintf.m4: New file.
56066         * m4/vasprintf.m4: New file.
56067
56068 2003-01-30  Bruno Haible  <bruno@clisp.org>
56069
56070         * lib/printf-args.h: New file, from GNU gettext.
56071         * lib/printf-args.c: New file, from GNU gettext.
56072         * lib/printf-parse.h: New file, from GNU gettext.
56073         * lib/printf-parse.c: New file, from GNU gettext.
56074         * lib/vasnprintf.h: New file, from GNU gettext.
56075         * lib/vasnprintf.c: New file, from GNU gettext.
56076         * lib/asnprintf.c: New file, from GNU gettext.
56077         * lib/vasprintf.h: New file, from GNU gettext with modifications.
56078         * lib/vasprintf.c: New file, from GNU gettext.
56079         * lib/asprintf.c: New file, from GNU gettext.
56080
56081 2003-01-29  Bruno Haible  <bruno@clisp.org>
56082
56083         * modules/stpncpy: New module.
56084         * MODULES.html.sh (func_all_modules): Add it.
56085
56086 2003-01-29  Bruno Haible  <bruno@clisp.org>
56087
56088         * m4/stpncpy.m4: New file.
56089
56090 2003-01-29  Bruno Haible  <bruno@clisp.org>
56091
56092         * lib/stpncpy.h: New file, from GNU gettext with modifications.
56093         * lib/stpncpy.c: New file, from GNU gettext with modifications.
56094
56095 2003-01-28  Bruno Haible  <bruno@clisp.org>
56096
56097         * modules/c-ctype: New module.
56098         * MODULES.html.sh (func_all_modules): Add it.
56099
56100 2003-01-28  Bruno Haible  <bruno@clisp.org>
56101
56102         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
56103         Paul Eggert.
56104         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
56105         Paul Eggert.
56106
56107 2003-01-27  Bruno Haible  <bruno@clisp.org>
56108
56109         * modules/xsetenv: New module.
56110         * MODULES.html.sh (func_all_modules): Add it.
56111
56112 2003-01-27  Bruno Haible  <bruno@clisp.org>
56113
56114         * lib/xsetenv.h: New file, from GNU gettext.
56115         * lib/xsetenv.c: New file, from GNU gettext.
56116
56117 2003-01-23  Jim Meyering  <jim@meyering.net>
56118
56119         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
56120         from working on systems without dirfd (at least Irix and OSF1/Tru64).
56121
56122 2003-01-23  Bruno Haible  <bruno@clisp.org>
56123
56124         * modules/minmax: New module.
56125         * MODULES.html.sh (func_all_modules): Add it.
56126
56127 2003-01-23  Bruno Haible  <bruno@clisp.org>
56128
56129         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
56130         Eggert.
56131
56132 2003-01-22  Bruno Haible  <bruno@clisp.org>
56133
56134         * modules/exit: New module.
56135         * MODULES.html.sh (func_all_modules): Add it.
56136
56137 2003-01-22  Bruno Haible  <bruno@clisp.org>
56138
56139         * lib/exit.h: New file, from GNU gettext.
56140
56141 2003-01-19  Bruno Haible  <bruno@clisp.org>
56142
56143         * gnulib-tool: Recognize option --extract-maintainer.
56144         (func_get_maintainer): New function.
56145         * modules/*: Add Maintainer entry.
56146
56147 2003-01-16  Jim Meyering  <jim@meyering.net>
56148
56149         * m4/regex.m4: The `regex' struct is both input and output.
56150         Initialize it before each use.  Patch by Tim Waugh.
56151
56152 2003-01-16  Bruno Haible  <bruno@clisp.org>
56153
56154         * MODULES.html.sh: Add a table of contents. Add the module name as
56155         leftmost column. Add hyperlinks.
56156
56157 2003-01-15  Bruno Haible  <bruno@clisp.org>
56158
56159         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
56160
56161 2003-01-15  Bruno Haible  <bruno@clisp.org>
56162
56163         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
56164         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
56165         suffix.
56166
56167 2003-01-15  Bruno Haible  <bruno@clisp.org>
56168
56169         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
56170
56171 2003-01-15  Bruno Haible  <bruno@clisp.org>
56172
56173         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
56174         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
56175
56176 2003-01-14  Jim Meyering  <jim@meyering.net>
56177
56178         * lib/same.c (same_name): Tweak a comment.
56179
56180 2003-01-14  Bruno Haible  <bruno@clisp.org>
56181
56182         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
56183         when a string comparison is sufficient.
56184
56185 2003-01-14  Bruno Haible  <bruno@clisp.org>
56186
56187         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
56188         'unsigned int'.
56189
56190 2003-01-14  Bruno Haible  <bruno@clisp.org>
56191
56192         * lib/hash-pjw.c: Add comment about low quality of this function.
56193
56194 2003-01-13  Bruno Haible  <bruno@clisp.org>
56195
56196         * modules/stpcpy: Distribute lib/stpcpy.h.
56197         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
56198
56199 2003-01-13  Bruno Haible  <bruno@clisp.org>
56200
56201         * modules/*: Add a description.
56202         * modules/strpbrk: Fix Makefile.am snippet.
56203         * modules/strtoimax: Fix dependencies.
56204         * modules/strtoumax: Likewise.
56205
56206 2003-01-13  Bruno Haible  <bruno@clisp.org>
56207
56208         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
56209         * modules/alloca (Makefile.am): All object files depend on alloca.h.
56210         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
56211
56212 2003-01-13  Bruno Haible  <bruno@clisp.org>
56213
56214         * gnulib-tool (func_create_testdir): Store config/* files in the main
56215         directory.
56216         * config.rpath: Move to ...
56217         * config/config.rpath: ... here.
56218         * modules/gettext: Contains config/config.rpath, not config.rpath.
56219         * modules/iconv: Likewise.
56220
56221 2003-01-12  Paul Eggert  <eggert@twinsun.com>
56222
56223         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
56224         to avoid collisions with libcurses and libreadline.
56225
56226         * m4/getstr.m4: Remove.
56227         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
56228
56229 2003-01-12  Paul Eggert  <eggert@twinsun.com>
56230
56231         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
56232         to avoid collisions with libcurses and libreadline.
56233
56234         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
56235         * lib/getstr.h, getstr.c: Remove.
56236         * lib/getline.c: Include "getline.h", to check interface.
56237         Move body of old getstr.c here: this defines MIN_CHUNK and
56238         declares getdelim2, which is renamed from getstr.
56239         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
56240
56241         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
56242         All uses changed.
56243         * lib/linebuffer.h: Likewise.
56244         (readline): Remove backward-compatibility macro.
56245
56246 2003-01-12  Paul Eggert  <eggert@twinsun.com>
56247
56248         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
56249         to avoid collisions with libcurses and libreadline.
56250         * getstr: Remove.
56251         * MODULES.html.sh: Remove getstr.
56252         * modules/getline: Depend on unlocked-io, not getstr.
56253
56254 2003-01-12  Jim Meyering  <jim@meyering.net>
56255
56256         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
56257
56258 2003-01-10  Bruno Haible  <bruno@clisp.org>
56259
56260         * modules/alloca: Change Makefile.am requirements. Simplify Include
56261         requirements. Add lib/alloca_.h to file list.
56262
56263 2003-01-10  Bruno Haible  <bruno@clisp.org>
56264
56265         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
56266
56267 2003-01-10  Bruno Haible  <bruno@clisp.org>
56268
56269         * lib/alloca_.h: New file.
56270         * lib/getdate.y: Unconditionally include alloca.h.
56271         * lib/makepath.c: Likewise.
56272         * lib/setenv.c: Likewise.
56273         * lib/userspec.c: Likewise.
56274
56275 2003-01-09  Karl Berry  <karl@gnu.org>
56276
56277         * MODULES.html.sh: include `dirname $0` in PATH, to find
56278         gnulib-tool.
56279
56280 2003-01-09  Bruno Haible  <bruno@clisp.org>
56281
56282         * modules/stdbool: Change configure.ac, Makefile.am requirements.
56283         Simplify Include requirements. Add lib/stdbool.h.in to file list.
56284
56285 2003-01-09  Bruno Haible  <bruno@clisp.org>
56286
56287         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
56288
56289 2003-01-09  Bruno Haible  <bruno@clisp.org>
56290
56291         * lib/stdbool.h.in: New file.
56292
56293 2003-01-09  Bruno Haible  <bruno@clisp.org>
56294
56295         * gnulib-tool (func_all_modules): Ignore files ending in ~.
56296         * MODULES.html.sh: Likewise.
56297
56298 2003-01-08  Jim Meyering  <jim@meyering.net>
56299
56300         * lib/full-write.c: Undefine and define-away `const' after inclusion
56301         of errno.h, not before.  Suggestion from Bruno Haible.
56302
56303 2003-01-08  Bruno Haible  <bruno@clisp.org>
56304
56305         * modules/full-read: Depend on full-write.
56306
56307 2003-01-08  Bruno Haible  <bruno@clisp.org>
56308
56309         * lib/safe-read.c: Include specification header first, to ensure its
56310         selfcontainedness.
56311         * lib/full-write.c: Likewise.
56312
56313 2003-01-07  Jim Meyering  <jim@meyering.net>
56314
56315         * lib/full-write.c: Rework so that it may serve to define full_read,
56316         too.
56317         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
56318
56319 2003-01-07  Bruno Haible  <bruno@clisp.org>
56320
56321         * lib/strtoimax.c: Include <stdint.h> as an alternative to
56322         <inttypes.h>.
56323         * lib/xstrtol.h: Likewise.
56324         * lib/xstrtoimax.c: Likewise.
56325         * lib/xstrtoumax.c: Likewise.
56326         * lib/human.h: Likewise.
56327
56328         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
56329         on systems that have <inttypes.h> but not <stdint.h>.
56330
56331 2003-01-07  Bruno Haible  <bruno@clisp.org>
56332
56333         * MODULES.html.sh: Add copyright notice.
56334         (missed_files): Omit CVS directory entries.
56335         (func_module): Make it work with sed-3.02.
56336         * MODULES.txt: Remove file.
56337
56338 2003-01-06  Jim Meyering  <jim@meyering.net>
56339
56340         * lib/version-etc.c: Update year in translatable copyright string.
56341
56342 2003-01-03  Karl Berry  <karl@gnu.org>
56343
56344         * config/config.{guess,sub}: update from prep.
56345
56346 2003-01-02  Karl Berry  <karl@gnu.org>
56347
56348         * doc/COPYING.DOC: belatedly updated to 1.2.
56349
56350 2003-01-01  Karl Berry  <karl@gnu.org>
56351
56352         * gnulib-tool (func_verify_module): report module name $module in
56353         error message, not $1.
56354         * gnulib-tool (create-testdir): don't complain if destdir couldn't
56355         be created, only if it doesn't exist.
56356         * gnulib-tool (last_checkin_date): don't expand the $Date here.
56357
56358 2002-12-31  Paul Eggert  <eggert@twinsun.com>
56359
56360         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
56361
56362 2002-12-31  Paul Eggert  <eggert@twinsun.com>
56363
56364         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
56365         memcmp if strcoll doesn't work.
56366
56367 2002-12-31  Bruno Haible  <bruno@clisp.org>
56368
56369         * lib/utime.c (utime_null): No need to call ftruncate if the file was
56370         nonempty.
56371
56372 2002-12-31  Bruno Haible  <bruno@clisp.org>
56373
56374         * lib/memcoll.c (STRCOLL): New macro.
56375         (memcoll): Use it.
56376
56377 2002-12-31  Bruno Haible  <bruno@clisp.org>
56378
56379         * lib/localcharset.h: New file.
56380         * lib/localcharset.c: Include it.
56381         * lib/unicodeio.c: Likewise.
56382
56383 2002-12-31  Bruno Haible  <bruno@clisp.org>
56384
56385         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
56386         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
56387
56388 2002-12-31  Bruno Haible  <bruno@clisp.org>
56389
56390         * lib/getline.h: Include <stddef.h>, for size_t.
56391
56392         * lib/unicodeio.h: Include <stddef.h>, for size_t.
56393         * lib/unicodeio.c: Don't include <stddef.h>.
56394
56395 2002-12-31  Bruno Haible  <bruno@clisp.org>
56396
56397         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
56398         HAVE_TM_ZONE.
56399
56400 2002-12-24  Karl Berry  <karl@gnu.org>
56401
56402         * config/config.guess: update from prep.
56403
56404 2002-12-24  Bruno Haible  <bruno@clisp.org>
56405
56406         General infrasructure.
56407         * m4/README: Rewritten.
56408         * m4/onceonly.m4: New file.
56409         * m4/onceonly_2_57.m4: New file.
56410
56411         Module atexit.
56412         * m4/atexit.m4: New file.
56413
56414         Module strtod.
56415         * m4/strtod.m4: New file.
56416
56417         Module strtol.
56418         * m4/strtol.m4: New file.
56419
56420         Module strtoul.
56421         * m4/strtoul.m4: New file.
56422
56423         Module memchr.
56424         * m4/memchr.m4: New file.
56425
56426         Module memcmp.
56427         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
56428         (jm_FUNC_MEMCMP): Invoke it.
56429
56430         Module memcpy.
56431         * m4/memcpy.m4: New file.
56432
56433         Module memmove.
56434         * m4/memmove.m4: New file.
56435
56436         Module memset.
56437         * m4/memset.m4: New file.
56438
56439         Module strcspn.
56440         * m4/strcspn.m4: New file.
56441
56442         Module strpbrk.
56443         * m4/strpbrk.m4: New file.
56444
56445         Module strstr.
56446         * m4/strstr.m4: New file.
56447
56448         Module strerror.
56449         * m4/strerror.m4: New file.
56450
56451         Module mktime.
56452         * m4/mktime.m4: Renamed from jm-mktime.m4.
56453         (gl_PREREQ_MKTIME): New macro.
56454         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
56455
56456         Module malloc.
56457         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
56458         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
56459         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
56460
56461         Module realloc.
56462         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
56463         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
56464         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
56465
56466         Module strftime.
56467         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
56468         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
56469         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
56470         gl_TM_GMTOFF.
56471         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
56472
56473         Module xalloc.
56474         * m4/xalloc.m4: New file.
56475
56476         Module alloca.
56477         * m4/alloca.m4: New file.
56478
56479         Module putenv.
56480         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
56481         (jm_FUNC_PUTENV): Invoke it.
56482
56483         Module setenv.
56484         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
56485         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
56486         when invoked twice.
56487         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
56488         gt_FUNC_SETENV.
56489
56490         Module memrchr.
56491         * m4/memrchr.m4: New file.
56492
56493         Module stpcpy.
56494         * m4/stpcpy.m4: New file.
56495
56496         Module strcase.
56497         * m4/strcase.m4: New file.
56498
56499         Module strdup.
56500         * m4/strdup.m4: New file.
56501
56502         Module strnlen.
56503         * m4/strnlen.m4: New file.
56504
56505         Module strndup.
56506         * m4/strndup.m4: New file.
56507
56508         Module xstrtod.
56509         * m4/xstrtod.m4: New file.
56510
56511         Module xstrtol.
56512         * m4/xstrtol.m4: New file.
56513
56514         Module getdate.
56515         * m4/getdate.m4: New file.
56516
56517         Module unlocked-io.
56518         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
56519         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
56520         * m4/jm-glibc-io.m4n: Remove file.
56521
56522         Module long-options.
56523         * m4/long-options.m4: New file.
56524
56525         Module md5.
56526         * m4/md5.m4: New file.
56527
56528         Module sha.
56529         * m4/sha.m4: New file.
56530
56531         Module getstr.
56532         * m4/getstr.m4: New file.
56533
56534         Module getline.
56535         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
56536         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
56537         <sys/types.h>, for size_t. Use the function name gnu_getline, not
56538         simply getline. Infoke gl_PREREQ_GETLINE.
56539
56540         Module obstack.
56541         * m4/obstack.m4: New file.
56542
56543         Module hash.
56544         * m4/hash.m4: New file.
56545
56546         Module readtokens.
56547         * m4/readtokens.m4: New file.
56548
56549         Module strverscmp.
56550         * m4/strverscmp.m4: New file.
56551
56552         Module stdbool.
56553         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
56554         OSF/1.
56555
56556         Module strtoll.
56557         * m4/strtoll.m4: New file.
56558
56559         Module strtoull.
56560         * m4/strtoull.m4: New file.
56561
56562         Module strtoimax.
56563         * m4/strtoimax.m4: New file.
56564
56565         Module strtoumax.
56566         * m4/strtoumax.m4: New file.
56567
56568         Module xstrtoimax.
56569         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
56570         jm_AC_PREREQ_XSTRTOIMAX.
56571         Moved the strtol prerequisites to strtol.m4.
56572         Moved the strtoll prerequisites to strtoll.m4.
56573         Moved the strtoimax prerequisites to strtoimax.m4.
56574
56575         Module xstrtoumax.
56576         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
56577         jm_AC_PREREQ_XSTRTOUMAX.
56578         Moved the strtoul prerequisites to strtoul.m4.
56579         Moved the strtoull prerequisites to strtoull.m4.
56580         Moved the strtoumax prerequisites to strtoumax.m4.
56581
56582         Module chown.
56583         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
56584         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
56585
56586         Module dup2.
56587         * m4/dup2.m4: New file.
56588
56589         Module ftruncate.
56590         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
56591         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
56592
56593         Module getgroups.
56594         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
56595         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
56596
56597         Module gettimeofday.
56598         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
56599         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
56600         gl_PREREQ_GETTIMEOFDAY.
56601
56602         Module mkdir.
56603         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
56604         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
56605
56606         Module mkstemp.
56607         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
56608         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
56609         jm_AC_TYPE_UINTMAX_T.
56610         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
56611
56612         Module stat.
56613         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
56614         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
56615
56616         Module lstat.
56617         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
56618         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
56619
56620         Module timespec.
56621         * m4/timespec.m4 (gl_TIMESPEC): New macro.
56622         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
56623         * m4/st_mtim.m4: Indentation.
56624
56625         Module nanosleep.
56626         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
56627         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
56628         gl_PREREQ_NANOSLEEP.
56629
56630         Module regex.
56631         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
56632         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
56633         (gl_REGEX): New macro.
56634
56635         Module rename.
56636         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
56637         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
56638
56639         Module rmdir.
56640         * m4/rmdir.m4: New file.
56641
56642         Module utime.
56643         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
56644         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
56645         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
56646
56647         Module dirname.
56648         * m4/dirname.m4: New file.
56649
56650         Module getopt.
56651         * m4/getopt.m4: New file.
56652
56653         Module unistd-safer.
56654         * m4/unistd-safer.m4: New file.
56655
56656         Module fnmatch.
56657         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
56658         declaration.
56659         (gl_PREREQ_FNMATCH_EXTRA): New macro.
56660         (gl_FUNC_FNMATCH_POSIX): New macro.
56661         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
56662         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
56663         simply fnmatch.
56664
56665         Module exclude.
56666         * m4/exclude.m4: New file.
56667
56668         Module human.
56669         * m4/human.m4: New file.
56670
56671         Module acl.
56672         * m4/acl.m4: Nop.
56673
56674         Module backupfile.
56675         * m4/backupfile.m4: New file.
56676         * m4/d-ino.m4: Indentation.
56677
56678         Module fsusage.
56679         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
56680         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
56681         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
56682
56683         Module dirfd.
56684         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
56685         requirements.
56686
56687         Module euidaccess.
56688         * m4/euidaccess.m4: New file.
56689
56690         Module file-type.
56691         * m4/file-type.m4: New file.
56692
56693         Module fileblocks.
56694         * m4/fileblocks.m4: New file.
56695
56696         Module filemode.
56697         * m4/filemode.m4: New file.
56698
56699         Module isdir.
56700         * m4/isdir.m4: New file.
56701
56702         Module lchown.
56703         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
56704         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
56705
56706         Module makepath.
56707         * m4/makepath.m4: New file.
56708
56709         Module modechange.
56710         * m4/modechange.m4: New file.
56711
56712         Module mountlist.
56713         * m4/mountlist.m4: New file.
56714         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
56715         Indentation.
56716
56717         Module path-concat.
56718         * m4/path-concat.m4: New file.
56719
56720         Module pathmax.
56721         * m4/pathmax.m4: New file.
56722
56723         Module same.
56724         * m4/same.m4: New file.
56725
56726         Module save-cwd.
56727         * m4/save-cwd.m4: New file.
56728
56729         Module savedir.
56730         * m4/savedir.m4: New file.
56731
56732         Module xgetcwd.
56733         * m4/xgetcwd.m4: New file.
56734         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
56735
56736         Module xreadlink.
56737         * m4/xreadlink.m4: New file.
56738
56739         Module safe-read.
56740         * m4/safe-read.m4: New file.
56741
56742         Module safe-write.
56743         * m4/safe-write.m4: New file.
56744
56745         Module closeout.
56746         * m4/closeout.m4: New file.
56747
56748         Module stdio-safer.
56749         * m4/stdio-safer.m4: New file.
56750
56751         Module getpass.
56752         * m4/getpass.m4: New file.
56753
56754         Module getugroups.
56755         * m4/getugroups.m4: New file.
56756
56757         Module group-member.
56758         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
56759         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
56760
56761         Module idcache.
56762         * m4/idcache.m4: New file.
56763
56764         Module userspec.
56765         * m4/userspec.m4: New file.
56766
56767         Module gettime.
56768         * m4/clock_time.m4: New file.
56769         * m4/gettime.m4: New file.
56770
56771         Module settime.
56772         * m4/settime.m4: New file.
56773
56774         Module posixtm.
56775         * m4/posixtm.m4: New file.
56776
56777         Module gethostname.
56778         * m4/gethostname.m4: New file.
56779
56780         Module canon-host.
56781         * m4/canon-host.m4: New file.
56782
56783         Module gettext.
56784         * m4/codeset.m4: New file, from gettext-0.11.5.
56785         * m4/gettext.m4: New file, from gettext-0.11.5.
56786         * m4/glibc21.m4: New file, from gettext-0.11.5.
56787         * m4/iconv.m4: New file, from gettext-0.11.5.
56788         * m4/intdiv0.m4: New file, from gettext-0.11.5.
56789         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
56790         * m4/inttypes.m4: New file, from gettext-0.11.5.
56791         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
56792         * m4/isc-posix.m4: New file, from gettext-0.11.5.
56793         * m4/lcmessage.m4: New file, from gettext-0.11.5.
56794         * m4/lib-ld.m4: New file, from gettext-0.11.5.
56795         * m4/lib-link.m4: New file, from gettext-0.11.5.
56796         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
56797         * m4/progtest.m4: New file, from gettext-0.11.5.
56798         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
56799         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
56800         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
56801
56802         Module localcharset.
56803         * m4/localcharset.m4: New file.
56804
56805         Module hard-locale.
56806         * m4/hard-locale.m4: New file.
56807
56808         Module mbswidth.
56809         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
56810         onceonly macros.
56811         * m4/mbrtowc.m4: Add comment.
56812
56813         Module memcasecmp.
56814         * m4/memcasecmp.m4: New file.
56815
56816         Module memcoll.
56817         * m4/memcoll.m4: New file.
56818
56819         Module unicodeio.
56820         * m4/unicodeio.m4: New file.
56821
56822         Module rpmatch.
56823         * m4/rpmatch.m4: New file.
56824
56825         Module yesno.
56826         * m4/yesno.m4: New file.
56827
56828         Module exitfail.
56829         * m4/exitfail.m4: New file.
56830
56831         Module c-stack.
56832         * m4/c-stack.m4 (gl_C_STACK): New macro.
56833         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
56834
56835         Module error.
56836         * m4/error.m4 (gl_ERROR): New macro.
56837         (jm_PREREQ_ERROR): Use onceonly macros.
56838
56839         Module fatal.
56840         * m4/fatal.m4: New file.
56841
56842         Module getloadavg.
56843         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
56844         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
56845
56846         Module getpagesize.
56847         * m4/getpagesize.m4: New file.
56848
56849         Module getusershell.
56850         * m4/getusershell.m4: New file.
56851
56852         Module physmem.
56853         * m4/physmem.m4: New file.
56854
56855         Module posixver.
56856         * m4/posixver.m4: New file.
56857
56858         Module quotearg.
56859         * m4/quotearg.m4: New file.
56860
56861         Module quote.
56862         * m4/quote.m4: New file.
56863
56864         Module readutmp.
56865         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
56866
56867         Module sig2str.
56868         * m4/sig2str.m4: New file.
56869
56870         Other.
56871         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
56872         ulonglong.m4.
56873         * m4/intmax_t.m4: New file.
56874         * m4/d-type.m4: Indentation.
56875         * m4/jm-macros.m4: Update.
56876         * m4/prereq.m4 (jm_PREREQ): Update.
56877         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
56878         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
56879         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
56880         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
56881         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
56882         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
56883         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
56884         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
56885         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
56886         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
56887         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
56888         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
56889         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
56890         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
56891         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
56892         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
56893         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
56894         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
56895         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
56896
56897 2002-12-24  Bruno Haible  <bruno@clisp.org>
56898
56899         * MODULES.txt: Update according to m4/ changes.
56900
56901         Module gettext.
56902         * config.rpath: New file, from gettext-0.11.5.
56903
56904         * modules/*: New module descriptions.
56905         * gnulib-tool: New file.
56906         * MODULES.html.sh: New file.
56907
56908 2002-12-21  Karl Berry  <karl@gnu.org>
56909
56910         * doc/fdl.texi: update to version 1.2.
56911
56912 2002-12-19  Karl Berry  <karl@gnu.org>
56913
56914         * config/config.guess: update from prep.
56915
56916 2002-12-18  Bruno Haible  <bruno@clisp.org>
56917
56918         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
56919         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
56920
56921 2002-12-17  Bruno Haible  <bruno@clisp.org>
56922
56923         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
56924         stdlib.h, string.h.
56925
56926 2002-12-17  Bruno Haible  <bruno@clisp.org>
56927
56928         * lib/canon-host.c (strdup): Remove unused declaration.
56929
56930         * lib/fsusage.c: Include full_read.h.
56931         (get_fs_usage): Use full_read instead of safe_read.
56932
56933         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
56934
56935 2002-12-12  Karl Berry  <karl@gnu.org>
56936
56937         * config/config.guess: update from prep.
56938
56939 2002-12-11  Bruno Haible  <bruno@clisp.org>
56940
56941         * m4/setenv.m4: New file, from gettext-0.11.5.
56942
56943 2002-12-11  Bruno Haible  <bruno@clisp.org>
56944
56945         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
56946         not unsetenv().
56947         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
56948         modifications:
56949
56950         2002-12-11  Bruno Haible  <bruno@clisp.org>
56951
56952                 * setenv.c (alloca): Fall back to malloc.
56953                 (freea): New macro.
56954                 (setenv): Use freea() to free memory allocated with alloca().
56955
56956         2002-11-13  Bruno Haible  <bruno@clisp.org>
56957
56958                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
56959                 function declarations.
56960                 * unsetenv.c (unsetenv): Likewise.
56961
56962         2002-03-04  Bruno Haible  <bruno@clisp.org>
56963
56964                 Portability to AIX 4.3.3.
56965                 * unsetenv.c: New file, extracted from setenv.c.
56966                 * setenv.c: Move the unsetenv() function to unsetenv.c.
56967
56968         2001-12-20  Bruno Haible  <bruno@clisp.org>
56969
56970                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
56971                 use malloc instead. For SunOS 4.
56972
56973         2001-12-11  Bruno Haible  <bruno@clisp.org>
56974
56975                 * setenv.c: Declare alloca.
56976                 (compar_fn_t): New typedef.
56977                 (KNOWN_VALUE, STORE_VALUE): Use it.
56978
56979         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
56980         setenv.h.
56981
56982 2002-12-10  Paul Eggert  <eggert@twinsun.com>
56983
56984         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
56985         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
56986         Choose values that are less likely to collide with system fnmatch
56987         options.
56988         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
56989         defined (e.g., a pure POSIX system).
56990         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
56991         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
56992
56993 2002-12-06  Paul Eggert  <eggert@twinsun.com>
56994
56995         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
56996         a pain in practice to deal with generated m4 files.  This change
56997         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
56998
56999         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
57000         and jm-glibc-io.m4, as they are no longer a special case.
57001         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
57002         kludge and the auto-generation stuff.  Check only whether the
57003         functions are declared, not whether they exist, since older hosts
57004         that don't declare the functions can't use the optimization anyway.
57005
57006 2002-12-06  Jim Meyering  <jim@meyering.net>
57007
57008         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
57009
57010         Merge in changes from libc's misc/error.c, in preparation
57011         for the merge of gnulib's changes back into libc.
57012
57013         * lib/error.c (_): Define only if not already defined.
57014         Move definition to follow all #include directives.
57015         Include unlocked-io.h only if !_LIBC.
57016         [_LIBC]: Include <libio/libioP.h>.
57017         [USE_IN_LIBIO]: Include <libio/iolibio.h>
57018         (fflush): Tweak definition to use INTUSE.
57019         (putc): Define.
57020
57021 2002-12-05  Paul Eggert  <eggert@twinsun.com>
57022
57023         * lib/alloca.c [defined emacs]: Include "lisp.h".
57024         (xalloc_die) [defined emacs]: New macro.
57025         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
57026         [! defined emacs]: Include <xalloc.h>.
57027         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
57028         (pointer): Typedef to POINTER_TYPE *.
57029         (malloc): Remove decl; we now always use xmalloc.
57030         (alloca): Use old-style definition, since Emacs needs this.
57031         Check for arithmetic overflow when computing combined size.
57032
57033 2002-12-04  Paul Eggert  <eggert@twinsun.com>
57034
57035         Do not generate unlocked-io.h automatically, since it's easier to
57036         maintain it by hand.
57037
57038         * lib/unlocked-io.h: New file, from GNU diffutils,
57039         but with proper copyright notice and attribution.
57040         * lib/gen-uio: Remove.
57041         * lib/Makefile.am: Add copyright notice.
57042         (libfetish_a_SOURCES): Add unlocked-io.h.
57043         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
57044         (DISTCLEANFILES, io_functions): Remove macros.
57045         (EXTRA_DIST): Remove gen_uio.
57046         (unlocked-io.h): Remove rule.
57047
57048 2002-12-04  Jim Meyering  <jim@meyering.net>
57049
57050         Reflect the fact that stat.c and lstat.c are no longer generated.
57051         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
57052         (DISTCLEANFILES): Likewise.
57053         (EXTRA_DIST): Likewise.
57054         (all_local): Don't depend on stat.c or lstat.c.
57055         (stat.c, lstat.c): Remove rules.
57056         (EXTRA_DIST): Remove xstat.in.
57057
57058         * lib/xstat.in: Remove file.  Contents moved into stat.c.
57059         * lib/stat.c: New file.  Contents mostly from xstat.in.
57060         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
57061         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
57062
57063         * lib/safe-read.c: Rework so that it may serve to define safe_write,
57064         too.
57065         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
57066
57067 2002-12-03  Jim Meyering  <jim@meyering.net>
57068
57069         * lib/safe-read.c, safe-write.c: Change variable names and comments,
57070         but not semantics, to minimize the differences between these two files.
57071         (safe_read): Change comment to mention SAFE_READ_ERROR.
57072
57073         * lib/safe-read.c (IS_EINTR): Define.
57074         (safe_read): Use IS_EINTR in place of in-function cpp directives.
57075
57076 2002-12-02  Jim Meyering  <jim@meyering.net>
57077
57078         * lib/safe-read.c (EINTR): Define.
57079         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
57080         (INT_MAX): Provide fallback.
57081         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
57082
57083         * lib/safe-read.h (SAFE_READ_ERROR): Define.
57084
57085 2002-12-02  Bruno Haible  <bruno@clisp.org>
57086
57087         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
57088         Define, taken from safe-read.c.
57089         (INT_MAX): Provide fallback.
57090         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
57091         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
57092
57093         * lib/safe-read.c (EINTR): Remove definition.
57094         (safe_read): Don't use EINTR if it is absent.
57095
57096 2002-12-01  Jim Meyering  <jim@meyering.net>
57097
57098         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
57099         zero.
57100         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
57101
57102 2002-11-27  Paul Eggert  <eggert@twinsun.com>
57103
57104         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
57105         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
57106         with `if (! (value < limit)) abort ();', for readability.
57107
57108 2002-11-26  Karl Berry  <karl@gnu.org>
57109
57110         * lib/strdup.c: copy from libc again, with jim's ok.
57111         * lib/.cppi-disable: re-add strdup.c
57112
57113 2002-11-25  Karl Berry  <karl@gnu.org>
57114
57115         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
57116         instead of "strtol.c".
57117
57118 2002-11-25  Karl Berry  <karl@gnu.org>
57119
57120         * config/install-sh: update from automake for variable quoting, $0 in
57121         error msgs, etc.
57122
57123         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
57124         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
57125         entry.
57126
57127 2002-11-25  Jim Meyering  <jim@meyering.net>
57128
57129         * lib/mktime.c: Sync from libc, now that it has the latest fix.
57130
57131 2002-11-24  Karl Berry  <karl@gnu.org>
57132
57133         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
57134         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
57135
57136 2002-11-24  Jim Meyering  <jim@meyering.net>
57137
57138         Update from coreutils:
57139
57140         * lib/mktime.c: Merge in changes from libc.
57141
57142         Avoid a link-time failure on some Linux systems.
57143         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
57144         (otherwise).
57145         (__mon_yday): Declare with the STATIC attribute.
57146         (__mktime_internal): Likewise.
57147         Based on a report from Greg Schafer.
57148
57149 2002-11-23  Jim Meyering  <jim@meyering.net>
57150
57151         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
57152         Use `unsigned', not `int', as type of index.
57153
57154         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
57155
57156         * lib/fsusage.c: Remove unneeded parentheses around operands of
57157         `defined'.
57158
57159 2002-11-22  Paul Eggert  <eggert@twinsun.com>
57160
57161         * lib/quotearg.h: Allow multiple inclusion by surrounding with
57162         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
57163         so that we can be included first.
57164         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
57165         * lib/quotearg.c: Include quotearg.h immediately after config.h.
57166         No need to include stddef.h or sys/types.h any more.
57167         Surround local include files with "", not "<>".
57168         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
57169         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
57170         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
57171         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
57172         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
57173         (ISPRINT): Remove; no longer needed now that we assume C89.
57174
57175         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
57176         Preserve errno.
57177
57178         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
57179         quotearg_char): Use SIZE_MAX rather than
57180         (size_t) -1 when we are talking about "infinity".
57181
57182         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
57183
57184 2002-11-22  Paul Eggert  <eggert@twinsun.com>
57185
57186         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
57187         hint that one should use `if (! x) abort ();' rather than `assert
57188         (x);', and anyway it's one less thing to worry about configuring.
57189         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
57190         hash_rehash, hash_insert): Use abort rather than assert.
57191
57192 2002-11-22  Bruno Haible  <bruno@clisp.org>
57193
57194         * lib/safe-read.h: Assume C89. Add comments.
57195         (safe_read): Change return type to size_t.
57196         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
57197         byte counts > SSIZE_MAX correctly.
57198         * lib/safe-write.h: New file.
57199         * lib/safe-write.c: New file.
57200         * lib/full-read.h: New file.
57201         * lib/full-read.c: New file.
57202         * lib/full-write.h: Assume C89. Add comments.
57203         * lib/full-write.c: Include safe-write.h.
57204         (full_write): Rewritten to use safe_write.
57205         Suggested by Jim Meyering and Paul Eggert.
57206
57207 2002-11-21  Jim Meyering  <jim@meyering.net>
57208
57209         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
57210
57211         Merge in changes from the coreutils.
57212
57213         2002-09-25  Paul Eggert  <eggert@twinsun.com>
57214         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
57215         <stdint.h>.
57216         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
57217         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
57218         int.  Work more efficiently if X is the same width as uintmax_t.
57219         Do not compare X to -1, to avoid bogus compiler warning.
57220         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
57221         Don't assume that f_frsize and f_bsize are the same type.
57222
57223         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
57224         warning on FreeBSD.
57225
57226         * lib/makepath.c (make_path): Restore umask *before* creating the final
57227         component.
57228         (make_path): Minor reformatting.
57229
57230         * lib/xmalloc.c: Adjust to work with new autoconf macros,
57231         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
57232         HAVE_MALLOC/HAVE_REALLOC.
57233
57234         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
57235         dummy ones.  At least on GNU/Linux systems, `auto' means something
57236         else.
57237         From Michael Stone.
57238
57239 2002-11-21  Bruno Haible  <bruno@clisp.org>
57240
57241         Remove case insensitive option matching.
57242         * lib/argmatch.h (argcasematch): Remove declaration.
57243         (ARGCASEMATCH): Remove macro.
57244         (__xargmatch_internal): Remove case_sensitive argument.
57245         (XARGMATCH): Update.
57246         (XARGCASEMATCH): Remove macro.
57247         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
57248         case_sensitive argument.
57249         (argcasematch): Remove function.
57250         (__xargmatch_internal): Remove case_sensitive argument.
57251         (main): Use XARGMATCH instead of XARGCASEMATCH.
57252
57253         * lib/xmalloc.c: Change compile-time error message. Add comment about
57254         required autoconf version.
57255
57256 2002-11-20  Paul Eggert  <eggert@twinsun.com>
57257
57258         Merge argmatch cleanups from Bison.  Assume C89.
57259
57260         * lib/argmatch.c: Include config.h here, not in argmatch.h.
57261         Include stdlib.h, for EXIT_FAILURE.
57262         Always include <string.h>, since we assume C89.
57263         (EXIT_FAILURE): Remove pre-C89 bug workaround.
57264         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
57265         Include <stddef.h> instead, since it's all we need for size_t.
57266         (PARAMS): Remove.  All uses removed.
57267         (ARRAY_CARDINALITY): Do not bother to #undef.
57268         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
57269         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
57270         Remove unnecessary parentheses.
57271         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
57272         Insert necessary parentheses.
57273         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
57274         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
57275
57276 2002-11-19  Bruno Haible  <bruno@clisp.org>
57277
57278         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
57279         * lib/mbswidth.h: Include <stddef.h>, for size_t.
57280
57281         * lib/mbswidth.h (PARAMS): Remove macro.
57282         (mbswidth, mbsnwidth): Use ANSI C function declarations.
57283         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
57284
57285         * lib/gcd.h (PARAMS): Remove macro.
57286         (gcd): Use ANSI C function declarations.
57287         * lib/gcd.c (gcd): Likewise.
57288
57289 2002-11-15  Bruno Haible  <bruno@clisp.org>
57290
57291         * lib/strcspn.c: Include <stddef.h>.
57292         (strcspn): Use ANSI C function declaration. Change return type to
57293         size_t. Use NULL.
57294         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
57295         (strpbrk): Use NULL.
57296         * lib/strpbrk.h (PARAMS): Remove macro.
57297         (strpbrk): Use ANSI C function declaration.
57298         * lib/strstr.c: Don't include <sys/types.h>.
57299         * lib/strstr.h (PARAMS): Remove macro.
57300         (strstr): Use ANSI C function declarations.
57301
57302 2002-11-14  Karl Berry  <karl@gnu.org>
57303
57304         * config/mkinstalldirs: `do' on separate line, instead of
57305         `for var; do'.
57306
57307 2002-11-06  Bruno Haible  <bruno@clisp.org>
57308
57309         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
57310         * lib/gcd.c (gcd): Likewise.
57311
57312 2002-11-05  Bruno Haible  <bruno@clisp.org>
57313
57314         * lib/gcd.h: New file, from gettext-0.11.5.
57315         * lib/gcd.c: New file, from gettext-0.11.5.
57316
57317 2002-11-05  Bruno Haible  <bruno@clisp.org>
57318
57319         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57320         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57321         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57322         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57323
57324         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
57325         <libintl.h>.
57326         * lib/makepath.c: Include gettext.h instead of <locale.h> and
57327         <libintl.h>.
57328
57329         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
57330         * lib/human.c: Include gettext.h instead of <libintl.h>.
57331         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
57332         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
57333         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
57334         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
57335         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
57336         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
57337         (textdomain): Remove definition.
57338         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
57339
57340         * lib/long-options.c: Remove include of <libintl.h> and definition of
57341         _.
57342         * lib/same.c: Remove include of <libintl.h> and definition of _.
57343
57344 2002-11-04  Owen Taylor  <otaylor@redhat.com>
57345
57346         * lib/config.charset: A few additions for Solaris.
57347
57348 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
57349
57350         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
57351         * lib/localcharset.c (locale_charset): Declare as extern "C".
57352
57353 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
57354
57355         * lib/config.charset: msdos in uk_UA uses CP1125.
57356
57357 2002-11-04  Bruno Haible  <bruno@clisp.org>
57358
57359         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
57360         * lib/strcase.h: New file, from GNU gettext-0.11.5.
57361         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
57362         * lib/strstr.h: New file, from GNU gettext-0.11.5.
57363         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
57364
57365 2002-11-04  Bruno Haible  <bruno@clisp.org>
57366
57367         * lib/localcharset.c (locale_charset): Don't return an empty string.
57368
57369 2002-11-04  Bruno Haible  <bruno@clisp.org>
57370
57371         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
57372         aliases.
57373
57374 2002-11-04  Bruno Haible  <bruno@clisp.org>
57375
57376         * lib/config.charset: Update for newest glibc. Add canonical names
57377         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
57378
57379 2002-11-04  Bruno Haible  <bruno@clisp.org>
57380
57381         * lib/config.charset: Add support for NetBSD.
57382
57383 2002-11-04  Bruno Haible  <bruno@clisp.org>
57384
57385         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
57386
57387 2002-11-01  Bruno Haible  <bruno@clisp.org>
57388
57389         * configure.in: Add AC_CONFIG_AUX_DIR call.
57390         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
57391         test/Makefile.
57392         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
57393
57394 2002-09-28  Karl Berry  <karl@gnu.org>
57395
57396         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
57397         installed automake until the next release, since changes have been
57398         made.
57399
57400 2002-09-25  Karl Berry  <karl@gnu.org>
57401
57402         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
57403         * lib/getopt*: copy from libc/posix.
57404         * lib/gettext.h: copy from gettext.
57405         * lib/.cppi-disable: add strdup.c, gettext.h.
57406
57407 2002-09-25  Karl Berry  <karl@gnu.org>
57408
57409         * config/srclist.txt: enable gettext.h check.
57410         * config/config.{guess,sub}: update from prep.
57411         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
57412                 from automake 1.6.3.
57413         See srclist*.
57414
57415 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
57416
57417         * regex.c (PATFETCH): Remove the translating fetch.
57418         (PATFETCH_RAW): Rename to PATFETCH.
57419         (set_image_of_range): New fun.
57420         (SET_RANGE_TABLE_WORK_AREA): Use it.
57421         (regex_compile): Don't translate the pattern chars so eagerly.
57422         Only do it when inserting an `exactn' bytecode or when handling
57423         a char-range.
57424         (mutually_exclusive_p): Avoid empty statement.
57425
57426 2002-07-06  Jim Meyering  <meyering@lucent.com>
57427
57428         * m4/README: Don't mention Makefile.am.in.
57429         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
57430
57431 2002-07-01  Jim Meyering  <meyering@lucent.com>
57432
57433         * lib/c-stack.c: Include sys/time.h.
57434         From Volker Borchert.
57435
57436 2002-06-26  Paul Eggert  <eggert@twinsun.com>
57437
57438         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
57439
57440 2002-06-26  Paul Eggert  <eggert@twinsun.com>
57441
57442         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
57443         New macro.  Use it uniformly instead of
57444         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
57445         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
57446         reported by Vin Shelton.
57447
57448 2002-06-22  Paul Eggert  <eggert@twinsun.com>
57449
57450         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
57451         Do not assume SA_SIGINFO behavior.
57452         Bug reported by Jim Meyering on NetBSD 1.5.2.
57453
57454 2002-06-22  Jim Meyering  <meyering@lucent.com>
57455
57456         * m4/c-stack.m4: New file, from diffutils-2.8.2.
57457         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
57458
57459         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
57460         now that configure.ac uses AC_GNU_SOURCE.
57461         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
57462         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
57463
57464         Update to latest tools.  Suggestions from Paul Eggert.
57465         * m4/stdbool.m4: New file, from diffutils-2.8.2.
57466         * m4/gnu-source.m4: Update from diffutils-2.8.2.
57467         * m4/fnmatch.m4: Likewise.
57468         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
57469         to AC_HEADER_STDBOOL
57470
57471 2002-06-22  Jim Meyering  <meyering@lucent.com>
57472
57473         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
57474         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
57475
57476 2002-06-22  Jim Meyering  <meyering@lucent.com>
57477
57478         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
57479
57480         * lib/exitfail.c, exitfail.h: Likewise.
57481         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
57482
57483         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
57484         of fnmatch.h.
57485         (EXTRA_DIST): Add fnmatch_loop.c.
57486         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
57487
57488         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
57489         * lib/fnmatch.c: Update from diffutils-2.8.2.
57490         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
57491         * lib/fnmatch.h: Remove file.
57492
57493 2002-06-21  Jim Meyering  <meyering@lucent.com>
57494
57495         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
57496         * m4/mbrtowc.m4: Likewise.
57497
57498         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
57499         * m4/mbswidth.m4: Reflect name change:
57500         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
57501         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
57502
57503         * m4/lib-link.m4: Update from gettext-0.11.2.
57504         * m4/gettext.m4: Likewise.
57505
57506         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
57507         From Alfred M. Szmidt.
57508
57509 2002-06-18  Paul Eggert  <eggert@twinsun.com>
57510
57511         * lib/file-type.h: Report an error if neither S_ISREG nor
57512         S_IFREG is defined, instead of using a test specific to glibc
57513         2.2.  This should be safe, since POSIX requires S_ISREG and
57514         Unix Version 7 had S_IFREG.  We don't need to check for
57515         <sys/types.h> since we don't use any symbols that it defines.
57516
57517 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
57518
57519         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
57520         $@-t, so that each temporary file name is unique and valid in the first
57521         8 characters, for operation under DOS.
57522
57523 2002-06-15  Paul Eggert  <eggert@twinsun.com>
57524
57525         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
57526
57527 2002-06-15  Jim Meyering  <meyering@lucent.com>
57528
57529         Work even with DJGPP 2.03, which lacks support for symlinks.
57530         From Richard Dawe.
57531         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
57532         is defined.
57533         * lib/lchown.c (S_ISLNK): Likewise.
57534
57535 2002-06-15  Jim Meyering  <meyering@lucent.com>
57536
57537         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
57538         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
57539         have been included before this file.
57540
57541 2002-06-14  Jim Meyering  <meyering@lucent.com>
57542
57543         * lib/file-type.h: Use the version from diffutils-2.8.2.
57544         * lib/file-type.c: Likewise.
57545
57546 2002-06-07  Jim Meyering  <meyering@lucent.com>
57547
57548         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
57549         They're needed at least for NetBSD 1.5.2.
57550         ($statxfs_includes): Include those same headers.
57551         ($statxfs_includes): Include sys/vfs.h if available.
57552         ($statxfs_includes): Likewise for sys/statvfs.h.
57553         Check for the following members in both structs statfs and statvfs:
57554         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
57555
57556 2002-06-01  Jim Meyering  <meyering@lucent.com>
57557
57558         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
57559         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
57560
57561 2002-05-28  Jim Meyering  <meyering@lucent.com>
57562
57563         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
57564         Reported by Volker Borchert.
57565
57566 2002-05-27  Jim Meyering  <meyering@lucent.com>
57567
57568         Fix a problem seen only on nonconforming systems whereby ls.c's
57569         use of localtime, and then of gettimeofday would cause trouble:
57570         the localtime call used to initialize rpl_gettimeofday's save
57571         mechanism would clobber ls's current local time information so
57572         that in any long listing the first file would always be listed
57573         with date 1970-01-01.  Analysis by Volker Borchert.
57574
57575         * lib/gettimeofday.c (localtime): Undefine.
57576         (rpl_localtime): New function.
57577
57578 2002-05-27  Jim Meyering  <meyering@lucent.com>
57579
57580         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
57581         localtime.
57582
57583         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
57584         use the replacement function; it wouldn't resolve at link time.
57585         Reported by Volker Borchert.
57586
57587 2002-05-22  Jim Meyering  <meyering@lucent.com>
57588
57589         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
57590         file-type.h.
57591         * lib/file-type.h: New file.
57592         * lib/file-type.c (file_type): New file/function.  Extracted from
57593         diffutils.
57594
57595 2002-04-30  Jim Meyering  <meyering@lucent.com>
57596
57597         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
57598
57599 2002-04-29  Paul Eggert  <eggert@twinsun.com>
57600
57601         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
57602
57603 2002-04-29  Paul Eggert  <eggert@twinsun.com>
57604
57605         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
57606         Do not check for alloca.h (no longer used) or stdbool.h (was never
57607         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
57608
57609 2002-04-29  Paul Eggert  <eggert@twinsun.com>
57610
57611         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
57612
57613 2002-04-29  Jim Meyering  <meyering@lucent.com>
57614
57615         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
57616         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
57617         Use AC_FUNC_STRNLEN here instead.
57618
57619         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
57620         With autoconf-2.53a, it's part of AC_PROG_CC.
57621
57622 2002-04-28  Paul Eggert  <eggert@twinsun.com>
57623
57624         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
57625         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
57626
57627 2002-04-28  Paul Eggert  <eggert@twinsun.com>
57628
57629         * lib/sig2str.h, lib/sig2str.c: New files.
57630         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
57631
57632 2002-04-28  Paul Eggert  <eggert@twinsun.com>
57633
57634         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
57635         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
57636         of 127, since 64 is the largest conceivable number for ancient
57637         nonstandard hosts.
57638         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
57639
57640 2002-04-28  Jim Meyering  <meyering@lucent.com>
57641
57642         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
57643
57644 2002-04-24  Jim Meyering  <meyering@lucent.com>
57645
57646         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
57647         (jm_PREREQ): Use it.
57648
57649         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
57650         mach/mach.h fcntl.h.
57651         Check for this function: setlocale.
57652
57653 2002-04-24  Jim Meyering  <meyering@lucent.com>
57654
57655         * lib/gettext.h: New file, from Gettext.
57656         * lib/Makefile.am (INCLUDES): Remove -I../intl.
57657         (libfetish_a_SOURCES): Add gettext.h.
57658
57659 2002-04-16  Jim Meyering  <meyering@lucent.com>
57660
57661         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
57662         ut_pid, ut_id, ut_exit.
57663
57664 2002-04-16  Jim Meyering  <meyering@lucent.com>
57665
57666         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
57667         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
57668         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
57669
57670 2002-04-12  Jim Meyering  <meyering@lucent.com>
57671
57672         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
57673         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
57674         existence of the getmntinfo function.  Needed for Darwin 5.3.
57675
57676         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
57677         This is necessary at least on Darwin 5.3.
57678
57679         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
57680         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
57681         strnlen.o in the library, and that makes some versions of ranlib
57682         object.
57683
57684 2002-04-12  Jim Meyering  <meyering@lucent.com>
57685
57686         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
57687
57688 2002-04-09  Jim Meyering  <meyering@lucent.com>
57689
57690         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
57691         to be more precise.  Rather than saying we're checking whether the
57692         function `works', say what we're testing.
57693         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
57694         Reported by Bruno Haible.
57695
57696 2002-03-10  Jim Meyering  <meyering@lucent.com>
57697
57698         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
57699         Suggestion from Santiago Vila.
57700
57701 2002-03-08  Jim Meyering  <meyering@lucent.com>
57702
57703         * lib/rename.c: Mention that this wrapper is needed also on
57704         mips-dec-ultrix4.4 systems.
57705
57706 2002-03-02  Jim Meyering  <meyering@lucent.com>
57707
57708         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
57709         not HAVE_CLOCK_SETTIME.
57710
57711 2002-02-27  Paul Eggert  <eggert@twinsun.com>
57712
57713         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
57714         Check for clock_settime.
57715
57716 2002-02-27  Paul Eggert  <eggert@twinsun.com>
57717
57718         * lib/nanosleep.h: Rename to....
57719         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
57720
57721         * lib/gettime.c: New file.
57722         * lib/settime.c: New file.
57723         * lib/stime.c: Remove.
57724
57725         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
57726         timespec.h.  Remove nanosleep.h.
57727
57728 2002-02-25  Paul Eggert  <eggert@twinsun.com>
57729
57730         * m4/acl.m4: New file.
57731         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
57732         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
57733
57734 2002-02-25  Paul Eggert  <eggert@twinsun.com>
57735
57736         * lib/acl.c, lib/acl.h: New files.
57737         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
57738
57739 2002-02-24  Jim Meyering  <meyering@lucent.com>
57740
57741         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
57742         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
57743         cause trouble.  Reported by Nelson Beebe.
57744
57745 2002-02-23  Paul Eggert  <eggert@twinsun.com>
57746
57747         * lib/path-concat.c (xpath_concat): Reorder code to pacify
57748         compilers that don't know that xalloc_die never returns.
57749
57750 2002-02-20  Jim Meyering  <meyering@lucent.com>
57751
57752         * lib/getdate.c: Regenerate using bison-1.33.
57753
57754 2002-02-17  Jim Meyering  <meyering@lucent.com>
57755
57756         * config/config.guess (main): Don't use `head -1'; it's no longer
57757         portable. Use `sed 1q' instead.
57758
57759 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
57760
57761         * m4/codeset.m4: Upgrade to gettext-0.11.
57762         * m4/gettext.m4: Upgrade to gettext-0.11.
57763         * m4/glibc21.m4: Upgrade to gettext-0.11.
57764         * m4/iconv.m4: Upgrade to gettext-0.11.
57765         * m4/isc-posix.m4: Upgrade to gettext-0.11.
57766         * m4/lcmessage.m4: Upgrade to gettext-0.11.
57767         * m4/lib-ld.m4: New file, from gettext-0.11.
57768         * m4/lib-link.m4: New file, from gettext-0.11.
57769         * m4/lib-prefix.m4: New file, from gettext-0.11.
57770         * m4/progtest.m4: Upgrade to gettext-0.11.
57771
57772 2002-02-15  Paul Eggert  <eggert@twinsun.com>
57773
57774         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
57775         (jm_PREREQ): Use it.
57776
57777 2002-02-15  Paul Eggert  <eggert@twinsun.com>
57778
57779         * lib/posixver.c, lib/posixver.h: New files.
57780         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
57781
57782 2002-02-02  Paul Eggert  <eggert@twinsun.com>
57783             Bruno Haible  <bruno@clisp.org>
57784
57785         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
57786         (fwrite_success_callback): New declaration.
57787         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
57788         print_unicode_char. Call failure callback instead of error.
57789         (fwrite_success_callback): New function.
57790         (exit_failure_callback): New function.
57791         (fallback_failure_callback): New function.
57792         (print_unicode_char): Call unicode_to_mb.
57793
57794 2002-01-26  Jim Meyering  <meyering@lucent.com>
57795
57796         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
57797         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
57798
57799 2002-01-26  Jim Meyering  <meyering@lucent.com>
57800
57801         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
57802
57803 2002-01-22  Paul Eggert  <eggert@twinsun.com>
57804
57805         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
57806
57807 2002-01-22  Jim Meyering  <meyering@lucent.com>
57808
57809         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
57810         Otherwise, some versions of automake would omit the rule that makes
57811         Makefile from Makefile.in.
57812
57813 2002-01-21  Paul Eggert  <eggert@twinsun.com>
57814
57815         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
57816         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
57817         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
57818         (memcoll): Set errno to zero if there is no error.
57819
57820         * lib/quotearg.c (quotearg_buffer_restyled):
57821         Fix bug with quoting buffers containing NUL when backslashing escapes.
57822         This bug was exposed by the other changes in this patch.
57823         (quotearg_n_options): New arg ARGSIZE.
57824         All callers changed.
57825         (quoting_options_from_style): New function.
57826         (quotearg_n_style): Use it.
57827         (quotearg_n_style_mem): New function.
57828
57829         * lib/quotearg.h (quotearg_n_style_mem): New function.
57830
57831 2002-01-19  Jim Meyering  <meyering@lucent.com>
57832
57833         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
57834         Remove useless quotes: DF_PROG="df".
57835         * m4/strnlen.m4: New file.
57836
57837 2002-01-16  Paul Eggert  <eggert@twinsun.com>
57838
57839         * lib/backupfile.c (ISDIGIT): Comment fix.
57840         * lib/getdate.y (ISDIGIT): Likewise.
57841         * lib/posixtm.c (ISDIGIT, year): Likewise.
57842         * lib/strverscmp.c (ISDIGIT): Likewise.
57843         * lib/userspec.c (ISDIGIT): Likewise.
57844
57845 2002-01-16  Jim Meyering  <meyering@lucent.com>
57846
57847         * lib/getdate.y: Add three semicolons, each just before a closing
57848         brace. Bison (as of version 1.31) no longer papers over that mistake.
57849
57850 2002-01-05  Jim Meyering  <meyering@lucent.com>
57851
57852         * lib/version-etc.c (version_etc_copyright): Update copyright year.
57853
57854 2001-12-19  Paul Eggert  <eggert@twinsun.com>
57855
57856         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
57857         not silently exit merely because the output buffer happens to
57858         have nothing pending.
57859
57860 2001-12-18  Paul Eggert  <eggert@twinsun.com>
57861
57862         See the big note in ../ChangeLog.
57863         * lib/human.c (suffixes): Prefer K to k for 1024.
57864         (generate_suffix_backwards): New function.
57865         (human_readable_inexact): Use it.
57866         * lib/xstrtol.c (__xstrtol): If there is no number but there
57867         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
57868         Accept 'K' as well as 'k'.
57869
57870 2001-12-15  Jim Meyering  <meyering@lucent.com>
57871
57872         * lib/regex.h (__restrict_arr): Update from libc.
57873
57874         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
57875         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
57876         (STREQ): Define.
57877
57878 2001-12-14  Jim Meyering  <meyering@lucent.com>
57879
57880         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
57881         Suggestion from Bruno Haible.
57882
57883 2001-12-10  Jim Meyering  <meyering@lucent.com>
57884
57885         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
57886         xrealloc, Instead, include "xalloc.h".
57887         (initbuffer): Don't cast xmalloc return value to char*.
57888         (readline): Reword comment.
57889         Don't cast xrealloc return value to char*
57890         Return NULL, not 0.
57891
57892 2001-12-09  Jim Meyering  <meyering@lucent.com>
57893
57894         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
57895         about `signed and unsigned type in conditional expression'.
57896         * lib/posixtm.c (posix_time_parse): Likewise.
57897
57898         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
57899
57900         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
57901         to avoid a pedantic warning.
57902
57903         * lib/getstr.c: Don't include assert.h.
57904         (getstr): Remove warning-evoking assertions.
57905         Return -1 if offset parameter is out of bounds.
57906         Change the type of a local from int to size_t.
57907
57908         * lib/strftime.c (my_strftime_localtime_r): Include this function
57909         definition in the `#if ! HAVE_TM_GMTOFF' block.
57910
57911         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
57912         Include xalloc.h instead.
57913
57914 2001-12-02  Jim Meyering  <meyering@lucent.com>
57915
57916         * lib/tempname.c: Don't declare getenv, thus reverting the change of
57917         2001-11-18.  It's no longer necessary, now that stdlib.h is always
57918         included.
57919
57920         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
57921         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
57922
57923 2001-11-30  Akim Demaille  <akim@epita.fr>
57924
57925         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
57926         before being defined.
57927
57928 2001-11-27  Paul Eggert  <eggert@twinsun.com>
57929
57930         * lib/quotearg.h (quotearg_n, quotearg_n_style):
57931         First arg is int, not unsigned.
57932         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
57933         (SIZE_MAX, UINT_MAX): New macros.
57934         (quotearg_n_options): Abort if N is negative.
57935         Avoid overflow check on hosts where size_t is 64 bits and int
57936         is 32 bits, as overflow is impossible there.
57937         Fix off-by-one typo that caused unnecessary reallocation.
57938
57939 2001-11-27  Jim Meyering  <meyering@lucent.com>
57940
57941         * lib/tempname.c: Merge with version from libc.
57942         * lib/regex.c: Likewise.
57943
57944         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
57945         systems for which STDC_HEADERS is 0, it was not included, resulting in
57946         a warning about an integer-to-pointer conversion problem with getenv.
57947         Reported by Volker Borchert.
57948
57949 2001-11-26  Jim Meyering  <meyering@lucent.com>
57950
57951         * lib/gtod.h: Remove file.
57952         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
57953         * lib/gettimeofday.c: Don't include gtod.h.
57954         (GTOD_init): Remove function.
57955         (rpl_gettimeofday): Do its job here instead, rather than aborting.
57956         Suggestion from Volker Borchert.
57957
57958 2001-11-23  Jim Meyering  <meyering@lucent.com>
57959
57960         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
57961         it.
57962         * lib/hash.c (struct hash_table): Define it here instead.
57963
57964 2001-11-22  Jim Meyering  <meyering@lucent.com>
57965
57966         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
57967
57968 2001-11-20  Jim Meyering  <meyering@lucent.com>
57969
57970         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
57971         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
57972
57973 2001-11-19  Jim Meyering  <meyering@lucent.com>
57974
57975         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
57976         directory.  Use "conftestXXXXXX" as the template.
57977         Suggestion from Paul Eggert.
57978
57979         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
57980         immediately, so the test doesn't mistakenly hit the max-open-files
57981         limit.
57982
57983 2001-11-18  Paul Eggert  <eggert@twinsun.com>
57984
57985         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
57986         (TEMPORARIES): New macro.
57987         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
57988         removes an artificial limitation (e.g. HP-UX 10.20, where
57989         TMP_MAX is 17576).
57990
57991 2001-11-18  Jim Meyering  <meyering@lucent.com>
57992
57993         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
57994
57995 2001-11-18  Jim Meyering  <meyering@lucent.com>
57996
57997         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
57998         on SunOS 4.
57999
58000         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
58001         files will be created before anything else.
58002
58003 2001-11-17  Paul Eggert  <eggert@twinsun.com>
58004
58005         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
58006         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
58007
58008 2001-11-17  Jim Meyering  <meyering@lucent.com>
58009
58010         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
58011         Prompted by a report from Bob Proulx.
58012
58013         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
58014         Instead, require UTILS_FUNC_MKSTEMP.
58015
58016 2001-11-17  Jim Meyering  <meyering@lucent.com>
58017
58018         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
58019         Now, that's done as part of AC_FUNC_STRTOD.
58020
58021 2001-11-17  Jim Meyering  <meyering@lucent.com>
58022
58023         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
58024         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
58025         rather than group writable.  Patch by Juan F. Codagnone.
58026
58027         * lib/readtokens.c: Remove explicit declarations of xmalloc and
58028         xrealloc, Instead, include "xalloc.h".
58029
58030         * lib/mountlist.c: Include unlocked-io.h after all system headers.
58031         Remove explicit declarations of xmalloc, xrealloc,
58032         and xstrdup.  Instead, include "xalloc.h".
58033
58034         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
58035         unlocked-io.h.
58036         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
58037         Likewise.
58038         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
58039
58040         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
58041         Reported by Padraig Brady.
58042
58043         * lib/mkstemp.c: #undef mkstemp.
58044         Include config.h.
58045         (rpl_mkstemp): Rename from mkstemp.
58046         Protoize.
58047
58048 2001-11-16  Jim Meyering  <meyering@lucent.com>
58049
58050         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
58051         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
58052         determine the amount of total physical memory, use pstat_getstatic.
58053         HPUX-11 doesn't define _SC_PHYS_PAGES.
58054         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
58055         If sysconf couldn't be used to determine the amount of available
58056         physical memory, use both pstat_getstatic and pstat_getdynamic.
58057         Based on a patch from Bob Proulx.
58058
58059 2001-11-10  Jim Meyering  <meyering@lucent.com>
58060
58061         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
58062         (jm_PREREQ): Use it.
58063
58064 2001-11-09  Jim Meyering  <meyering@lucent.com>
58065
58066         * m4/jm-macros.m4: Require autoconf-2.52f.
58067         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
58068         Use these AC_-prefixed names, not the AM_-prefixed ones.
58069
58070         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
58071
58072 2001-11-05  Jim Meyering  <meyering@lucent.com>
58073
58074         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
58075
58076 2001-11-04  Jim Meyering  <meyering@lucent.com>
58077
58078         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
58079         $DEFS.
58080
58081 2001-11-03  Jim Meyering  <meyering@lucent.com>
58082
58083         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
58084         of AC_DEFUN.
58085
58086         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
58087         know the name of the variable in the macro definition.
58088
58089 2001-11-03  Jim Meyering  <meyering@lucent.com>
58090
58091         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
58092         in argmatch_to_argument call.
58093
58094         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
58095         argument.
58096
58097         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
58098         e.g., a fault due to an attempt to free a NULL pointer.
58099
58100 2001-11-01  Jim Meyering  <meyering@lucent.com>
58101
58102         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
58103         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
58104
58105 2001-11-01  Jim Meyering  <meyering@lucent.com>
58106
58107         * lib/dirfd.c, lib/dirfd.h: New files.
58108         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
58109
58110         * lib/hash.c (hash_print) [TESTING]: Clean up.
58111
58112 2001-10-22  Paul Eggert  <eggert@twinsun.com>
58113
58114         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
58115         to avoid a warning if -Wall.
58116
58117 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
58118
58119         * README: New file
58120         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
58121         (per RMS's instructions, this is now the canonical source)
58122         * lgpl/, gpl/: New directories.
58123
58124 2001-10-21  Paul Eggert  <eggert@twinsun.com>
58125
58126         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
58127
58128 2001-10-21  Jim Meyering  <meyering@lucent.com>
58129
58130         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
58131         this code would end up calling gettext even in packages built
58132         with --disable-nls.
58133         * lib/getopt.c (_): Likewise.
58134         * lib/regex.c (_): Likewise.
58135
58136 2001-10-20  Paul Eggert  <eggert@twinsun.com>
58137
58138         * m4/error.m4 (jm_PREREQ_ERROR):
58139         Do not invoke AC_CHECK_FUNCS with strerror_r, as
58140         AC_FUNC_STRERROR_R does that.
58141         Check for strerror declaration.
58142
58143         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
58144         are supposed to have them these days.
58145         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
58146         Merge changes from latest Autoconf CVS.
58147         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
58148         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
58149         POSIX decided to standardize on the int flavor of strerror_r.
58150
58151 2001-10-20  Paul Eggert  <eggert@twinsun.com>
58152
58153         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
58154         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
58155         Use strerror_r that is only a macro, even if it is not a function.
58156         (strerror): Check for HAVE_DECL_STRERROR before declaring.
58157         (private_strerror): Use prototypes, not old-style function definition.
58158         (print_errno_message): New function.
58159         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
58160         char*-flavored one.
58161         (error_tail, error, error_at_line): Use it.
58162
58163 2001-10-11  Jim Meyering  <meyering@lucent.com>
58164
58165         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
58166         and quote_n (1, ... to avoid clobbering a buffer.
58167
58168 2001-10-05  Jim Meyering  <meyering@lucent.com>
58169
58170         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
58171         hash-pjw.h.
58172         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
58173         * lib/hash-pjw.h: New file.
58174
58175 2001-09-30  Jim Meyering  <meyering@lucent.com>
58176
58177         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
58178         `struct fsstat' has the `f_fstypename' member.
58179         Use that to define FS_TYPE, which is now used to make
58180         the getfsstat link test tighter.
58181
58182 2001-09-30  Jim Meyering  <meyering@lucent.com>
58183
58184         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
58185         Include <sys/ucred.h>, for Apple Darwin.
58186         Include sys/mount.h and sys/fs_types.h only if available.
58187         (FS_TYPE): Define.
58188         (read_filesystem_list): Use FS_TYPE.
58189
58190 2001-09-29  Paul Eggert  <eggert@twinsun.com>
58191
58192         * lib/exclude.c (excluded_filename): 0 -> false, since it's
58193         a boolean context.
58194
58195 2001-09-29  Jim Meyering  <meyering@lucent.com>
58196
58197         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
58198         [one-argument getmntent function]): Include stdio.h before mntent.h.
58199         SunOS 4.1.x needs it for the declaration of `FILE'.
58200         Patch by Volker Borchert.
58201
58202         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
58203         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
58204         sys/fs_types.h, and make the link-test for getfsstat guard #include
58205         directives with appropriate #if HAVE_*_H tests so that we can
58206         detect getfsstat on Apple Darwin1.3.7 systems.
58207         Reported by Nelson Beebe.
58208         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
58209
58210 2001-09-28  Paul Eggert  <eggert@twinsun.com>
58211
58212         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
58213         #defines strtoimax.  Also treat the other strto* functions
58214         like strtoimax.
58215
58216         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
58217         Check for strtoul and strtoumax,
58218         as those declarations are made even in the signed case.
58219         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
58220         Likewise, for strtol and strtoimax.
58221
58222 2001-09-28  Paul Eggert  <eggert@twinsun.com>
58223
58224         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
58225         #defines strtoimax.  Also treat the other strto* functions
58226         like strtoimax.
58227
58228         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
58229         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
58230         (strtoimax, strtoumax): Do not declare if already defined as a macro.
58231
58232 2001-09-26  Jim Meyering  <meyering@lucent.com>
58233
58234         Most macros in unlocked-io.h had the wrong number of arguments.
58235         * lib/gen-uio: New script.
58236         (USE_UNLOCKED_IO): Define to 1 if not already defined.
58237         * lib/unlocked-io.hin: Remove file.
58238         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
58239         rather than trying to embed it here.
58240         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
58241         Reported by Padraig Brady.
58242
58243 2001-09-25  Volker Borchert  <bt@teknon.de>
58244
58245         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
58246         `result'.
58247
58248 2001-09-24  Jim Meyering  <meyering@lucent.com>
58249
58250         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
58251
58252 2001-09-23  Jim Meyering  <meyering@lucent.com>
58253
58254         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
58255         instead of the mere test for existence of mntent.h.  The latter
58256         would get a false-positive on AIX 3.4 systems.
58257         In the outer getmntent if-block, don't die if neither of the getmntent
58258         tests succeeds.  Instead, just fall through and continue with the
58259         remaining tests.
58260
58261 2001-09-23  Jim Meyering  <meyering@lucent.com>
58262
58263         * lib/mountlist.c: Remove useless parentheses in #if directives.
58264         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
58265         the deprecated MOUNTED symbol is no longer defined in mntent.h.
58266
58267 2001-09-22  Jim Meyering  <meyering@lucent.com>
58268
58269         * m4/gettext.m4: New file.  From gettext.
58270         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
58271         * m4/progtest.m4: Likewise
58272         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
58273         * m4/glibc21.m4: Likewise.
58274
58275         * m4/libintl.m4: Remove.  No longer used.
58276
58277 2001-09-22  Jim Meyering  <meyering@lucent.com>
58278
58279         * lib/localcharset.c: Update from latest gettext.
58280         * lib/config.charset: Likewise.
58281
58282 2001-09-20  Jim Meyering  <meyering@lucent.com>
58283
58284         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
58285         strtoimax.
58286         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
58287         strtoumax.
58288
58289 2001-09-20  Jim Meyering  <meyering@lucent.com>
58290
58291         * lib/xstrtol.c (strtoimax): Guard declaration with
58292         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
58293         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
58294         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
58295         (strtoumax): Likewise, for completeness (it wasn't necessary).
58296
58297 2001-09-17  Paul Eggert  <eggert@twinsun.com>
58298
58299         * lib/strtoimax.c (HAVE_LONG_LONG):
58300         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
58301         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
58302         to work around bug in IBM C compiler.
58303
58304 2001-09-17  Jim Meyering  <meyering@lucent.com>
58305
58306         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
58307         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
58308         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
58309         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
58310         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
58311         whenever the right hand side need not be expanded by the shell.
58312
58313 2001-09-16  Paul Eggert  <eggert@twinsun.com>
58314
58315         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
58316         library.  It's not correct, as some older glibcs are buggy.
58317         fnmatch wasn't fixed until glibc 2.2.
58318
58319         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
58320         special shell magic here.
58321
58322 2001-09-16  Jim Meyering  <meyering@lucent.com>
58323
58324         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
58325         * m4/jm-macros.m4: Require it.
58326
58327 2001-09-16  Jim Meyering  <meyering@lucent.com>
58328
58329         * lib/mkdir.c: New file.
58330
58331 2001-09-15  Jim Meyering  <meyering@lucent.com>
58332
58333         * m4/jm-macros.m4: Check for help2man.
58334
58335 2001-09-11  Jim Meyering  <meyering@lucent.com>
58336
58337         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
58338         The body, by Paul Eggert, was moved here from configure.in.
58339         * m4/jm-macros.m4: Require UTILS_HOST_OS.
58340
58341 2001-09-04  Paul Eggert  <eggert@twinsun.com>
58342
58343         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
58344         (jm_PREREQ): Use it.
58345
58346 2001-09-04  Paul Eggert  <eggert@twinsun.com>
58347
58348         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
58349         Use ssize_t, not int, to store result of readlink.
58350         Check for ssize_t overflow as well as size_t overflow,
58351         as POSIX says the result of readlink is implementation-defined
58352         when ssize_t overflows.
58353         Remove unnecessary cast to char*.
58354         Use free+malloc instead of realloc, as the storage doesn't need
58355         to be preserved and it's clearer and can be more efficient that way.
58356         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
58357         * lib/xreadlink.h (xreadlink): Update prototype.
58358
58359 2001-09-04  Paul Eggert  <eggert@twinsun.com>
58360
58361         * lib/xgetcwd.c: Revert some of the previous change; intead,
58362         fix the HAVE_GETCWD_NULL code to behave more like the
58363         !HAVE_GETCWD_NULL code used to.
58364
58365         Include "xalloc.h".
58366         (xgetcwd): Do not return NULL when memory is exhausted; instead,
58367         invoke xalloc_die.
58368
58369 2001-09-03  Paul Eggert  <eggert@twinsun.com>
58370
58371         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
58372         sys/param.h, as pathmax.h includes them.
58373
58374 2001-09-03  Paul Eggert  <eggert@twinsun.com>
58375
58376         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
58377         (jm_PREREQ_XGETCWD): New macro.
58378
58379         * m4/getcwd.m4: New file.
58380
58381 2001-09-03  Paul Eggert  <eggert@twinsun.com>
58382
58383         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
58384         like the HAVE_GETCWD_NULL code.
58385         Include pathmax.h if not HAVE_GETCWD.
58386         Do not include xalloc.h.
58387         (INITIAL_BUFFER_SIZE): New symbol.
58388         Do not use xmalloc / xrealloc, since the caller is responsible for
58389         handling errors.  Preserve errno around `free' during failure.
58390         Do not overrun buffer when using getwd.
58391
58392 2001-09-03  Paul Eggert  <eggert@twinsun.com>
58393
58394         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
58395         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
58396         getcwd (NULL, 0).
58397
58398 2001-09-03  Paul Eggert  <eggert@twinsun.com>
58399
58400         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
58401         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
58402         spotted by Jim Meyering.
58403
58404 2001-09-03  Jim Meyering  <meyering@lucent.com>
58405
58406         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
58407         failure.
58408
58409 2001-09-02  Jim Meyering  <meyering@lucent.com>
58410
58411         * lib/error.c: Update from GNU libc.
58412
58413 2001-09-01  Jim Meyering  <meyering@lucent.com>
58414
58415         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
58416         Used by df.
58417
58418 2001-09-01  Jim Meyering  <meyering@lucent.com>
58419
58420         * lib/xreadlink.c: New file.
58421         * lib/xreadlink.h: New file.
58422         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
58423         xreadlink.h.
58424
58425         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
58426         doesn't conflict with sparc Solaris 7's definition in
58427         /usr/include/sys/int_types.h.
58428
58429         * lib/exclude.c: Use `""', not `<>' to #include non-system header
58430         files.
58431         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
58432         and strncasecmp as r-values.  Unixware didn't have declarations.
58433
58434 2001-08-31  Paul Eggert  <eggert@twinsun.com>
58435
58436         * lib/xstrtol.h: Add copyright notice.
58437         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
58438         LONGINT_INVALID_SUFFIX_CHAR.
58439
58440 2001-08-31  Paul Eggert  <eggert@twinsun.com>
58441
58442         * lib/xstrtol.c (strtoimax): New decl.
58443
58444 2001-08-31  Paul Eggert  <eggert@twinsun.com>
58445
58446         * lib/xgetcwd.c: Don't include pathmax.h.
58447         Include stdlib.h and unistd.h if available.
58448         Include xalloc.h.
58449         (xmalloc, xstrdup, free): Remove decls.
58450         (xgetcwd): Don't assume sizes fit in unsigned.
58451         Check for overflow when computing sizes.
58452         Simplify reallocation code.
58453
58454 2001-08-31  Paul Eggert  <eggert@twinsun.com>
58455
58456         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
58457         a directory's st_size can have an arbitrary value, so the old
58458         usage could waste an arbitrary amount of memory.  All uses
58459         changed.
58460         * lib/savedir.h: Update prototype.
58461
58462 2001-08-31  Paul Eggert  <eggert@twinsun.com>
58463
58464         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
58465
58466         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
58467         old strtoimax.c.
58468
58469         Also, make the following further changes to make this file's
58470         configuration more similar to that of strtol.c:
58471         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
58472         (strtoumax, uintmax_t, strtoull, strtol): Remove.
58473         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
58474         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
58475         changed to signed values.
58476
58477         And make the following changes as well:
58478         Fix copyright notice, as 1999 was missing.
58479         (verify): New macro.
58480         (strtoimax): Check sizes at compile-time, not run-time.
58481         Prefer strtol to strtoll if both work.
58482         (main): Remove; it was not that useful and was a pain to maintain.
58483
58484         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
58485
58486 2001-08-31  Jim Meyering  <meyering@lucent.com>
58487
58488         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
58489         Use an initial, malloc'd, buffer of length 128 rather than
58490         a statically allocated one of length 1024.
58491
58492 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58493
58494         Simplify code, partly by assuming autoconf 2.52 semantics.
58495
58496         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
58497
58498         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
58499         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
58500         All uses removed.
58501         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
58502         Move AC_REQUIRE to next-to-top level, to avoid confusion.
58503         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
58504         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
58505         jm_AC_HEADER_INTTYPES_H.
58506         * m4/jm-macros.m4 (jm_MACROS): Likewise.
58507
58508         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
58509
58510         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
58511         Quote first arg of AC_DEFUN.
58512         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
58513         since they are needed to parse the include file even if we need
58514         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
58515         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
58516         but with opposite signedness.
58517
58518 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58519
58520         Merge 'exclude' changes from tar 1.13.22.
58521         This fixes one or two unlikely storage allocation overflow bugs,
58522         but doesn't change user-visible behavior otherwise.
58523
58524 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58525
58526         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
58527         (jm_PREREQ_EXCLUDE): New macro.
58528
58529 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58530
58531         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
58532         tm to be declared.
58533
58534 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58535
58536         * lib/hash.c: Remove '2001' from copyright notice.
58537
58538 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58539
58540         * lib/full-write.h: New file.
58541         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
58542         * lib/full-write.c: Correct credits, as cccp.c no longer
58543         exists and anyway it was so heavily changed from the old cccp
58544         code as to be unrecognizable.  Include full-write.h.
58545         (full_write) Return size_t, with short writes meaning failure.
58546         All callers changed.  This fixes a bug with large buffers
58547         on 64-bit hosts.
58548         * lib/utime.c: Include full-write.h.
58549
58550 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58551
58552         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
58553         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
58554         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
58555         Include if available.
58556         (<xalloc.h>): Include
58557         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
58558         (verify): New macro.  Use it to verify that EXCLUDE macros do not
58559         collide with FNM macros.
58560         (struct patopts): New struct.
58561         (struct exclude): Use it, as exclude patterns now come with options.
58562         (new_exclude): Support above changes.
58563         (new_exclude, add_exclude_file):
58564         Initial size must now be a power of two to simplify overflow checking.
58565         (free_exclude, fnmatch_no_wildcards): New function.
58566         (excluded_filename): No longer requires options arg, as the options
58567         are determined by add_exclude.  Now returns bool, not int.
58568         (excluded_filename, add_exclude):
58569         Add support for the fancy new exclusion options.
58570         (add_exclude, add_exclude_file): Now takes int options arg.
58571         Check for arithmetic overflow when computing sizes.
58572         (add_exclude_file): xrealloc might modify errno, so don't
58573         realloc until after errno might be used.
58574
58575         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
58576         New macros.
58577         (free_exclude): New decl.
58578         (add_exclude, add_exclude_file): Now takes int options arg.
58579         (excluded_filename): No longer requires options arg, as the options
58580         are determined by add_exclude.  Now returns bool, not int.
58581
58582 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58583
58584         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
58585
58586 2001-08-27  Jim Meyering  <meyering@lucent.com>
58587
58588         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
58589
58590         * lib/version-etc.c (N_): Remove definition.
58591         Revert most of last change.
58592         Instead, simply don't mark the `Copyright...' string for translation.
58593         Based on advice from Paul Eggert.
58594
58595         * lib/strtoxmax.c: Tweak comment.
58596
58597 2001-08-26  Jim Meyering  <meyering@lucent.com>
58598
58599         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
58600
58601         * m4/xstrtoimax.m4: New file.
58602         * m4/xstrtoumax.m4: Add comments explaining why we
58603         AC_REPLACE_FUNCS(strtol).
58604
58605 2001-08-26  Jim Meyering  <meyering@lucent.com>
58606
58607         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
58608         of copyright with `%s' so translators don't get an untranslated
58609         message in 2002.
58610         (COPYRIGHT_YEAR): Define.
58611         (version_etc): Use fprintf rather than fputs.
58612         Suggestion from Ulrich Drepper.
58613
58614         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
58615
58616         * lib/strtoll.c: New file, from GNU libc.
58617         * lib/xstrtoimax.c: New file.
58618
58619         * lib/xstrtol.h: Add xstrtoimax.
58620         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
58621         * lib/strtoimax.c: New file.  Likewise, but first define
58622         STRTOUXMAX_SIGNED.
58623
58624         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
58625         ...
58626         * lib/strtoxmax.c: ... then renamed to this.
58627
58628 2001-08-18  Paul Eggert  <eggert@twinsun.com>
58629
58630         * m4/inttypes.m4: Add AC_PREREQ(2.13).
58631         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
58632         (jm_AC_TYPE_INTMAX_T): New macro.
58633         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
58634
58635         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
58636
58637         * m4/longlong.m4: Renamed from ulonglong.m4.
58638         * m4/inttypes.m4: Renamed from inttypes_h.m4.
58639         * m4/uintmax_t.m4: Removed.
58640
58641 2001-08-13  Paul Eggert  <eggert@twinsun.com>
58642
58643         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
58644         Port to Solaris 8, where 'sed' requires a space after the 'r'
58645         command, and where sh dislikes "$/".  Clean up the spacing a bit.
58646         Redirect output to $tmp just once.
58647
58648 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
58649
58650         * lib/addext.c (<errno.h>): Include.
58651         (errno): Declare if not defined.
58652         (addext): Work correctly when pathconf returns -1 and leaves
58653         errno alone because there is no limit.  Also, work even if
58654         pathconf returns a value greater than SIZE_MAX.
58655
58656 2001-08-12  Jim Meyering  <meyering@lucent.com>
58657
58658         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
58659         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
58660         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
58661         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
58662         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
58663         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
58664         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
58665         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
58666         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
58667         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
58668         utime.m4, utimes.m4, xstrtoumax.m4:
58669         Quote the first argument in each use of AC_DEFUN.
58670
58671 2001-08-12  Jim Meyering  <meyering@lucent.com>
58672
58673         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
58674         Simply `return getcwd (NULL, 0);'.
58675         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
58676         Use 1300 as initial value for length, not PATH_MAX.
58677
58678         * lib/pathmax.h: Clean up cpp syntax.
58679
58680 2001-08-12  Jim Meyering  <meyering@lucent.com>
58681
58682         * lib/gettimeofday.c: New file.
58683         * lib/gtod.h: New file.
58684         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
58685
58686 2001-08-05  Jim Meyering  <meyering@lucent.com>
58687
58688         * m4/jm-macros.m4: Require autoconf-2.52.
58689
58690 2001-08-04  Jim Meyering  <meyering@lucent.com>
58691
58692         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
58693         stmt, to get in sync with glibc.
58694
58695 2001-08-03  Paul Eggert  <eggert@twinsun.com>
58696
58697         The following changes are from gettext 0.10.39 as maintained by
58698         Bruno Haible.
58699
58700         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
58701         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
58702         with inverted sense.  All uses changed.
58703
58704         * lib/mbswidth.c: Don't include <limits.h>.
58705         Include <stdlib.h> and <string.h> unconditionally.
58706         (iswcntrl, mbsinit, ISCNTRL): New macros.
58707         (mbsnwidth): Use K&R style function declarations.
58708         Don't bother checking for MB_LEN_MAX == 1, since the compiler
58709         can optimize it when MB_CUR_MAX == 1.
58710         The width of control characters is zero, not 1.
58711
58712 2001-08-03  Paul Eggert  <eggert@twinsun.com>
58713
58714         The following changes are from gettext 0.10.39 as maintained by
58715         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
58716
58717         * m4/codeset.m4: Upgrade to serial AM1.
58718         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
58719         all uses changed.  Quote first arg of AC_DEFUN.
58720         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
58721
58722         * m4/iconv.m4: Upgrade to serial AM2.
58723         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
58724         Add --with-libconv-prefix.
58725         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
58726         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
58727         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
58728         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
58729         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
58730
58731         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
58732         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
58733         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
58734         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
58735         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
58736         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
58737         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
58738         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
58739         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
58740
58741         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
58742         string.h any more.
58743
58744         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
58745         not the default value.
58746
58747         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
58748         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
58749         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
58750         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
58751         Also check for iswcntrl, used for wcwidth fallback.
58752         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
58753         to Autoconf 2.13.
58754
58755 2001-08-03  Jim Meyering  <meyering@lucent.com>
58756
58757         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
58758         as it was in the original.  Reported by Paul Eggert.
58759
58760 2001-07-16  Jim Meyering  <meyering@lucent.com>
58761
58762         * m4/gettimeofday.m4: New file.
58763         Prompted by a report from Bernhard Baehr.
58764
58765 2001-07-15  Jim Meyering  <meyering@lucent.com>
58766
58767         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
58768         stuff. Now it's in ../Makefile.cfg.
58769
58770 2001-07-15  Jim Meyering  <meyering@lucent.com>
58771
58772         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
58773         (BUILT_SOURCES): Add unlocked-io.h.
58774         (io_functions): Define.
58775         (unlocked-io.h): New rule.
58776         (DISTCLEANFILES): Add unlocked-io.h.
58777         (all-local): Depend on unlocked-io.h, to ensure it is created.
58778
58779         * lib/unlocked-io.hin: New file
58780
58781         * lib/regex.c: Update from glibc.
58782
58783 2001-07-05  Jim Meyering  <meyering@lucent.com>
58784
58785         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
58786         recommendation.
58787         (libfetish_a_SOURCES): Put all .h files here instead.
58788         Remove a thus-exposed (better checks in automake) duplicate and
58789         two unnecessary .h files.
58790
58791 2001-07-04  Jim Meyering  <meyering@lucent.com>
58792
58793         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
58794         that generates jm-glibc-io.m4 so that it doesn't trigger any make
58795         distcheck failure.
58796
58797 2001-07-02  Jim Meyering  <meyering@lucent.com>
58798
58799         The following changes were prompted by suggestions from Bruno Haible.
58800
58801         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
58802         is now generated.
58803         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
58804         definition of EXTRA_DIST.
58805         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
58806         ensure that the generated file is created/updated whenever the list
58807         of $(unlocked_functions) is changed.
58808         (jm-glibc-io.m4): New rule.
58809         (unlocked-io.h): New rule -- currently unused.
58810
58811 2001-06-24  Jim Meyering  <meyering@lucent.com>
58812
58813         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
58814         unmatched right bracket, rather than kludging it with an extra,
58815         falsely-matching quote in a comment.  Patch by Akim Demaille.
58816
58817 2001-06-11  Jim Meyering  <meyering@lucent.com>
58818
58819         * lib/regex.c: Update from GNU libc.
58820
58821 2001-05-27  Jim Meyering  <meyering@lucent.com>
58822
58823         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
58824         Check for ut_type in struct utmp.
58825
58826 2001-05-27  Jim Meyering  <meyering@lucent.com>
58827
58828         * lib/readutmp.h (UT_TYPE): Define.
58829
58830 2001-05-24  Jim Meyering  <meyering@lucent.com>
58831
58832         * lib/argmatch.c: Include "quote.h".
58833         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
58834         quote function.  Reported by Göran Uddeborg.
58835
58836 2001-05-22  Jim Meyering  <meyering@lucent.com>
58837
58838         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
58839         now that we use the package-supplied version unconditionally.
58840         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
58841
58842 2001-05-21  Jim Meyering  <meyering@lucent.com>
58843
58844         * m4/regex.m4: Change a couple backticks to single quotes to avoid
58845         shell syntax errors.
58846
58847 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
58848
58849         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
58850
58851 2001-05-20  Paul Eggert  <eggert@twinsun.com>
58852
58853         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
58854         Don't bother to check library strftime, since
58855         we'll be using our own my_strftime function anyway.
58856         Define my_strftime instead of strftime.
58857
58858 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
58859
58860         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
58861         which is not yet declared.
58862
58863 2001-05-15  Jim Meyering  <meyering@lucent.com>
58864
58865         * m4/regex.m4: Use proper quoting so brackets appear in the test
58866         program.
58867         Reported by, and with help from, Bruno Haible.
58868
58869 2001-05-13  Jim Meyering  <meyering@lucent.com>
58870
58871         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
58872         undefined.
58873
58874 2001-05-11  Paul Eggert  <eggert@twinsun.com>
58875
58876         dirname code cleanup.  base_name now behaves more compatibly
58877         with POSIX basename when given file names that have trailing
58878         slashes, and similarly for dir_name.  Add new primitives
58879         base_len and dir_len.  Put the directory-name-related decls
58880         into dirname.h.
58881
58882         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
58883         * lib/backupfile.c (base_name): Likewise.
58884         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
58885         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
58886         * lib/makepath.c (strip_trailing_slashes): Likewise.
58887         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
58888         ISSLASH): Likewise.
58889         * lib/rename.c (strip_trailing_slashes): Likewise.
58890         * lib/same.c (base_name): Likewise.
58891         * lib/stripslash.c (ISSLASH): Likewise.
58892
58893         * lib/addext.c: Include <dirname.h> after size_t is defined.
58894         * lib/backupfile.c: Likewise.
58895
58896         * lib/addext.c (addext): Use base_len to trim redundant
58897         trailing slashes instead of doing it ourselves.
58898         But do not trim the last slash if it is not redundant.
58899
58900         * lib/backupfile.c (find_backup_file_name,
58901         max_backup_version): Use base_len instead of rolling it ourselves.
58902         Handle the case of "" and (on DOS) "C:" correctly.
58903
58904         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
58905         needed. Include <string.h>, <dirname.h>.
58906         (base_name): Allow file names ending in slashes, other than names
58907         that are all slashes.  In this case, return the basename followed
58908         by the slashes.  This is more general, and can be used in places
58909         where the original base_name purposely had an assertion failure.
58910         (base_len): New function.
58911
58912         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
58913         Do not include <assert.h>; no longer needed.
58914         Include xalloc.h.
58915         (memrchr): Remove decl.
58916         (dir_name_r): Remove.
58917         (dir_len): Renamed from dirlen.  All callers changed.
58918         Rewrite in terms of base_name, for simplicity and consistency.
58919         (dir_name): Never return NULL.  All callers changed.
58920         Do not include <stdlib.h> in test program; no longer needed.
58921         return 0; is fine for test program.
58922
58923         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
58924         New macros.
58925         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
58926
58927         * lib/path-concat.c (path_concat): Use base_len to compute
58928         base length, not strlen; this means we cannot rely on memcpy
58929         to null-terminate.
58930
58931         * lib/same.c (STREQ): Remove.
58932         (same_name): Handle the case where the basename ends in trailing '/'.
58933
58934         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
58935         a slash was stripped.  Do not strip the last slash after a
58936         file system prefix.
58937
58938 2001-05-11  Paul Eggert  <eggert@twinsun.com>
58939
58940         * lib/Makefile.am (libfetish_a_SOURCES):
58941         Add strftime.c, since we now compile it on all hosts.
58942
58943         * lib/strftime.c (my_strftime):
58944         Define to nstrftime if emacs, but only if my_strftime is not defined.
58945         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
58946         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
58947         Add one more extra argument: a nanoseconds value.
58948         All uses changed.
58949         (ns): New macro.
58950         (my_strftime function): Add %N format.
58951         (emacs_strftimeu): Renamed from emacs_strftime,
58952         with extra ut argument.
58953
58954 2001-05-09  Paul Eggert  <eggert@twinsun.com>
58955
58956         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
58957
58958 2001-04-21  Jim Meyering  <meyering@lucent.com>
58959
58960         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
58961         doesn't interfere.
58962
58963 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
58964
58965         * m4/ftruncate.m4: Check for chsize.
58966         Link with ftruncate.o unconditionally if ftruncate is missing.
58967         This was required when cross-compiling to i586-mingw32msvc.
58968
58969 2001-04-08  Jim Meyering  <meyering@lucent.com>
58970
58971         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
58972         recomputed; that's necessary when the offset spans a DST transition.
58973         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
58974
58975 2001-04-02  Jim Meyering  <meyering@lucent.com>
58976
58977         * lib/regex.h, regex.c: Update from GNU libc.
58978
58979 2001-03-24  Jim Meyering  <meyering@lucent.com>
58980
58981         * m4/jm-macros.m4: Require autoconf-2.49d.
58982
58983 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
58984
58985         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
58986
58987 2001-03-19  Paul Eggert  <eggert@twinsun.com>
58988
58989         * lib/version-etc.c (version_etc_copyright): Update to 2001.
58990
58991 2001-03-17  Jim Meyering  <meyering@lucent.com>
58992
58993         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
58994         now that the version in autoconf is equivalent.
58995         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
58996
58997         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
58998         Suggestion from Akim Demaille.
58999
59000         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
59001         (jm_PREREQ_TEMPNAME): New function.
59002
59003 2001-03-16  Paul Eggert  <eggert@twinsun.com>
59004
59005         * lib/tempname.c (uint64_t): Define to uintmax_t if
59006         not defined, and if UINT64_MAX is not defined.
59007         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
59008         Reported by John David Anglin.
59009
59010 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
59011
59012         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
59013         resolve alias if codeset is empty.
59014         * lib/config.charset (BeOS): Use wildcard syntax.
59015
59016 2001-03-13  Jim Meyering  <meyering@lucent.com>
59017
59018         * lib/path-concat.c (path_concat)
59019         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
59020         concatenating e.g., `C:' and `foo'.
59021         From Bruno Haible.
59022
59023 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
59024
59025         * lib/localcharset.c (locale_charset): Don't use
59026         setlocale(LC_CTYPE,NULL). Don't return NULL.
59027         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
59028
59029 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
59030
59031         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
59032         support for DOS/DJGPP.
59033
59034 2001-03-01  Paul Eggert  <eggert@twinsun.com>
59035
59036         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
59037         lacks mkstemp.  Compile our own tempname.c if we compile our own
59038         mkstemp.c, as mkstemp relies on tempname.
59039
59040 2001-03-01  Jim Meyering  <meyering@lucent.com>
59041
59042         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
59043         AH_VERBATIM really does output its argument verbatim.
59044
59045 2001-02-28  Paul Eggert  <eggert@twinsun.com>
59046
59047         * lib/Makefile.am (libfetish_a_SOURCES):
59048         Add dup-safer.c, fopen-safer.c.
59049         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
59050
59051         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
59052         * lib/unistd-safer.h: New files.
59053
59054 2001-02-25  Paul Eggert  <eggert@twinsun.com>
59055
59056         The mkstemp replacement is taken from glibc 2.2.2, with some
59057         portability fixes for use outside glibc, as follows:
59058
59059         * lib/tempname.c (struct_stat64): New macro.
59060         (direxists, __gen_tempname): Use it.
59061         This avoids a portability problem with Solaris 8.
59062
59063         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
59064         (<stddef.h>, <stdint.h>, <string.h>):
59065         Include only if STDC_HEADERS || _LIBC.
59066         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
59067         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
59068         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
59069         (__set_errno): Define this macro if <errno.h> doesn't.
59070         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
59071         Define these macros if <stdio.h> doesn't.
59072         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
59073         Define these macros if <sys/stat.h>
59074         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
59075         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
59076         __xstat64): Define if not _LIBC.
59077         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
59078         (__gen_tempname): Invoke gettimeofday only if
59079         HAVE_GETTIMEOFDAY || _LIBC;
59080         otherwise, fall back on plain "time".
59081         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
59082
59083         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
59084
59085         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
59086
59087 2001-02-18  Paul Eggert  <eggert@twinsun.com>
59088
59089         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
59090
59091 2001-02-17  Paul Eggert  <eggert@twinsun.com>
59092
59093         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
59094         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
59095         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
59096         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
59097
59098 2001-02-17  Paul Eggert  <eggert@twinsun.com>
59099
59100         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
59101         Remove workaround macros for hosts that have mbrtowc but not
59102         mbstate_t, as we now insist on proper declarations for both
59103         before using mbrtowc.
59104
59105 2001-02-17  Jim Meyering  <meyering@lucent.com>
59106
59107         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
59108         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
59109         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
59110         UnixWare 7.1.1.
59111
59112         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
59113         rather than AC_CACHE_VAL.
59114
59115 2001-02-17  Jim Meyering  <meyering@lucent.com>
59116
59117         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
59118         around included file name.
59119
59120         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
59121
59122         * lib/strftime.c: Update from GNU libc (the only changes were to
59123         comments).
59124
59125 2001-02-17  Jim Meyering  <meyering@lucent.com>
59126
59127         * lib/regex.c: Update from libc.
59128
59129 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
59130
59131         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
59132         clash.
59133
59134 2001-02-16  Paul Eggert  <eggert@twinsun.com>
59135
59136         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
59137         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
59138         Reported by Mark Hounschell via Paul Eggert.
59139
59140 2001-02-07  Jim Meyering  <meyering@lucent.com>
59141
59142         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
59143
59144 2001-02-05  Jim Meyering  <meyering@lucent.com>
59145
59146         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
59147         it includes the patch required for `large file' support with at least
59148         HP-UX's 10.20 /bin/cc.
59149
59150 2001-02-03  Jim Meyering  <meyering@lucent.com>
59151
59152         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
59153         AS_IF, now that it works once again (mysteriously).
59154         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
59155
59156 2001-01-30  Jim Meyering  <meyering@lucent.com>
59157
59158         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
59159         * m4/chown.m4: Rename conftestchown to conftest.chown.
59160         * m4/rename.m4: s/conftestdir/conftest.d1/ and
59161         s/conftestdir2/conftest.d2/.
59162         * m4/utimes.m4: s/conftestdata/conftest.data/
59163         Inspired by Pavel Roskin's change in autoconf.
59164
59165 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
59166
59167         * lib/config.charset: Update for FreeBSD 4.2.
59168
59169 2001-01-27  Jim Meyering  <meyering@lucent.com>
59170
59171         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
59172         a use of AS_IF.
59173         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
59174
59175 2001-01-26  Jim Meyering  <meyering@lucent.com>
59176
59177         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
59178         quotearg.c includes it.
59179
59180 2001-01-26  Jim Meyering  <meyering@lucent.com>
59181
59182         * lib/quotearg.c: Include stddef.h.
59183         * lib/quote.c: Include stddef.h.
59184         Reported by Axel Kittenberger.
59185
59186         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
59187         line in double quotes so that it evokes a better diagnostic.
59188         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
59189         Reported by Axel Kittenberger.
59190
59191 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
59192
59193         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
59194         as if it was a `charset'.
59195
59196 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
59197
59198         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
59199         has const.
59200
59201 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
59202
59203         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
59204         to avoid a warning.  Add back 'const' to inptr.
59205
59206 2001-01-20  Jim Meyering  <meyering@lucent.com>
59207
59208         Be sure that headers are checked before used in code compiled
59209         for the type checks.
59210         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
59211         In place of that, invoke jm_CHECK_ALL_TYPES.
59212         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
59213         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
59214         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
59215         The check for ssize_t was mistakenly run before the test for unistd.h.
59216
59217         The configure-time check for stdbool.h was missing.
59218         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
59219         (jm_PREREQ_HASH): New function.
59220
59221 2001-01-17  Jim Meyering  <meyering@lucent.com>
59222
59223         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
59224         for autoconf-2.49c.
59225         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
59226
59227 2001-01-16  Jim Meyering  <meyering@lucent.com>
59228
59229         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
59230         From Bruno Haible.
59231
59232 2001-01-14  Jim Meyering  <meyering@lucent.com>
59233
59234         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
59235         foo and bar.  Create conftestdir/ in the script, not in the C code.
59236         Remove directories in the script, not in the C code.
59237         Remove conftestdir{,2} before trying to create the directory.
59238         Make the entire configure script fail if the mkdir fails.
59239
59240 2001-01-14  Jim Meyering  <meyering@lucent.com>
59241
59242         * lib/rename.c: New file.  From Volker Borchert.
59243         Include stdlib.h, string.h or strings.h, and xalloc.h.
59244         Use strip_trailing_slashes rather than open-coding it.
59245
59246 2001-01-03  Paul Eggert  <eggert@twinsun.com>
59247
59248         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
59249
59250 2001-01-03  Jim Meyering  <meyering@lucent.com>
59251
59252         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
59253         of local `inptr' to avoid warning with some system declarations of
59254         iconv.
59255
59256 2001-01-02  Volker Borchert  <bt@teknon.de>
59257
59258         * m4/rename.m4: New file.
59259         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
59260
59261 2001-01-01  Jim Meyering  <meyering@lucent.com>
59262
59263         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
59264         even on systems with utmpx.h.  It's necessary for the declaration of
59265         utmp's ut_user member.  Reported by Andreas Jaeger.
59266
59267         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
59268         available. They are required for the declarations of getgrgid and
59269         getpwuid resp.
59270         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
59271         Reported by Andreas Jaeger.
59272
59273 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
59274
59275         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
59276         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
59277         so `make install' also works in VPATH builds.
59278
59279 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
59280
59281         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
59282         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
59283         can be used in subdirectories.
59284
59285 2000-12-29  Paul Eggert  <eggert@twinsun.com>
59286
59287         * lib/modechange.c: Do not assume that mode_t uses the
59288         traditional octal encoding.  E.g. "chmod 1 FOO" should set
59289         the other-execute bit of FOO even if S_IXOTH != 1.
59290
59291         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
59292         WOTH, XOTH, ALLM): New macros.
59293         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
59294          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
59295         Use them.
59296         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
59297         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
59298         (mode_compile):
59299         No need to use uintmax_t; unsigned long is long enough.
59300         Don't bother to get suffix since we don't use it.
59301
59302 2000-12-26  Jim Meyering  <meyering@lucent.com>
59303
59304         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
59305         better with autoheader.
59306
59307 2000-12-24  Jim Meyering  <meyering@lucent.com>
59308
59309         * lib/hash.c (is_prime): Return explicit boolean values.
59310         (hash_get_first): Return NULL to appease Irix5.6's 89.
59311         Reported by Nelson Beebe.
59312
59313 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
59314
59315         * lib/localcharset.c (locale_charset): Add support for Win32.
59316
59317 2000-12-18  Paul Eggert  <eggert@twinsun.com>
59318
59319         * lib/physmem.h, lib/physmem.c: New files.
59320
59321         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
59322         (noinst_HEADERS): Add physmem.h.
59323
59324         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
59325         't' for compatibility with Solaris 8 sort.
59326
59327 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
59328
59329         * lib/config.charset: Add support for BeOS.
59330
59331 2000-12-17  Jim Meyering  <meyering@lucent.com>
59332
59333         * m4/dos.m4 (jm_AC_DOS): New file and macro.
59334         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
59335
59336 2000-12-16  Jim Meyering  <meyering@lucent.com>
59337
59338         This bug had a serious impact on chown: `chown N:M FILE' (for integer
59339         N and M) would have treated it like `chown N:N FILE'.
59340
59341         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
59342
59343 2000-12-16  Jim Meyering  <meyering@lucent.com>
59344
59345         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
59346         SHELLS_FILE to a file name that's useful on djgpp systems.
59347         Include stdlib.h.
59348         (ADDITIONAL_DEFAULT_SHELLS): Define.
59349         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
59350         Based mostly on a patch from Prashant TR.
59351
59352 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
59353
59354         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
59355         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
59356         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
59357
59358 2000-12-08  Andreas Schwab  <schwab@suse.de>
59359
59360         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
59361         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
59362
59363 2000-12-07  Jim Meyering  <meyering@lucent.com>
59364
59365         * lib/stripslash.c (ISSLASH): Define.
59366         (strip_trailing_slashes): Use ISSLASH rather than comparing against
59367         `/'.
59368         From Prashant TR.
59369
59370         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
59371         (dir_name_r): Declare this function as static.
59372         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
59373         manifest itself on a name containing a mix of slashes and
59374         backslashes.
59375         Make this function work with names starting with a DOS-style
59376         drive letter and colon prefix.
59377         (dir_name): Append `.' if necessary.
59378         Based mostly on patches from Prashant TR and Eli Zaretskii.
59379
59380         * lib/dirname.h (dir_name_r): Remove prototype.
59381
59382 2000-12-06  Paul Eggert  <eggert@twinsun.com>
59383
59384         * m4/off_t-format.m4: Remove this file.
59385         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
59386
59387 2000-12-06  Jim Meyering  <meyering@lucent.com>
59388
59389         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
59390         replacement strtoull, we may well need the replacement strtoul, too.
59391         Check for declarations of strtoul and strtoull.
59392         Check for strtol.  Mainly as a cue to cause automake to include
59393         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
59394         Check for limits.h -- strtol.c needs it.
59395
59396 2000-12-05  Jim Meyering  <meyering@lucent.com>
59397
59398         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
59399
59400 2000-12-04  Jim Meyering  <meyering@lucent.com>
59401
59402         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
59403         Also include memory.h, stdlib.h, unistd.h if appropriate.
59404         Reported by Andreas Jaeger (conflicting declaration of malloc).
59405
59406 2000-12-02  Jim Meyering  <meyering@lucent.com>
59407
59408         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
59409         * m4/jm-macros.m4 (jm_MACROS): require it.
59410
59411 2000-12-02  Jim Meyering  <meyering@lucent.com>
59412
59413         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
59414
59415 2000-12-01  Paul Eggert  <eggert@twinsun.com>
59416
59417         * lib/memrchr.c: Include <config.h> before any system include file.
59418
59419 2000-11-30  Jim Meyering  <meyering@lucent.com>
59420
59421         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
59422
59423 2000-11-30  Jim Meyering  <meyering@lucent.com>
59424
59425         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
59426
59427 2000-11-29  Paul Eggert  <eggert@twinsun.com>
59428
59429         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
59430
59431 2000-11-26  Jim Meyering  <meyering@lucent.com>
59432
59433         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
59434
59435 2000-11-22  Paul Eggert  <eggert@twinsun.com>
59436
59437         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
59438         size of (size_t) -1; it's not portable.
59439
59440 2000-11-17  Jim Meyering  <meyering@lucent.com>
59441
59442         * lib/strstr.c: Update from GNU libc.
59443
59444 2000-11-17  Akim Demaille  <akim@epita.fr>
59445
59446         * lib/obstack.h: Formatting changes.
59447         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
59448         prevent type checking.
59449         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
59450         cast the value to (void *): assigning a `foo *' to a `void *'
59451         variable is valid.
59452         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
59453
59454 2000-11-16  Jim Meyering  <meyering@lucent.com>
59455
59456         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
59457
59458 2000-11-11  Jim Meyering  <meyering@lucent.com>
59459
59460         * lib/error.c: Add a couple #includes, merging from GNU libc version.
59461
59462 2000-11-10  Jim Meyering  <meyering@lucent.com>
59463
59464         * lib/obstack.h: Update from GNU libc.
59465         * lib/obstack.c: Likewise.
59466
59467 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
59468
59469         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
59470
59471 2000-11-06  Paul Eggert  <eggert@twinsun.com>
59472
59473         * lib/getusershell.c (setusershell): Use rewind rather than
59474         fseek/fseeko, to avoid configuration hassles with fseeko.
59475         Don't bother opening SHELLS_FILE if shellstream is NULL;
59476         it's not necessary.
59477
59478 2000-11-05  Jim Meyering  <meyering@lucent.com>
59479
59480         * lib/makepath.h (make_dir): Declare.
59481         * lib/makepath.c (make_dir): Remove `static' attribute.
59482         Tweak a comment.
59483
59484 2000-11-04  Jim Meyering  <meyering@lucent.com>
59485
59486         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
59487
59488 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
59489
59490         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
59491         last one in a bucket, advance to the next bucket.
59492
59493 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
59494
59495         * lib/fnmatch.c: Do not comment out all the code if we are using
59496         the GNU C library, because in some cases we are replacing buggy
59497         code in the GNU C library itself.
59498
59499 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
59500
59501         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
59502         (regex_compile): Catch bogus \(\1\).
59503
59504 2000-10-30  Paul Eggert  <eggert@twinsun.com>
59505
59506         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
59507         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
59508         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
59509
59510 2000-10-30  Paul Eggert  <eggert@twinsun.com>
59511
59512         * lib/error.h, getline.h, modechange.h:
59513         Remove "2000" from Copyright line, as the file hasn't been
59514         changed this year other than in the copyright notice.
59515
59516         * lib/xalloc.h: Add "2000" to Copyright line, as this file
59517         was changed this year.
59518
59519 2000-10-29  Jim Meyering  <meyering@lucent.com>
59520
59521         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
59522         renaming.
59523         * m4/ls-mntd-fs.m4: Likewise
59524
59525 2000-10-29  Jim Meyering  <meyering@lucent.com>
59526
59527         * lib/xstat.in: Fix grammar in comment.
59528
59529 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
59530
59531         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
59532         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
59533         doesn't define __restrict_arr.
59534
59535 2000-10-28  Jim Meyering  <meyering@lucent.com>
59536
59537         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
59538         (jm_PREREQ_MEMCHR): New function.
59539
59540 2000-10-28  Jim Meyering  <meyering@lucent.com>
59541
59542         * lib/memchr.c: Update from libc.
59543         Adjust for portability:
59544         [HAVE_STDLIB_H]: Include stdlib.h.
59545         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
59546         Undef __memchr, too.
59547         [!weak_alias]: Define __memchr to memchr.
59548
59549         * lib/regex.c: Update from libc.
59550         * lib/regex.h: Likewise.
59551         * lib/getopt1.c: Likewise.
59552         * lib/memcmp.c: Likewise.
59553
59554         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
59555         Avoid using fseek, when possible -- it's broken by design.
59556         Patch by Ulrich Drepper.
59557
59558 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
59559
59560         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
59561         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
59562         Giving in to popular pressure to shut up the compiler with casts.
59563
59564 2000-10-26  Jim Meyering  <meyering@lucent.com>
59565
59566         * lib/strftime.c: Update from libc.
59567
59568 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
59569
59570         * regex.c: More `unsigned char' -> `re_char' changes.
59571         Also change several `int' into `re_wchar_t'.
59572         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
59573         (PUSH_FAILURE_POINTER): Don't cast any more.
59574         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
59575         We want GCC to complain, since this piece of code makes
59576         re_match non-reentrant, which *should* be fixed.
59577         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
59578         (EXTEND_BUFFER): Use RETALLOC.
59579         (SET_LIST_BIT): Don't cast.
59580         (re_wchar_t): New type.
59581         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
59582         that those two functions will always properly return.
59583         (IMMEDIATE_QUIT_CHECK): Cast to void.
59584         (analyse_first): Use recursion rather than an explicit stack.
59585         (re_compile_fastmap): Can't fail anymore.
59586         (re_search_2): Don't check re_compile_fastmap for failure.
59587         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
59588         Now also sets the new value (passed in a new argument).
59589         (re_match_2_internal): Use it.
59590         Also, use a new var `reg' of type size_t when looping through regs
59591         rather than reuse the inappropriate `mcnt'.
59592
59593 2000-10-25  Jim Meyering  <meyering@lucent.com>
59594
59595         * lib/obstack.c: Update from libc.
59596
59597 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
59598
59599         * regex.c (regex_compile): Change the way of handling a range from
59600         a char less than 256 to a char not less than 256.
59601
59602 2000-10-24  Andrew Innes  <andrewi@gnu.org>
59603
59604         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
59605         NT-Emacs only.
59606         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
59607         so that re_search functions only quit when callers expect them to.
59608
59609 2000-10-23  Jim Meyering  <meyering@lucent.com>
59610
59611         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
59612         wrong.  That set_locale call must not have any side effects.
59613         From Paul Eggert.
59614
59615 2000-10-22  Jim Meyering  <meyering@lucent.com>
59616
59617         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
59618         [CYCLIC]: Remove now-unused definition.
59619
59620         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
59621         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
59622         Suggestion from Ulrich Drepper.
59623
59624 2000-10-21  Jim Meyering  <meyering@lucent.com>
59625
59626         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
59627         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
59628         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
59629
59630 2000-10-21  Jim Meyering  <meyering@lucent.com>
59631
59632         * lib/dirname.c (memrchr): Declare if necessary.
59633         (dir_name): Remove the restriction that there be no
59634         trailing slashes.  Now, this code skips past them, effectively
59635         ignoring them.
59636         [TEST_DIRNAME] (main): New unit tests.
59637
59638         * lib/memrchr.c: New file from GNU libc.
59639         Undef __memrchr, too.
59640         [!weak_alias]: Define __memrchr to memrchr.
59641         Guard weak_alias use with `#ifdef weak_alias'.
59642
59643 2000-10-21  Jim Meyering  <meyering@lucent.com>
59644
59645         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
59646         (dir_name): Use dir_name_r.
59647         * lib/dirname.h (dir_name_r): Declare it.
59648
59649 2000-10-17  Jim Meyering  <meyering@lucent.com>
59650
59651         * lib/quote.h (PARAMS): Define and use.
59652         Reported by Akim Demaille.
59653
59654         * lib/getopt.c: Update from libc.
59655
59656 2000-10-16  Jim Meyering  <meyering@lucent.com>
59657
59658         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
59659         setlocale.
59660         From Jan Fedak.
59661
59662 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
59663
59664         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
59665
59666 2000-09-25  Jim Meyering  <meyering@lucent.com>
59667
59668         * lib/md5.h (rol): Define (from GnuPG).
59669
59670         * lib/sha.c: Give credit (GnuPG) where due.
59671         (M): Use rol rather than open-coding it.
59672         Add a FIXME comment.
59673
59674 2000-09-21  Jim Meyering  <meyering@lucent.com>
59675
59676         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
59677         Reported by Michael Stone.
59678
59679 2000-09-20  Jim Meyering  <meyering@lucent.com>
59680
59681         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
59682         (noinst_HEADERS): Add sha.h.
59683         Based on code from Scott G. Miller and from GnuPG.
59684
59685 2000-09-18  Jim Meyering  <meyering@lucent.com>
59686
59687         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
59688         LIBS. Otherwise, everyone ends up linking with -lelf for some
59689         configurations.
59690         Reported by Mike Stone.
59691
59692 2000-09-15  Jim Meyering  <meyering@lucent.com>
59693
59694         * lib/regex.c: Update from libc.
59695
59696 2000-09-10  Jim Meyering  <meyering@lucent.com>
59697
59698         * lib/getopt.c (_getopt_internal): Update from glibc.
59699
59700 2000-09-09  Jim Meyering  <meyering@lucent.com>
59701
59702         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
59703         think it should be used as a general replacement for isascii.
59704         * lib/fnmatch.c: Likewise.
59705         * lib/mbswidth.c: Likewise
59706         * lib/regex.c: Likewise.
59707
59708         Don't use atoi.
59709         * lib/userspec.c: Include sys/param.h and limits.h.
59710         Include xstrtol.h.
59711         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
59712         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
59713         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
59714         UID, GID.  Check range.
59715
59716 2000-09-06  Jim Meyering  <meyering@lucent.com>
59717
59718         * lib/getopt.c (_getopt_internal): Update from glibc.
59719
59720 2000-08-30  Jim Meyering  <meyering@lucent.com>
59721
59722         * lib/strftime.c: Merge in changes from GNU libc.
59723
59724 2000-08-26  Jim Meyering  <meyering@lucent.com>
59725
59726         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
59727         * m4/fpending.m4: New file.
59728
59729 2000-08-26  Jim Meyering  <meyering@lucent.com>
59730
59731         * lib/closeout.c: Include "__fpending.h".
59732         (close_stdout_status): Return right away if there's nothing to flush.
59733
59734         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
59735         * lib/__fpending.c: New file.
59736         * lib/__fpending.h: New file.
59737
59738 2000-08-20  Jim Meyering  <meyering@lucent.com>
59739
59740         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
59741         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
59742         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
59743
59744 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
59745
59746         Improve fileutils installation on systems where running
59747         programs (like install) can't be unlinked.
59748         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
59749         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
59750
59751 2000-08-07  Paul Eggert  <eggert@twinsun.com>
59752
59753         Standardize on "memory exhausted" instead of "Memory exhausted"
59754         or "virtual memory exhausted".
59755         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
59756         "virtual memory exhausted".
59757         * lib/same.c (same_name): Invoke xalloc_die instead of printing
59758         our own message.
59759         * lib/userspec.c (parse_user_spec): Likewise.
59760         * lib/bumpalloc.h: comment fix
59761         * lib/same.c, userspec.c: Include xalloc.h.
59762
59763         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
59764         not char *const and pointing to a constant array.
59765         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
59766         (xrealloc): Comment fix.
59767
59768         * lib/userspec.c (parse_user_spec):
59769         Don't translate a message until just before returning,
59770         to avoid unnecessary translation.
59771
59772 2000-08-07  Jim Meyering  <meyering@lucent.com>
59773
59774         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
59775         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
59776         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
59777         getgroups.c, gethostname.c, getopt.h, group-member.c,
59778         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
59779         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
59780         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
59781         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
59782         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
59783         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
59784         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
59785         yesno.c: Back out Copyright date changes for each file with no change
59786         this year.  This eases coordination with other programs using the same
59787         source code modules.  From Paul Eggert.
59788
59789 2000-08-06  Paul Eggert  <eggert@twinsun.com>
59790
59791         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
59792         not char, for compatibility with glibc 2.1.3 strftime.c.
59793
59794 2000-08-03  Greg McGary  <greg@mcgary.org>
59795
59796         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
59797         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
59798         (EXTEND_BUFFER): Use them.
59799
59800 2000-08-01  Jim Meyering  <meyering@lucent.com>
59801
59802         * lib/dirname.c (ISSLASH): Define.
59803         (BACKSLASH_IS_PATH_SEPARATOR): Define.
59804         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
59805         both `\' and `/' may be use as path separators.
59806         Based on a patch from Prashant TR.
59807
59808 2000-07-31  Paul Eggert  <eggert@twinsun.com>
59809
59810         * lib/quotearg.c (quotearg_n_options): Don't make the initial
59811         slot vector a constant, since it might get modified.
59812
59813 2000-07-31  Jim Meyering  <meyering@lucent.com>
59814
59815         * lib/xmalloc.c: Use `virtual memory exhausted', not
59816         `Memory exhausted'.
59817         * lib/obstack.c (print_and_abort): Likewise.
59818
59819 2000-07-30  Paul Eggert  <eggert@twinsun.com>
59820
59821         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
59822         buffer, so that the caller can always quote one small
59823         component of a "memory exhausted" message in slot 0.
59824         From a suggestion by Jim Meyering.
59825
59826 2000-07-30  Jim Meyering  <meyering@lucent.com>
59827
59828         * lib/makepath.c (make_path): Quote the other instance, too.
59829
59830         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
59831         (STATIC_BUF_SIZE): Define.
59832         (quotearg_n_options): Use only statically allocated storage when
59833         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
59834         than STATIC_BUF_SIZE.
59835
59836 2000-07-29  Jim Meyering  <meyering@lucent.com>
59837
59838         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
59839         * lib/dirname.c (dir_name): Likewise.
59840
59841         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
59842         `/'.
59843
59844         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
59845         (dir_name): Assert that there are no trailing slashes.
59846
59847 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
59848
59849         * lib/mbswidth.h (mbswidth): Add a flags argument.
59850         (mbswidth): New declaration.
59851         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
59852         * lib/mbswidth.c (mbswidth): Add a flags argument.
59853         (mbsnwidth): New function.
59854
59855 2000-07-24  Jim Meyering  <meyering@lucent.com>
59856
59857         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
59858
59859 2000-07-23  Paul Eggert  <eggert@twinsun.com>
59860
59861         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
59862
59863 2000-07-23  Paul Eggert  <eggert@twinsun.com>
59864
59865         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
59866         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
59867         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
59868         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
59869         invoke multibyte primitives.
59870
59871 2000-07-23  Paul Eggert  <eggert@twinsun.com>
59872
59873         * lib/quotearg.c:
59874         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
59875         so that mbstate_t is always defined.
59876
59877         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
59878         be 1 in at least one GCC installation, and this configuration
59879         error is likely to be common.  Ignoring MB_LEN_MAX hurts
59880         performance on hosts that have mbrtowc but have only unibyte
59881         locales, but I assume these hosts are rare.
59882
59883 2000-07-23  Paul Eggert  <eggert@twinsun.com>
59884
59885         * lib/mbswidth.c (_XOPEN_SOURCE):
59886         Don't define; this causes problems on Solaris 7.
59887         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
59888
59889 2000-07-23  Jim Meyering  <meyering@lucent.com>
59890
59891         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
59892         too: getgrgid, getpwuid, getuid.
59893
59894 2000-07-23  Jim Meyering  <meyering@lucent.com>
59895
59896         * lib/basename.c (base_name): Add an assertion.
59897
59898 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
59899
59900         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
59901         shadow its mbsinit function.
59902
59903 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
59904
59905         * lib/mbswidth.h: New file.
59906         * lib/mbswidth.c: New file.
59907         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
59908         (noinst_HEADERS): Add mbswidth.h.
59909
59910 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
59911
59912         * lib/config.charset: Add support for FreeBSD. Improve support for
59913         HP-UX and IRIX 6.
59914
59915 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
59916
59917         * m4/mbswidth.m4: New file.
59918         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
59919
59920 2000-07-15  Jim Meyering  <meyering@lucent.com>
59921
59922         * lib/makepath.c: Include quote.h.
59923         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
59924         corresponding argument in a `quote (...)' call.
59925         Give better diagnostics.
59926
59927         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
59928         (noinst_HEADERS): Add quote.h.
59929
59930         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
59931         from tar's src/misc.c.
59932         * lib/quote.h: New file.  Prototypes for same.
59933
59934 2000-07-14  Paul Eggert  <eggert@twinsun.com>
59935
59936         From a suggestion by Bruno Haible.
59937         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
59938         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
59939         to decide whether to define the BeOS workaround macro;
59940         this adjusts to the change to AC_MBSTATE_T.
59941
59942 2000-07-14  Jim Meyering  <meyering@lucent.com>
59943
59944         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
59945         jm_AC_TYPE_UINTMAX_T.
59946
59947 2000-07-13  Paul Eggert  <eggert@twinsun.com>
59948
59949         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
59950
59951         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
59952         quotearg_buffer_restyled): Add support for
59953         clocale_quoting_style.  Undo previous change to
59954         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
59955         and "{RIGHT QUOTATION MARK}" msgids.
59956
59957 2000-07-10  Paul Eggert  <eggert@twinsun.com>
59958
59959         From a suggestion by Bruno Haible.
59960         * m4/mbstate_t.m4 (AC_MBSTATE_T):
59961         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
59962         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
59963         and mbstate_t, to a single-part test that simply defines mbstate_t.
59964         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
59965         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
59966
59967 2000-07-10  Jim Meyering  <meyering@lucent.com>
59968
59969         * m4/strerror_r.m4: Mirror the correction made in autoconf.
59970
59971         * m4/gnu-source.m4: Output to confdefs.h directly.
59972         Suggestion from Akim Demaille.
59973
59974 2000-07-09  Paul Eggert  <eggert@twinsun.com>
59975
59976         The old behavior of quoting `like this' doesn't look good with
59977         newer, ISO-style fonts.  See:
59978         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
59979
59980         Instead, quote "like this" by default.  Let the translator
59981         tailor the locale-specific quoting behavior by providing
59982         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
59983
59984         * lib/quotearg.c (N_): New macro.
59985         (gettext_default): New function.
59986         (quotearg_buffer_restyled): Use
59987         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
59988         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
59989
59990 2000-07-09  Jim Meyering  <meyering@lucent.com>
59991
59992         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
59993         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
59994
59995         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
59996         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
59997
59998 2000-07-09  Jim Meyering  <meyering@lucent.com>
59999
60000         * lib/Most files: Update copyright dates to include 2000.
60001
60002 2000-07-08  Jim Meyering  <meyering@lucent.com>
60003
60004         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
60005         if not defined.
60006         (xgethostname): Remove now-unnecessary #ifdef.
60007         Move declaration of `err' into loop where it's used.
60008
60009 2000-07-05  Paul Eggert  <eggert@twinsun.com>
60010         and Bruno Haible  <haible@clisp.cons.org>
60011
60012         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
60013         only if the test for an object-type mbstate_t fails.  This
60014         prevents us from mistakenly reporting that mbstate_t is a
60015         system object type after we "#define mbstate_t int" to work
60016         around its lack.
60017
60018 2000-07-05  Paul Eggert  <eggert@twinsun.com>
60019         and Bruno Haible  <haible@clisp.cons.org>
60020
60021         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
60022
60023 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
60024
60025         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
60026         to strerror_r.
60027         Include <ctype.h> for use of isalpha.
60028
60029 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
60030
60031         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
60032         by allocating a larger buffer. Test the gethostname return value for
60033         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
60034         returns an error and ENAMETOOLONG isn't defined.
60035
60036 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
60037
60038         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
60039         dimension.
60040
60041 2000-07-04  Jim Meyering  <meyering@lucent.com>
60042
60043         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
60044         of the deprecated AC_CHECKING.
60045
60046 2000-07-04  Jim Meyering  <meyering@lucent.com>
60047
60048         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
60049         Reported by Bruno Haible.
60050
60051 2000-07-04  Jim Meyering  <meyering@lucent.com>
60052
60053         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
60054         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
60055         lacks mbrtowc.
60056
60057 2000-07-03  Paul Eggert  <eggert@twinsun.com>
60058
60059         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
60060         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
60061
60062 2000-07-03  Paul Eggert  <eggert@twinsun.com>
60063         and Bruno Haible  <haible@clisp.cons.org>
60064
60065         * lib/quotearg.c (mbrtowc):
60066         Assign to *pwc, and return 1 only if result is nonzero.
60067         (iswprint): Use ISPRINT when substituting our own mbrtowc.
60068
60069 2000-07-03  Jim Meyering  <meyering@lucent.com>
60070
60071         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
60072
60073 2000-07-03  Jim Meyering  <meyering@lucent.com>
60074
60075         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
60076         This is necessary to get a definition of e.g., UTMP_FILE on
60077         HP-UX 10.20.
60078         From Bob Proulx.
60079
60080 2000-07-02  Jim Meyering  <meyering@lucent.com>
60081
60082         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
60083
60084         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
60085         AC_LIBOBJ(function_name).
60086         * m4/chown.m4: Likewise.
60087         * m4/fnmatch.m4: Likewise.
60088         * m4/ftruncate.m4: Likewise.
60089         * m4/getgroups.m4: Likewise.
60090         * m4/getline.m4: Likewise.
60091         * m4/group-member.m4: Likewise.
60092         * m4/jm-macros.m4: Likewise.
60093         * m4/lstat.m4: Likewise.
60094         * m4/malloc.m4: Likewise.
60095         * m4/memcmp.m4: Likewise.
60096         * m4/nanosleep.m4: Likewise.
60097         * m4/putenv.m4: Likewise.
60098         * m4/realloc.m4: Likewise.
60099         * m4/regex.m4: Likewise.
60100         * m4/stat.m4: Likewise.
60101         * m4/strftime.m4: Likewise.
60102
60103 2000-07-02  Jim Meyering  <meyering@lucent.com>
60104
60105         * lib/quotearg.c (mbstate_t): Don't define here.
60106
60107 2000-07-02  Jim Meyering  <meyering@lucent.com>
60108
60109         * lib/nanosleep.c (SIGCONT): Define if not already defined.
60110
60111 2000-07-01  Jim Meyering  <meyering@lucent.com>
60112
60113         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
60114
60115 2000-07-01  Jim Meyering  <meyering@lucent.com>
60116
60117         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
60118         problem.
60119
60120 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
60121
60122         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
60123         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
60124
60125 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
60126
60127         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
60128         per change in ../m4/ls-mntd-fs.m4.
60129         (read_filesystem_list): Ignore symbolic links.
60130
60131 2000-06-29  Jim Meyering  <meyering@lucent.com>
60132
60133         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
60134         for declaration of strcmp.
60135
60136         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
60137
60138         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
60139         Avoid warning by casting result to `char *' to remove `const'.
60140
60141 2000-06-28  Jim Meyering  <meyering@lucent.com>
60142
60143         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
60144         included by quotearg.c, for which we perform this test.  From
60145         Bruno Haible.
60146
60147 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
60148
60149         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
60150         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
60151         <utmpx.h> exists, put readutmp.o into LIBOBJS.
60152
60153 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
60154
60155         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
60156
60157 2000-06-26  Paul Eggert  <eggert@twinsun.com>
60158
60159         savedir now sets errno on failure and invokes xmalloc to get memory.
60160         Fix a couple of other minor bugs while we're at it.
60161
60162         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
60163         (NAMLEN): Remove macro.
60164         (malloc, realloc): Remove decls.
60165         (stpcpy): Likewise.
60166         ("xalloc.h"): Include.
60167         (NAME_SIZE_DEFAULT): New macro.
60168         (savedir): Use xmalloc / xrealloc to allocate memory.
60169         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
60170         Skip "" directory entries.
60171         Use strlen to calculate directory entry length, since the old method
60172         is rarely used these days and isn't worth supporting.
60173         Don't use a pointer after freeing it.
60174         Check for integer overflow when calculating allocation size.
60175         Use memcpy to copy entries, instead of stpcpy.
60176         Set errno properly when returning NULL.
60177         Check for readdir error.
60178
60179 2000-06-26  Jim Meyering  <meyering@lucent.com>
60180
60181         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
60182
60183 2000-06-25  Jim Meyering  <meyering@lucent.com>
60184
60185         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
60186         Linux header bug when _XOPEN_SOURCE is defined to 500.
60187
60188 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
60189
60190         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
60191         deficiency.
60192
60193 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
60194
60195         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
60196         Include xalloc.h.
60197         Don't include <stdlib.h>.  Don't declare malloc, realloc.
60198
60199 2000-06-24  Jim Meyering  <meyering@lucent.com>
60200
60201         * m4/strerror_r.m4: Revive this file -- to try out an experimental
60202         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
60203         for which strerror does return char*, but which lacks a conveniently
60204         accessible declaration of the function.  If the compile-test says
60205         strerror_r doesn't work, then resort to a `run'-test that works on
60206         BeOS and segfaults on DEC Unix.
60207
60208 2000-06-24  Jim Meyering  <meyering@lucent.com>
60209
60210         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
60211
60212 2000-06-23  Paul Eggert  <eggert@twinsun.com>
60213
60214         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
60215         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
60216
60217 2000-06-23  Paul Eggert  <eggert@twinsun.com>
60218
60219         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
60220         (mbrtowc, mbstate_t): Define substitutes if
60221         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
60222         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
60223         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
60224
60225 2000-06-23  Jim Meyering  <meyering@lucent.com>
60226
60227         * m4/afs.m4: Add missing AC_MSG_RESULT.
60228         Reported by Bruno Haible.
60229
60230         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
60231         Suggestion from Bruno Haible.
60232
60233 2000-06-23  Jim Meyering  <meyering@lucent.com>
60234
60235         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
60236
60237 2000-06-21  Jim Meyering  <meyering@lucent.com>
60238
60239         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
60240
60241 2000-06-21  Jim Meyering  <meyering@lucent.com>
60242
60243         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
60244         (noinst_HEADERS): Add getstr.h.
60245
60246         * lib/getline.c (getstr): Move into a separate file.
60247         * lib/getstr.c (getstr): New file, extracted from getline.c, with
60248         the following changes: new parameter, delim2; both delim[12]
60249         parameters have type `int', not `char'.  The latter would lose
60250         with 8-bit delimiters.
60251         * lib/getstr.h: New file.
60252
60253 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
60254
60255         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
60256         than 1024, return a memory chunk of least possible size, instead
60257         of size PATH_MAX + 2. In the loop, increment the size proportionally.
60258         Use free/xmalloc instead of xrealloc to avoid copying for very long
60259         paths.
60260
60261 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
60262
60263         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
60264         the empty string.
60265
60266 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
60267
60268         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
60269         address, not strdup.  Include <stdlib.h> and don't declare free().
60270
60271 2000-06-19  Jim Meyering  <meyering@lucent.com>
60272
60273         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
60274
60275 2000-06-18  Jim Meyering  <meyering@lucent.com>
60276
60277         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
60278
60279         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
60280         `checking whether...' message to be consistent with that of the
60281         lstat test.
60282
60283 2000-06-18  Jim Meyering  <meyering@lucent.com>
60284
60285         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
60286         Besides, these days every porting target provides a mkdir function.
60287
60288         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
60289         needed. (this snippet comes from src/system.h).
60290
60291 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
60292
60293         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
60294
60295 2000-06-15  Paul Eggert  <eggert@twinsun.com>
60296
60297         * lib/human.c (adjust_value): New function.
60298         (human_readable_inexact): Apply rounding style even when
60299         printing approximate values.
60300
60301 2000-06-14  Paul Eggert  <eggert@twinsun.com>
60302
60303         * lib/human.c (human_readable_inexact): Allow an input block
60304         size that is not a multiple of the output block size, and vice versa.
60305         Reported by Piergiorgio Sartor.
60306
60307 2000-06-14  Paul Eggert  <eggert@twinsun.com>
60308
60309         * lib/getdate.y (get_date): Apply relative times after time
60310         zone indicator, not before.  Reported by Todd A. Jacobs.
60311
60312 2000-06-13  Jim Meyering  <meyering@lucent.com>
60313
60314         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
60315
60316         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
60317
60318 2000-06-12  Paul Eggert  <eggert@twinsun.com>
60319
60320         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
60321
60322 2000-06-12  Jim Meyering  <meyering@lucent.com>
60323
60324         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
60325         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
60326         optional argument.
60327         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
60328         the optional argument, `lib'.
60329
60330 2000-06-08  Jim Meyering  <meyering@lucent.com>
60331
60332         * m4/largefile.m4: Remove file (now that it's part of autoconf).
60333
60334 2000-06-04  Paul Eggert  <eggert@twinsun.com>
60335
60336         Rewrite largefile configuration so that we don't need to run
60337         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
60338         AC_CANONICAL_HOST in configure.in -- jmm]
60339
60340         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
60341         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
60342         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
60343         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
60344         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
60345         All uses changed.
60346         Instead of inspecting the output of getconf, try to compile the
60347         test program without and with the macro definition.
60348         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
60349         for getconf.  Instead, check for the needed flags by compiling
60350         test programs.
60351
60352 2000-06-04  Paul Eggert  <eggert@twinsun.com>
60353
60354         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
60355
60356 2000-06-04  Jim Meyering  <meyering@lucent.com>
60357
60358         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
60359         SunOS 4.1.4 for which gid_t is an unsigned type.
60360
60361 2000-06-03  Jim Meyering  <meyering@lucent.com>
60362
60363         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
60364         now that autoconf requires that.
60365
60366         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
60367         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
60368         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
60369
60370 2000-06-03  Jim Meyering  <meyering@lucent.com>
60371
60372         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
60373
60374 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
60375
60376         * m4/glibc21.m4: New file.
60377         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
60378
60379 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
60380
60381         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
60382         newer, don't install charset.alias.
60383         * lib/config.charset: Change the Linux/glibc rules so they become empty
60384         on glibc-2.1 or newer.
60385
60386 2000-06-02  Jim Meyering  <meyering@lucent.com>
60387
60388         * lib/mountlist.c: Back out last change.  Instead, do this...
60389         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
60390         me_dummy member using the same `ignore'-testing code.
60391         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
60392         fs_type strings.
60393         From Mark D. Roth.
60394
60395 2000-05-29  Jim Meyering  <meyering@lucent.com>
60396
60397         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
60398         mounts with the `ignore' attribute.  Based on a patch from
60399         Mark D. Roth.
60400
60401 2000-05-28  Jim Meyering  <meyering@lucent.com>
60402
60403         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
60404         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60405         * m4/stat.m4: Likewise.
60406         * m4/lstat.m4: Likewise.
60407         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
60408
60409         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
60410         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
60411
60412 2000-05-26  Jim Meyering  <meyering@lucent.com>
60413
60414         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
60415
60416 2000-05-24  Jim Meyering  <meyering@lucent.com>
60417
60418         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
60419         autoconf requires that.
60420         * m4/lib-check.m4: Likewise.
60421         * m4/jm-macros.m4: Likewise.
60422         * m4/strftime.m4: Likewise.
60423
60424         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
60425         AC_CHECK_DECLS, now that autoconf requires that.
60426
60427 2000-05-22  Jim Meyering  <meyering@lucent.com>
60428
60429         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60430         * m4/lstat.m4: Likewise.
60431
60432 2000-05-22  Jim Meyering  <meyering@lucent.com>
60433
60434         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
60435
60436 2000-05-20  Jim Meyering  <meyering@lucent.com>
60437
60438         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
60439         (jm_PREREQ): Use it.
60440
60441 2000-05-18  Jim Meyering  <meyering@lucent.com>
60442
60443         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
60444         back, too, since it may have been modified by allocate_entry.
60445         (hash_delete): Rewrite to use neither the assignment operator
60446         nor the comma operator in an if-expression.
60447
60448 2000-05-15  Paul Eggert  <eggert@twinsun.com>
60449
60450         * lib/closeout.c:
60451         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
60452         Remove; no longer needed.
60453         "quotearg.h": Add include.
60454         (file_name): Do not bother to explicitly initialize to NULL; it's less
60455         efficient on some hosts.
60456         (close_stdout_status): Remove test as to whether stdout was already
60457         closed; it breaks for the case "echo x | sort >&-".
60458         Quote file name colons.
60459         Do not assume that _("write error") lacks format strings.
60460
60461 2000-05-15  Jim Meyering  <meyering@lucent.com>
60462
60463         * lib/version-etc.c (version_etc_copyright): Update the copyright
60464         string used in all --version output.
60465
60466 2000-05-14  Jim Meyering  <meyering@lucent.com>
60467
60468         * lib/closeout.c (close_stdout_set_file_name): New function.
60469         (close_stdout_status): Use new file-scoped global.
60470         Return right away if fstat says the stdout file descriptor is invalid.
60471         * lib/closeout.h (close_stdout_set_file_name): Declare.
60472
60473 2000-05-10  Jim Meyering  <meyering@lucent.com>
60474
60475         * lib/closeout.c [default_exit_status]: New file-scoped variable.
60476         (close_stdout_set_status): New function.
60477         * lib/closeout.h (close_stdout_set_status): Declare.
60478
60479 2000-05-09  Jim Meyering  <meyering@lucent.com>
60480
60481         * m4/gettext.m4: Rename this...
60482         * m4/libintl.m4: ...to this.
60483
60484 2000-05-08  Jim Meyering  <meyering@lucent.com>
60485
60486         * lib/long-options.c: Don't include closeout.h.
60487         (parse_long_options): Don't call close_stdout for --version.
60488
60489 2000-05-06  Paul Eggert  <eggert@twinsun.com>
60490
60491         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
60492         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
60493         2.1.3 bug.  This avoids a clash when files like regex.c define
60494         _GNU_SOURCE.
60495
60496 2000-05-06  Jim Meyering  <meyering@lucent.com>
60497
60498         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
60499         (AC_REPLACE_FUNCS): Add strnlen.
60500
60501         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
60502         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
60503
60504         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
60505         AC_SEARCH_LIBS call for nanosleep.
60506         (LIB_NANOSLEEP): Set and AC_SUBST.
60507
60508 2000-05-06  Jim Meyering  <meyering@lucent.com>
60509
60510         * lib/strnlen.c: Undefine __strnlen and strnlen.
60511         [!weak_alias]: Define __strnlen to strnlen.
60512
60513         * lib/atexit.c: New file, from libiberty.
60514
60515 2000-05-06  Jim Meyering  <meyering@lucent.com>
60516
60517         * lib/closeout.c (close_stdout_status): Also check for errors on the
60518         stderr stream.
60519
60520 2000-05-05  Jim Meyering  <meyering@lucent.com>
60521
60522         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
60523         AC_SEARCH_LIBS call for clock_gettime.
60524         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
60525
60526         * m4/search-libs.m4: Update from autoconf.
60527
60528         su doesn't work on Solaris 2.6.
60529         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
60530         <shadow.h>.  Reported by Dragos Harabor.
60531
60532 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
60533
60534         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
60535         memcpy instead of xmalloc, xrealloc, path_concat.
60536         (locale_charset): Treat empty environment variables as absent.
60537         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
60538
60539 2000-05-04  Jim Meyering  <meyering@lucent.com>
60540
60541         * lib/getopt.c: Update from glibc.
60542         * lib/obstack.c: Likewise.
60543         * lib/obstack.h: Likewise.
60544         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
60545         file
60546
60547         * lib/regex.h: Likewise.
60548         * lib/strndup.c: Likewise.
60549         * lib/strnlen.c: New file, from glibc.
60550
60551 2000-05-03  Jim Meyering  <meyering@lucent.com>
60552
60553         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
60554
60555 2000-05-02  Paul Eggert  <eggert@twinsun.com>
60556
60557         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
60558         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
60559         compile-time test, rather than inspecting host and OS, to
60560         decide whether to define _LARGEFILE_SOURCE.
60561
60562 2000-05-01  Jim Meyering  <meyering@lucent.com>
60563
60564         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
60565
60566         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
60567         Based on a patch from Bruno Haible.
60568
60569 2000-05-01  Jim Meyering  <meyering@lucent.com>
60570
60571         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
60572
60573 2000-04-29  Jim Meyering  <meyering@lucent.com>
60574
60575         * lib/path-concat.c: Declare strdup only if it's not defined.
60576         * lib/canon-host.c: Likewise.
60577
60578 2000-04-28  Jim Meyering  <meyering@lucent.com>
60579
60580         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
60581         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
60582         is included first, then limits.h is included by locale.h by libintl.h.
60583         From John David Anglin.
60584
60585 2000-04-25  Jim Meyering  <meyering@lucent.com>
60586
60587         * lib/makepath.c (S_IRWXUGO): Define.
60588         (make_path): Always perform explicit chmod if MODE specifies any
60589         of the `special' permission bits.  Prompted by a bug report against
60590         install from Mate Wierdl and Joost van Baal.
60591
60592 2000-04-18  Jim Meyering  <meyering@lucent.com>
60593
60594         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
60595         (jm_PREREQ): Use it.
60596
60597 2000-04-18  Jim Meyering  <meyering@lucent.com>
60598
60599         * lib/README: New file.
60600
60601         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
60602         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
60603
60604 2000-04-17  Jim Meyering  <meyering@lucent.com>
60605
60606         Get it right :-)
60607         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
60608         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
60609         Suggestion from Akim Demaille.
60610
60611 2000-04-17  Jim Meyering  <meyering@lucent.com>
60612
60613         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
60614         the definition of it to rpl_strftime also defined-away the system's
60615         declaration.
60616
60617 2000-04-15  Jim Meyering  <meyering@lucent.com>
60618
60619         Use `C' to denote so-called `contiguous' files, the same way
60620         that tar does.
60621         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
60622         (ftypelet): Use S_ISCTG.
60623         From Michael Deutschmann.
60624
60625 2000-04-14  Jim Meyering  <meyering@lucent.com>
60626
60627         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
60628         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
60629         clobbered.
60630
60631 2000-04-14  Jim Meyering  <meyering@lucent.com>
60632
60633         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
60634
60635 2000-04-13  Jim Meyering  <meyering@lucent.com>
60636
60637         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
60638         AH_VERBATIM to insert required #ifndef into config.h.in.
60639         Suggestion from Akim Demaille.
60640
60641 2000-04-12  Jim Meyering  <meyering@lucent.com>
60642
60643         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
60644         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
60645         Christian Krackowizer.
60646
60647         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
60648         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
60649         (AC_SYS_LARGEFILE): Require.
60650         (AM_C_PROTOTYPES): Require.
60651
60652 2000-04-08  Jim Meyering  <meyering@lucent.com>
60653
60654         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
60655         names don't conflict.  Reported by Eli Zaretskii.
60656
60657 2000-04-07  Jim Meyering  <meyering@lucent.com>
60658
60659         * lib/putenv.c: Move inclusion of errno.h so it follows that of
60660         sys/types.h, to work around system header problems on AIX 3.2.5.
60661         From Bruno Haible.
60662
60663 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
60664
60665         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
60666         bug.  Deal with the different error behavior of Irix iconv.
60667
60668 2000-04-05  Paul Eggert  <eggert@twinsun.com>
60669
60670         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
60671         IRIX if the installer said otherwise.
60672
60673 2000-04-05  Jim Meyering  <meyering@lucent.com>
60674
60675         Portability tweaks required for ultrix4.3.
60676         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
60677         (jm_CHECK_DECLS): Add getutent to the list of functions.
60678         (_jm_DECL_HEADERS): Add utmpx.h.
60679         From John David Anglin.
60680
60681         * m4/strftime.m4: Back out the 2000-04-02 change.
60682         Instead of that change, simply undefine putenv in the test program.
60683
60684 2000-04-05  Jim Meyering  <meyering@lucent.com>
60685
60686         Portability tweaks required for ultrix4.3.
60687         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
60688         getutent.
60689         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
60690         * lib/canon-host.c: Declare strdup.
60691         * lib/path-concat.c: Likewise.
60692         From John David Anglin.
60693
60694 2000-04-04  Jim Meyering  <meyering@lucent.com>
60695
60696         Be more DOS 8.3-friendly.
60697         * lib/ref-add.sin: Renamed from ref-add.sed.in.
60698         * lib/ref-del.sin: Renamed from ref-del.sed.in.
60699         * lib/Makefile.am: Reflect renaming.
60700         Reported by Eli Zaretskii.
60701
60702         Use a temporary file name that won't clash with `charset.alias'
60703         in the DOS 8.3 name space.
60704         * lib/Makefile.am (charset_tmp): Define.
60705         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
60706         (uninstall-local): Likewise.
60707         Reported by Eli Zaretskii.
60708
60709 2000-04-03  Jim Meyering  <meyering@lucent.com>
60710
60711         * m4/gettext.m4: Fix typo in comment.
60712
60713         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
60714         textutils/configure.in).  Suggestion from Paul Eggert.
60715         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
60716
60717 2000-04-02  Paul Eggert  <eggert@twinsun.com>
60718
60719         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
60720         variable in the shell rather than using putenv, which isn't
60721         portable.  This avoids the configure-time inter-test dependency
60722         on the potentially-renamed putenv function.
60723
60724 2000-03-30  Paul Eggert  <eggert@twinsun.com>
60725
60726         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
60727         before checking struct stat.st_blksize, so that
60728         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
60729
60730 2000-03-29  Paul Eggert  <eggert@twinsun.com>
60731
60732         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
60733         since strftime.c uses HAVE_STRFTIME to decide whether to use
60734         the underlying strftime.
60735
60736 2000-03-29  Paul Eggert  <eggert@twinsun.com>
60737
60738         * lib/time/strftime.c (my_strftime): Make sure we call the system
60739         strftime, not ourselves, when invoking the underlying strftime.
60740
60741 2000-03-24  Jim Meyering  <meyering@lucent.com>
60742
60743         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
60744         (charset_alias): Define.
60745         (install-exec-local): Factor out common code.
60746         (uninstall-local): Split lines longer than 80.
60747         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
60748         (SUFFIXES): Define.
60749         (.sed.in.sed): New rule.  Don't redirect directly to $@.
60750         (CLEANFILES): Add ref-add.sed and ref-del.sed.
60751
60752 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
60753
60754         * lib/config.charset: Output a line containing "Packages using this
60755         file".
60756         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
60757         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
60758         ref-del.sed): New rules.
60759
60760 2000-03-17  Jim Meyering  <meyering@lucent.com>
60761
60762         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
60763         Otherwise, include <strings.h>
60764
60765 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
60766
60767         * lib/unicodeio.c (utf8_wctomb): New function.
60768         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
60769         format instead of in UCS-4 with platform dependent endianness.
60770
60771 2000-03-10  Jim Meyering  <meyering@lucent.com>
60772
60773         * m4/lib-check.m4: Look for getspnam in -lgen, too.
60774         From Marco Franzen.
60775
60776 2000-03-07  Paul Eggert  <eggert@twinsun.com>
60777
60778         * lib/savedir.c (savedir): Work even if directory size is
60779         negative; this can happen with some screwy NFS configurations.
60780
60781 2000-03-06  Jim Meyering  <meyering@lucent.com>
60782
60783         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
60784         if it's NULL (because we ran out of memory).  From Bruno Haible.
60785
60786 2000-03-05  Jim Meyering  <meyering@lucent.com>
60787
60788         * lib/localcharset.c ("path-concat.h"): Include.
60789         (get_charset_aliases): Use path_concat instead of ANSI string
60790         concatenation.
60791
60792         * lib/unicodeio.h (PARAMS): Define.
60793         Use it to guard prototype.
60794
60795 2000-03-04  Jim Meyering  <meyering@lucent.com>
60796
60797         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
60798         for lib/localcharset.c.
60799
60800 2000-03-04  Jim Meyering  <meyering@lucent.com>
60801
60802         * lib/Makefile.am (install-exec-local): Create $(libdir) before
60803         installing into it.
60804         (uninstall-local): Uncomment this rule so `make distcheck' works
60805         once again.
60806
60807         * lib/unicodeio.c (<errno.h>): Include it.
60808         (errno): Declare if not defined.
60809
60810         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
60811
60812         * lib/config.charset: New version, incorporating remarks from a linux
60813         i18n mailing list.  From Bruno Haible.
60814
60815 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
60816
60817         * m4/codeset.m4: New file.
60818         * m4/iconv.m4: New file.
60819         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
60820
60821 2000-03-03  Jim Meyering  <meyering@lucent.com>
60822
60823         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
60824
60825 2000-03-02  Jim Meyering  <meyering@lucent.com>
60826
60827         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
60828         the messages come out on separate lines.
60829
60830         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
60831         rather than jm_CHECK_DECLARATIONS.
60832         * m4/decl.m4: Remove now-unused file.
60833
60834         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
60835         geteuid.
60836
60837 2000-03-02  Jim Meyering  <meyering@lucent.com>
60838
60839         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
60840
60841 2000-03-01  Jim Meyering  <meyering@lucent.com>
60842
60843         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
60844         * lib/unicodeio.c: Likewise.
60845
60846 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
60847
60848         * lib/config.charset: New file.
60849         * lib/localcharset.c: New file.
60850         * lib/unicodeio.h, lib/unicodeio.c: New files.
60851         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
60852         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
60853         (noinst_HEADERS): Add unicodeio.h.
60854         (all-local, install-exec-local, charset.alias): New targets.
60855
60856 2000-02-28  Paul Eggert  <eggert@twinsun.com>
60857
60858         * lib/quotearg.c (ALERT_CHAR): New macro.
60859         (quotearg_buffer_restyled): Use it.
60860
60861 2000-02-27  Jim Meyering  <meyering@lucent.com>
60862
60863         * m4/check-decl.m4: Add getenv to the list.
60864
60865 2000-02-27  Jim Meyering  <meyering@lucent.com>
60866
60867         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
60868         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
60869
60870         * lib/backupfile.c: Guard inclusion of stdlib.h with
60871         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
60872         Declare malloc if needed.
60873
60874         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
60875         `#ifndef HAVE_DECL..'
60876         now that autoconf always defines the HAVE_DECL_ symbols.
60877         * lib/human.c: Likewise.
60878         * lib/same.c: Likewise.
60879         * lib/strtoumax.c: Likewise.
60880
60881         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
60882         declaration check was not run.
60883         * lib/hash.c: Likewise.
60884         * lib/human.c: Likewise.
60885         * lib/same.c: Likewise.
60886         * lib/strtoumax.c: Likewise.
60887
60888         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
60889         `.', then first look up the entire `.'-containing string as a login
60890         name.
60891
60892 2000-02-23  Jim Meyering  <meyering@lucent.com>
60893
60894         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
60895         in place of my hack.
60896
60897 2000-02-18  Paul Eggert  <eggert@twinsun.com>
60898
60899         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
60900         (textint): New typedef.
60901         (parser_control): Member year changed from int to textint.
60902         All uses changed.
60903         (YYSTYPE): Removed; replaced by %union with int and textint members.
60904         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
60905         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
60906         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
60907         (tSNUMBER, tUNUMBER): Now of type <textintval>.
60908         (date, number, to_year): Use width of number in digits, not its value,
60909         to determine whether it's a 2-digit year, or a 2-digit time.
60910         (yylex): Store number of digits of numeric tokens.
60911         Reported by John Kendall.
60912
60913         (parser_control): Changed from struct parser_control to typedef (for
60914         consistency).  All uses changed.
60915
60916         (tID): Removed; not used.
60917         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
60918
60919 2000-02-14  Paul Eggert  <eggert@twinsun.com>
60920
60921         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
60922         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
60923
60924 2000-02-12  Jim Meyering  <meyering@lucent.com>
60925
60926         * lib/userspec.c (ISDIGIT): Define it.
60927         (isdigit): Remove definition.
60928         (is_number): Use ISDIGIT, not isdigit.
60929         <libintl.h>: Include.
60930         (_ and N_): Define.
60931         (parse_user_spec): Mark translatable strings.
60932
60933 2000-02-10  Jim Meyering  <meyering@lucent.com>
60934
60935         With these changes, nanosleep.[ch] are finally enough like the other
60936         lib/* replacement files to compile on a few more losing systems.
60937
60938         * lib/nanosleep.h: Don't include config.h.
60939         Remove prototype from declaration of nanosleep.
60940         (PARAMS): Remove now-unneeded definition.
60941         * lib/nanosleep.c: #undef nanosleep.
60942         (rpl_nanosleep): Rename from nanosleep.
60943
60944 2000-02-10  Jim Meyering  <meyering@lucent.com>
60945
60946         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
60947         gnu_nanosleep to rpl_nanosleep.
60948
60949 2000-02-09  Jim Meyering  <meyering@lucent.com>
60950
60951         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
60952         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
60953
60954 2000-02-08  Akim Demaille  <akim@epita.fr>
60955
60956         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
60957         `[' and `]' and remove uses of `changequote'.
60958         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
60959         (AC_SYS_LARGEFILE): Likewise.
60960         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
60961         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
60962         of changequote.
60963         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
60964         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
60965         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
60966         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
60967
60968 2000-02-05  Jim Meyering  <meyering@lucent.com>
60969
60970         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
60971         Remove explicit use of AC_HEADER_TIME.  It is required by
60972         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
60973         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
60974         in autoconf whereby the expansion of the latter ended up preceding
60975         the expansion of its prerequisite, AC_HEADER_TIME.
60976         Reported by Volker Borchert.
60977
60978 2000-02-03  Jim Meyering  <meyering@lucent.com>
60979
60980         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
60981
60982 2000-02-03  Jim Meyering  <meyering@lucent.com>
60983
60984         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
60985         rather than with `#if HAVE_UTMPNAME'.
60986
60987 2000-02-02  Jim Meyering  <meyering@lucent.com>
60988
60989         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
60990         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
60991         Reported by Eli Zaretskii.
60992
60993 2000-02-01  Jim Meyering  <meyering@lucent.com>
60994
60995         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
60996
60997 2000-01-31  Jim Meyering  <meyering@lucent.com>
60998
60999         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
61000         functions.  Add the time.h and sys/time.h headers along with the
61001         AC_REQUIRE'ment of AC_HEADER_TIME.
61002
61003 2000-01-31  Jim Meyering  <meyering@lucent.com>
61004
61005         * lib/nanosleep.h (nanosleep): Guard declaration with
61006         `#if ! HAVE_DECL_NANOSLEEP'.
61007         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
61008         the declaration in that vendor's sys/timers.h.
61009         Reported by Christian Krackowizer.
61010
61011         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
61012         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
61013         (ISPRINT): Likewise.
61014         Reported by Tom Tromey.
61015
61016 2000-01-30  Jim Meyering  <meyering@lucent.com>
61017
61018         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
61019
61020         * m4/prereq.m4 (utmp_includes): Define.
61021         Check for ut_user and ut_name members in both struct utmpx
61022         and struct utmp.
61023
61024 2000-01-30  Jim Meyering  <meyering@lucent.com>
61025
61026         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
61027         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
61028         header files where only utmpx.ut_user is declared.
61029
61030         * lib/readutmp.h (UT_USER): Define.
61031
61032 2000-01-29  Jim Meyering  <meyering@lucent.com>
61033
61034         * m4/lib-check.m4: New file containing library-related checks from
61035         fileutils and sh-utils (textutils had none).
61036
61037 2000-01-28  Jim Meyering  <meyering@lucent.com>
61038
61039         * m4/perl.m4: Change format of warning message to look more like that
61040         from the missing script.  Suggestion from François Pinard.
61041
61042 2000-01-25  Jim Meyering  <meyering@lucent.com>
61043
61044         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
61045         well as time.h in the compile check.
61046         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
61047         Fix typo in cross-compiling case: s/yes/no/.
61048
61049 2000-01-23  Jim Meyering  <meyering@lucent.com>
61050
61051         * m4/jm-macros.m4: Move df-related tests here from
61052         fileutils/configure.in
61053
61054         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
61055         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
61056
61057         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
61058         s/space/ac_fsusage_space/.
61059         (jm_FILE_SYSTEM_USAGE): Take two parameters.
61060
61061         * m4/ftruncate.m4: New file (derived from part of
61062         fileutils/configure.in).
61063         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
61064         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
61065
61066         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
61067         AC_SUBST these here, rather than just in sh-util/configure.in, so
61068         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
61069         all the same.
61070         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
61071         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
61072         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
61073         (AC_SUBST(POW_LIBM)): Likewise.
61074         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
61075
61076 2000-01-23  Jim Meyering  <meyering@lucent.com>
61077
61078         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
61079         obstack.c.
61080
61081 2000-01-22  Jim Meyering  <meyering@lucent.com>
61082
61083         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
61084
61085         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
61086
61087         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
61088         configure.in
61089         (AC_CHECK_HEADERS): Likewise for sh-utils.
61090         (AC_CHECK_HEADERS): Likewise for textutils.
61091         Merge the three lists of headers.
61092
61093         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
61094         from fileutils' configure.in.
61095
61096         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
61097         code. Moved tests into their own function (_jm_DECL_HEADERS) in
61098         check-decl.m4.
61099
61100         * m4/check-decl.m4: Use #if rather than #ifdef.
61101         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
61102         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
61103         (_jm_DECL_HEADERS): Define new function.
61104         (jm_CHECK_DECLARATIONS): Require it.
61105
61106 2000-01-22  Jim Meyering  <meyering@lucent.com>
61107
61108         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
61109         [! HAVE_DECL_STRTOULL]: Declare strtoull.
61110         Required for some AIX systems.  Reported by Christian Krackowizer.
61111         [TESTING] (main): New function.
61112
61113         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
61114         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
61115         letters.
61116
61117         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
61118         iswprint.
61119
61120         * lib/strverscmp.c (ISDIGIT): Define.
61121         (strverscmp): Use ISDIGIT, not isdigit.
61122
61123 2000-01-19  Jim Meyering  <meyering@lucent.com>
61124
61125         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
61126         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
61127         defines `struct timespec' in <sys/time.h>
61128
61129         * m4/c-bs-a.m4: Remove uses of changequote altogether.
61130         Thanks to Akim for explaining.
61131
61132 2000-01-17  Paul Eggert  <eggert@twinsun.com>
61133
61134         * lib/nanosleep.c (nanosleep):
61135         Don't use SA_INTERRUPT to decide whether to call sigaction, as
61136         POSIX.1 doesn't require SA_INTERRUPT and some systems
61137         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
61138         it's been part of POSIX.1 since day 1 (in 1988).
61139
61140 2000-01-17  Jim Meyering  <meyering@lucent.com>
61141
61142         * lib/interlock: Remove unused file.  Reported by François Pinard.
61143
61144 2000-01-16  Paul Eggert  <eggert@twinsun.com>
61145
61146         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
61147         alert, backslash, formfeed, and vertical tab unnecessarily in
61148         shell quoting style.
61149
61150 2000-01-16  Jim Meyering  <meyering@lucent.com>
61151
61152         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
61153         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
61154         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
61155         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
61156
61157 2000-01-16  Jim Meyering  <meyering@lucent.com>
61158
61159         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
61160         because the latter didn't work.
61161
61162 2000-01-15  Jim Meyering  <meyering@lucent.com>
61163
61164         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
61165         (AC_REPLACE_FUNCS): Add memcpy and memset.
61166         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
61167         Add strpbrk.
61168         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
61169
61170 2000-01-12  Jim Meyering  <meyering@lucent.com>
61171
61172         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
61173         (jm_PREREQ): Use it.
61174         (jm_PREREQ_READUTMP): New macro.
61175         (jm_PREREQ): Use it.
61176
61177 2000-01-11  Paul Eggert  <eggert@twinsun.com>
61178
61179         Quote multibyte characters correctly.
61180         * m4/c-bs-a.m4: New file.
61181         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
61182         (jm_PREREQ): Use it.
61183
61184 2000-01-11  Paul Eggert  <eggert@twinsun.com>
61185
61186         * m4/uintmax_t.m4: Port to autoconf 2.13.
61187
61188 2000-01-08  Jim Meyering  <meyering@ascend.com>
61189
61190         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
61191         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
61192
61193 2000-01-04  Jim Meyering  <meyering@ascend.com>
61194
61195         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
61196         jm_STRUCT_DIRENT_D_TYPE.
61197         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
61198         jm_STRUCT_DIRENT_D_INO.
61199         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
61200         jm_STRUCT_UTIMBUF.
61201         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
61202         renamings.
61203         * m4/utime.m4: Likewise.
61204
61205         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
61206         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
61207
61208 2000-01-03  Paul Eggert  <eggert@twinsun.com>
61209
61210         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
61211         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
61212
61213 2000-01-02  Jim Meyering  <meyering@ascend.com>
61214
61215         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
61216         remember if this is necessary.
61217
61218 1999-12-26  Jim Meyering  <meyering@ascend.com>
61219
61220         * m4/jm-macros.m4: Use it here.
61221         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
61222
61223 1999-12-23  Jim Meyering  <meyering@ascend.com>
61224
61225         * m4/jm-macros.m4: Check for clock_gettime (moved from
61226         fileutils/configure.in)
61227         Check for gettimeofday.
61228
61229 1999-12-20  Jim Meyering  <meyering@ascend.com>
61230
61231         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
61232         autoconf-2.14a-1999-12-20.
61233
61234 1999-12-19  Jim Meyering  <meyering@ascend.com>
61235
61236         * m4/lstat-slash.m4: New file.
61237         * m4/jm-macros.m4: Use the new macro:
61238         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61239
61240 1999-12-07  Jim Meyering  <meyering@ascend.com>
61241
61242         * m4/perl.m4: Require that File::Compare be available, too.
61243         Too many systems seem to lack it.
61244
61245         * m4/strftime.m4: Add checks for most of the cpp macros tested in
61246         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
61247
61248 1999-11-18  Paul Eggert  <eggert@twinsun.com>
61249
61250         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
61251         problem with the QNX 4.25 shell, which doesn't propagate exit
61252         status of failed commands inside shell assignments.
61253
61254 1999-11-17  Jim Meyering  <meyering@ascend.com>
61255
61256         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
61257
61258 1999-11-07  Jim Meyering  <meyering@ascend.com>
61259
61260         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
61261
61262 1999-11-06  Jim Meyering  <meyering@ascend.com>
61263
61264         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
61265         * m4/jm-macros.m4 (jm_MACROS): Use it here.
61266
61267 1999-11-05  Jim Meyering  <meyering@ascend.com>
61268
61269         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
61270         configure.in of textutils, fileutils, and sh-utils into this one
61271         (shared between those packages) file.
61272         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
61273         AC_STRUCT_ST_BLKSIZE.
61274
61275 1999-11-03  Jim Meyering  <meyering@ascend.com>
61276
61277         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
61278         of AC_CHECK_TYPE checks includes unistd.h.
61279         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
61280         Suggestion from Akim Demaille.
61281
61282 1999-10-30  Jim Meyering  <meyering@ascend.com>
61283
61284         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
61285         m4-quoted string.
61286         * m4/ls-mntd-fs.m4: Likewise.
61287         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
61288         * m4/jm-winsz1.m4: Likewise.
61289
61290         * m4/const.m4: Remove file, since the fix made it into the experimental
61291         version of autoconf.
61292         * m4/mktime.m4: Likewise.
61293
61294         * m4/check-type.m4: Remove file, now that the latest version of
61295         AC_CHECK_TYPE takes a third arg to specify additional #includes.
61296
61297         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
61298         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
61299         AC_CHECK_TYPE.
61300
61301 1999-10-04  Jim Meyering  <meyering@ascend.com>
61302
61303         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
61304
61305 1999-09-22  Paul Eggert  <eggert@twinsun.com>
61306
61307         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
61308         2.95.1 bug with HP-UX 10.20.
61309
61310 1999-09-17  Jim Meyering  <meyering@ascend.com>
61311
61312         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
61313         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
61314         due to missing strdup (against sh-utils-2.0).
61315
61316 1999-08-29  Jim Meyering  <meyering@ascend.com>
61317
61318         * m4/jm-macros.m4: Require jm_BISON.
61319         * m4/bison.m4: New file.
61320
61321 1999-08-17  Paul Eggert  <eggert@twinsun.com>
61322
61323         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
61324         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
61325
61326 1999-08-05  Jim Meyering  <meyering@ascend.com>
61327
61328         * m4/getline.m4: Rename test file from conftestdata to conftest.data
61329         to avoid conflicts with `conftest' on 8+3 filesystems.
61330         Suggestion from Eli Zaretskii.
61331
61332 1999-08-04  Jim Meyering  <meyering@ascend.com>
61333
61334         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
61335         fileutils and sh-utils (textutils's getline test was inadequate).
61336         (AM_FUNC_GETLINE): Run this test.
61337         (AC_CHECK_FUNCS): Check for getdelim.
61338         Reported by Bob Proulx.
61339
61340 1999-08-02  Jim Meyering  <meyering@ascend.com>
61341
61342         * m4/jm-macros.m4: Add a comment.
61343
61344 1999-08-01  Paul Eggert  <eggert@twinsun.com>
61345
61346         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
61347         <inttypes.h> defines strtoumax as a macro (and not as a
61348         function).
61349
61350 1999-08-01  Paul Eggert  <eggert@twinsun.com>
61351
61352         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
61353         that we can shift, multiply and divide unsigned long long
61354         values; Ultrix cc can't do it.
61355
61356 1999-08-01  Paul Eggert  <eggert@twinsun.com>
61357
61358         * m4/mktime.m4: New file, which is a preview of what should appear
61359         in the next public autoconf release.
61360
61361 1999-08-01  Paul Eggert  <eggert@twinsun.com>
61362
61363         * m4/lfs.m4: Remove this file.
61364         * m4/largefile.m4: New file.  It contains the old contents of
61365         lfs.m4, except that all names with prefix AC_LFS have been
61366         changed to use the prefix AC_SYS_LARGEFILE instead, to be
61367         compatible with future autoconf versions.  Also, some minor m4
61368         quoting problems have been fixed.
61369
61370 1999-08-01  Paul Eggert  <eggert@twinsun.com>
61371
61372         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
61373         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
61374         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
61375         and simplify the shell code.
61376
61377 1999-08-01  Jim Meyering  <meyering@ascend.com>
61378
61379         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
61380         m4.
61381
61382 1999-07-20  Jim Meyering  <meyering@ascend.com>
61383
61384         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
61385
61386 1999-07-15  Jim Meyering  <meyering@ascend.com>
61387
61388         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
61389
61390 1999-05-22  Jim Meyering  <meyering@ascend.com>
61391
61392         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
61393
61394 1999-05-20  Jim Meyering  <meyering@ascend.com>
61395
61396         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
61397         Add a colon after each `then' in case $4 is empty.
61398
61399 1999-05-16  Jim Meyering  <meyering@ascend.com>
61400
61401         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
61402
61403 1999-05-10  Jim Meyering  <meyering@ascend.com>
61404
61405         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
61406
61407         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
61408         AC_FUNC_MKTIME.
61409
61410 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
61411
61412         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
61413
61414 1999-05-04  Paul Eggert  <eggert@twinsun.com>
61415
61416         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
61417         not CPPFLAGS, so that linking works correctly in IRIX.
61418
61419 1999-04-30  Paul Eggert  <eggert@twinsun.com>
61420
61421         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
61422
61423 1999-04-20  Paul Eggert  <eggert@twinsun.com>
61424
61425         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
61426         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
61427         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
61428         jm_AC_TYPE_UNSIGNED_LONG_LONG.
61429         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
61430
61431         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
61432
61433 1999-04-20  Jim Meyering  <meyering@ascend.com>
61434
61435         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
61436         AC_REPLACE xstroull if necessary.  From Paul Eggert.
61437         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
61438
61439 1999-04-18  Jim Meyering  <meyering@ascend.com>
61440
61441         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
61442         * m4/jm-macros.m4: Use it.
61443
61444 1999-04-06  Jim Meyering  <meyering@ascend.com>
61445
61446         * m4/strftime.m4: Remove test for %f.
61447
61448 1999-03-29  Jim Meyering  <meyering@ascend.com>
61449
61450         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
61451         superset of the AC_TYPE_* checks in the textutils, fileutils,
61452         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
61453         AC_TYPE_PID_T.
61454
61455 1999-03-28  Jim Meyering  <meyering@ascend.com>
61456
61457         * m4/jm-macros.m4: Define GNU_PACKAGE here.
61458         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
61459         replaced e.g., in the *.sh files of the sh-utils.
61460
61461 1999-03-20  Jim Meyering  <meyering@ascend.com>
61462
61463         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
61464         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
61465         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
61466
61467 1999-03-19  Jim Meyering  <meyering@ascend.com>
61468
61469         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
61470
61471 1999-03-12  Jim Meyering  <meyering@ascend.com>
61472
61473         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
61474
61475 1999-03-07  Jim Meyering  <meyering@ascend.com>
61476
61477         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
61478         declared.
61479
61480 1999-02-17  Jim Meyering  <meyering@ascend.com>
61481
61482         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
61483         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
61484
61485 1999-02-07  Jim Meyering  <meyering@ascend.com>
61486
61487         * m4/group-member.m4: New file -- extracted from sh-utils'
61488         configure.in.
61489
61490         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
61491         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
61492
61493 1999-02-06  Jim Meyering  <meyering@ascend.com>
61494
61495         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
61496         * m4/fnmatch.m4: Likewise.
61497         * m4/getgroups.m4: Likewise.
61498         * m4/lstat.m4: Likewise.
61499         * m4/malloc.m4: Likewise.
61500         * m4/putenv.m4: Likewise.
61501         * m4/realloc.m4: Likewise.
61502         * m4/regex.m4: Likewise.
61503         * m4/stat.m4: Likewise.
61504         * m4/strftime.m4: Likewise.
61505         Suggestion from Alain Magloire.
61506
61507         * m4/chown.m4: Use `.$ac_objext', not `.o'.
61508         * m4/fnmatch.m4: Likewise.
61509         * m4/getgroups.m4: Likewise.
61510         * m4/getline.m4: Likewise.
61511         * m4/lstat.m4: Likewise.
61512         * m4/malloc.m4: Likewise.
61513         * m4/memcmp.m4: Likewise.
61514         * m4/putenv.m4: Likewise.
61515         * m4/realloc.m4: Likewise.
61516         * m4/regex.m4: Likewise.
61517         * m4/stat.m4: Likewise.
61518         * m4/strftime.m4: Likewise.
61519         Suggestion from Alain Magloire.
61520
61521         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
61522         an argument.
61523
61524         * m4/regex.m4: Add a run-time Test for proper operation of
61525         re_compile_pattern.
61526
61527 1999-01-31  Jim Meyering  <meyering@ascend.com>
61528
61529         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
61530
61531 1999-01-30  Jim Meyering  <meyering@ascend.com>
61532
61533         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
61534
61535         * m4/jm-mktime.m4: Make this a wrapper around the official
61536         AM_FUNC_MKTIME rather than my private copy, now that the official one
61537         is up to date.
61538         * m4/mktime.m4: Remove file.
61539
61540         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
61541         * m4/uptime.m4: Likewise.
61542         * m4/uintmax_t.m4: Likewise.
61543
61544 1999-01-28  Jim Meyering  <meyering@ascend.com>
61545
61546         * m4/jm-macros.m4: Use jm_AFS.
61547         * m4/afs.m4: New file (from fileutils' configure.in).
61548
61549         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
61550         * m4/chown.m4: Likewise.
61551         * m4/d-ino.m4: Likewise.
61552         * m4/d-type.m4: Likewise.
61553         * m4/fnmatch.m4: Likewise.
61554         * m4/getgroups.m4: Likewise.
61555         * m4/gettext.m4: Likewise.
61556         * m4/jm-mktime.m4: Likewise.
61557         * m4/jm-winsz2.m4: Likewise.
61558         * m4/lcmessage.m4: Likewise.
61559         * m4/ls-mntd-fs.m4: Likewise.
61560         * m4/malloc.m4: Likewise.
61561         * m4/memcmp.m4: Likewise.
61562         * m4/putenv.m4: Likewise.
61563         * m4/realloc.m4: Likewise.
61564         * m4/st_mtim.m4: Likewise.
61565         * m4/strftime.m4: Likewise.
61566
61567 1999-01-16  Jim Meyering  <meyering@ascend.com>
61568
61569         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
61570         (ARGMATCH_DIE_DECL): Define.
61571
61572 1999-01-12  Jim Meyering  <meyering@ascend.com>
61573
61574         * m4/Makefile.am.in: Rewrite to avoid using fmt.
61575         Reported by Lars Hecking.
61576
61577 1999-01-10  Jim Meyering  <meyering@ascend.com>
61578
61579         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
61580         gross kludge.
61581         * m4/inttypes_h.m4: Likewise.
61582         * m4/lstat.m4: Likewise.
61583         * m4/malloc.m4: Likewise.
61584         * m4/readdir.m4: Likewise.
61585         * m4/realloc.m4: Likewise.
61586         * m4/st_dm_mode.m4: Likewise.
61587         * m4/stat.m4: Likewise.
61588         * m4/utimbuf.m4: Likewise.
61589         * m4/utimes.m4: Likewise.
61590
61591         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
61592         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
61593         comments in config.h.in are meaningful.
61594
61595         * m4/jm-macros.m4: Require autoconf-2.13 here.
61596
61597         * m4/regex.m4: By default, don't use the included regex.c on systems
61598         with glibc 2.  Suggestion from Uli Drepper.
61599
61600 1999-01-02  Jim Meyering  <meyering@ascend.com>
61601
61602         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
61603
61604 1998-12-18  Jim Meyering  <meyering@ascend.com>
61605
61606         * m4/Makefile.am.in (Makefile.am): Simplify rule.
61607         Based on a suggestion from Lars Hecking.
61608
61609 1998-11-16  Paul Eggert  <eggert@twinsun.com>
61610
61611         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
61612
61613 1998-11-16  Jim Meyering  <meyering@ascend.com>
61614
61615         * m4/lfs.m4: Double-quote the `uname...` expression.
61616
61617 1998-11-14  Jim Meyering  <meyering@ascend.com>
61618
61619         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
61620         * m4/stat.m4: Likewise.
61621
61622 1998-11-03  Jim Meyering  <meyering@ascend.com>
61623
61624         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
61625         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
61626
61627 1998-10-18  Jim Meyering  <meyering@ascend.com>
61628
61629         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
61630
61631 1998-10-17  Jim Meyering  <meyering@ascend.com>
61632
61633         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
61634         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
61635         calls for those previously hard-coded headers.  Instead, take a new
61636         parameter.
61637         (jm_CHECK_DECLARATIONS): Reflect interface change.
61638         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
61639         (jm_CHECK_DECL_LOCALTIME_R): New macro.
61640
61641         * m4/mktime.m4: Test for spring-forward gap before long-running test.
61642
61643 1998-10-14  Jim Meyering  <meyering@ascend.com>
61644
61645         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
61646         instead of "TZ=America/Vancouver".  From Paul Eggert.
61647
61648 1998-10-11  Jim Meyering  <meyering@ascend.com>
61649
61650         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
61651         This adds a test for a recently added compatibility fix for mktime.c.
61652         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
61653
61654 1998-09-27  Jim Meyering  <meyering@ascend.com>
61655
61656         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
61657
61658         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
61659         ../configure.in, including a change from Gordon Matzigkeit to allow
61660         cross-compiling for the Hurd.
61661
61662         * m4/glibc.m4: New file/macro to test for the GNU C Library
61663         versions 1 and 2.  From Gordon Matzigkeit.
61664         Indent.
61665
61666 1998-09-21  Jim Meyering  <meyering@ascend.com>
61667
61668         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
61669
61670 1998-08-18  Paul Eggert  <eggert@twinsun.com>
61671
61672         Port nanosecond-resolution times to UnixWare 2.1.2 and
61673         pedantic Solaris 2.6.
61674
61675         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
61676         AC_STRUCT_ST_MTIM.
61677         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
61678         Generate name of ns member, instead of just 1 or undef.
61679         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
61680
61681 1998-08-15  Jim Meyering  <meyering@ascend.com>
61682
61683         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
61684         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
61685         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
61686         instead of jm_TYPE_SSIZE_T.
61687
61688 1998-08-12  Jim Meyering  <meyering@ascend.com>
61689
61690         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
61691
61692 1998-08-02  Jim Meyering  <meyering@ascend.com>
61693
61694         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
61695         in acconfig.h manually.
61696
61697 1998-07-31  Paul Eggert  <eggert@twinsun.com>
61698
61699         * m4/st_mtim.m4: New file.
61700
61701 1998-07-28  Jim Meyering  <meyering@ascend.com>
61702
61703         * m4/utimes.m4: Undef stat.
61704
61705 1998-07-25  Jim Meyering  <meyering@ascend.com>
61706
61707         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
61708         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
61709
61710 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
61711
61712         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
61713         uid and gid actually remain unchanged.
61714
61715 1998-07-07  Jim Meyering  <meyering@ascend.com>
61716
61717         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
61718
61719 1998-07-04  Jim Meyering  <meyering@ascend.com>
61720
61721         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
61722         to prove that this macro can be used in packages without regex.c.
61723
61724 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
61725
61726         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
61727         is to be used.
61728
61729 1998-07-03  Jim Meyering  <meyering@ascend.com>
61730
61731         * m4/gettext.m4: Add -lintl if it's found to be necessary.
61732
61733         * m4/gettext.m4: New file -- from gettext-0.10.35.
61734         * m4/lcmessage.m4: Likewise.
61735         * m4/progtest.m4: Likewise.
61736
61737         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
61738         * m4/jm-macros.m4: Require the new macro.
61739
61740 1998-06-29  Jim Meyering  <meyering@ascend.com>
61741
61742         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
61743         for the definition of NGROUPS (used in a system header included
61744         by sys/mount.h).
61745
61746 1998-06-28  Jim Meyering  <meyering@ascend.com>
61747
61748         * m4/ls-mntd-fs.m4: New file.
61749         * m4/fstypename.m4: New file.
61750
61751         * m4/jm-macros.m4: Require the new macro.
61752         * m4/jm-glibc-io.m4: New file.
61753
61754 1998-05-19  Jim Meyering  <meyering@ascend.com>
61755
61756         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
61757         * m4/lchown.m4: New file.
61758
61759         * m4/Makefile.am.in: New file.
61760         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
61761
61762 1998-05-14  Jim Meyering  <meyering@ascend.com>
61763
61764         * m4/Makefile.am (EXTRA_DIST): Add them.
61765         * m4/jm-macros.m4: New file.
61766         * m4/utimbuf.m4: New file.
61767
61768 1998-05-12  Jim Meyering  <meyering@ascend.com>
61769
61770         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
61771
61772 1998-05-11  Jim Meyering  <meyering@ascend.com>
61773
61774         * m4/isc-posix.m4: New file.
61775
61776 1998-05-10  Jim Meyering  <meyering@ascend.com>
61777
61778         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
61779
61780 1998-05-09  Jim Meyering  <meyering@ascend.com>
61781
61782         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
61783         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
61784         with automake.
61785
61786         * m4/ssize_t.m4: New file.
61787         * m4/mktime.m4: Remove file -- the new automake has this now.
61788
61789 1998-04-26  Jim Meyering  <meyering@ascend.com>
61790
61791         * m4/assert.m4: New file.
61792         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
61793
61794 1998-04-05  Jim Meyering  <meyering@ascend.com>
61795
61796         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
61797         (jm_PREREQ): Use it here.
61798
61799 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
61800
61801         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
61802         in acconfig.h.
61803
61804 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
61805
61806         * m4/prereq.m4: New file.
61807         * m4/error.m4: New file.
61808         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
61809
61810 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
61811
61812         * m4/getline.m4: Don't set am_cv_func_working_getline before the
61813         cache-check for the same variable -- that defeated the purpose of
61814         the test; the test program was never run.  This was a problem only
61815         on systems with losing getline functions -- HP-UX 10.20 is one.
61816         Reported by Bjorn Helgaas.
61817
61818 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
61819
61820         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
61821
61822 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
61823
61824         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
61825
61826         * m4/const.m4: New file.  Use an initializer in this declaration
61827         typedef int charset[2]; const charset x;
61828         Reported by Bob Glickstein.
61829
61830 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
61831
61832         * m4/chown.m4: Fix reversed types on -1 args to chown.
61833         From Kaveh Ghazi.
61834
61835 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
61836
61837         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
61838         Add lseek and memchr.
61839
61840         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
61841         T.E.Dickey <dickey@clark.net> said that some older preprocessors
61842         have a 20-character limit on names.
61843
61844 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
61845
61846         * m4/inttypes_h.m4: New file.
61847         * m4/uintmax_t.m4: New file.
61848         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
61849
61850
61851         -----
61852
61853         Local Variables:
61854         coding: utf-8
61855         End:
61856
61857         Copyright (C) 1997-2010 Free Software Foundation, Inc.
61858
61859         Copying and distribution of this file, with or without
61860         modification, are permitted provided the copyright notice
61861         and this notice are preserved.